Class ExtractClassDescriptor.Field
- java.lang.Object
-
- org.eclipse.jdt.core.refactoring.descriptors.ExtractClassDescriptor.Field
-
- Enclosing class:
- ExtractClassDescriptor
public static class ExtractClassDescriptor.Field extends java.lang.ObjectInstances 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(java.lang.Object obj)java.lang.StringgetFieldName()The name of the field in the selected typejava.lang.StringgetNewFieldName()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(java.lang.String newFieldName)Sets the name of the field in the extracted class.java.lang.StringtoString()
-
-
-
Method Detail
-
getFieldName
public java.lang.String getFieldName()
The name of the field in the selected type- Returns:
- the name of the field in the selected type
-
getNewFieldName
public java.lang.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(java.lang.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
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
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
-
-