Class RefactoringOperationDescriptor
- java.lang.Object
-
- com._1c.g5.v8.dt.refactoring.core.RefactoringOperationDescriptor
-
public final class RefactoringOperationDescriptor extends Object
A descriptor of the refactoring operation.Descriptors are provided by refactoring contributors to participate in the refactoring process. It keeps the refactoring operation that will be performed during refactoring. Optionally it keeps the localized name of the operation and the 'optional' flag.
If the name is provided the operation is reflected in the logical structure of refactoring.
-
-
Constructor Summary
Constructors Constructor Description RefactoringOperationDescriptor(IRefactoringOperation operation)
Creates a descriptor with the specifiedoperation
.RefactoringOperationDescriptor(IRefactoringOperation operation, String name, boolean optional)
Creates a descriptor with the specifiedoperation
,name
andoptional
flag.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Returns the localized name of the refactoring operation.IRefactoringOperation
getOperation()
Returns the refactoring operation.boolean
isOptional()
Returns the flag indicating whether the refactoring operation is optional or not.
-
-
-
Constructor Detail
-
RefactoringOperationDescriptor
public RefactoringOperationDescriptor(IRefactoringOperation operation, String name, boolean optional)
Creates a descriptor with the specifiedoperation
,name
andoptional
flag.- Parameters:
operation
- the refactoring operation, cannot benull
.name
- the localized name, can benull
.optional
- the optional flag.
-
RefactoringOperationDescriptor
public RefactoringOperationDescriptor(IRefactoringOperation operation)
Creates a descriptor with the specifiedoperation
.- Parameters:
operation
- the refactoring operation, cannot benull
.
-
-
Method Detail
-
getOperation
public IRefactoringOperation getOperation()
Returns the refactoring operation.- Returns:
- the refactoring operation, never
null
.
-
getName
public String getName()
Returns the localized name of the refactoring operation.- Returns:
- the localized name of the refactoring operation or
null
.
-
isOptional
public boolean isOptional()
Returns the flag indicating whether the refactoring operation is optional or not.- Returns:
true
if the refactoring operation is optional,false
- otherwise.
-
-