public final class JavaMoveMembersProperties extends Object
MoveRefactoring
,
Context
Modifier and Type | Class and Description |
---|---|
static class |
JavaMoveMembersProperties.Visibility
Used to specify visibility level.
|
Constructor and Description |
---|
JavaMoveMembersProperties(TreePathHandle... preSelectedMembers)
Constructs a new JavaMoveMembersProperties object.
|
Modifier and Type | Method and Description |
---|---|
TreePathHandle[] |
getPreSelectedMembers()
The members that are selected by the user when starting the refactoring.
|
JavaMoveMembersProperties.Visibility |
getVisibility()
The new visibility of the members.
|
boolean |
isAddDeprecated()
Add a deprecated tag to the JavaDoc of the delegating method.
|
boolean |
isDelegate()
Leave the old method in place and let it delegate to the new location.
|
boolean |
isUpdateJavaDoc()
Update or create the JavaDoc for moved methods.
|
void |
setAddDeprecated(boolean addDeprecated)
Add a deprecated tag to the JavaDoc of the delegating method.
|
void |
setDelegate(boolean delegate)
Leave the old method in place and let it delegate to the new location.
|
void |
setUpdateJavaDoc(boolean updateJavaDoc)
Add a deprecated tag to the javadoc of the delegating method.
|
void |
setVisibility(JavaMoveMembersProperties.Visibility visibility)
The new visibility of the members.
|
public JavaMoveMembersProperties(@NonNull TreePathHandle... preSelectedMembers)
@NonNull public TreePathHandle[] getPreSelectedMembers()
@NonNull public JavaMoveMembersProperties.Visibility getVisibility()
public void setVisibility(@NonNull JavaMoveMembersProperties.Visibility visibility)
visibility
- the visibility to usepublic boolean isDelegate()
public void setDelegate(boolean delegate)
delegate
- true if the old method needs delegate to the new locationpublic boolean isAddDeprecated()
public void setAddDeprecated(boolean addDeprecated)
addDeprecated
- true if a deprecated tag has to be added to the
delegate methodpublic boolean isUpdateJavaDoc()
public void setUpdateJavaDoc(boolean updateJavaDoc)
updateJavaDoc
- true if the method's JavaDoc needs to be created or
updated.