Class ExtractClassDescriptor.Field
- java.lang.Object
-
- org.eclipse.jdt.core.refactoring.descriptors.ExtractClassDescriptor.Field
-
- Enclosing class:
- ExtractClassDescriptor
public static class ExtractClassDescriptor.Field extends Object
Instances ofExtractClassDescriptor.Fielddescribe which fields will be moved to the extracted class and their new name there.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetFieldName()The name of the field in the selected typeStringgetNewFieldName()The name of the field in the extracted class.inthashCode()booleanisCreateField()Returns whether the field will be moved to extracted class.voidsetCreateField(boolean createField)Sets whether the field will be moved to extracted class.voidsetNewFieldName(String newFieldName)Sets the name of the field in the extracted class.StringtoString()
-
-
-
Method Detail
-
getFieldName
public String getFieldName()
The name of the field in the selected type- Returns:
- the name of the field in the selected type
-
getNewFieldName
public String getNewFieldName()
The name of the field in the extracted class. The default is the same as in the selected type- Returns:
- the name of the field in the extracted class
-
setNewFieldName
public void setNewFieldName(String newFieldName)
Sets the name of the field in the extracted class. The default is the same as in the selected type- Parameters:
newFieldName- the new field name. Must not benull
-
isCreateField
public boolean isCreateField()
Returns whether the field will be moved to extracted class. The default istrue- Returns:
trueif the field will be moved
-
setCreateField
public void setCreateField(boolean createField)
Sets whether the field will be moved to extracted class. The default istrue- Parameters:
createField- iftruethe field will be moved
-
-