Class ExtractClassDescriptor.Field
java.lang.Object
org.eclipse.jdt.core.refactoring.descriptors.ExtractClassDescriptor.Field
- Enclosing class:
- ExtractClassDescriptor
Instances of
ExtractClassDescriptor.Field
describe which fields will be moved to
the extracted class and their new name there.-
Method Summary
Modifier and TypeMethodDescriptionboolean
The name of the field in the selected typeThe name of the field in the extracted class.int
hashCode()
boolean
Returns whether the field will be moved to extracted class.void
setCreateField
(boolean createField) Sets whether the field will be moved to extracted class.void
setNewFieldName
(String newFieldName) Sets the name of the field in the extracted class.toString()
-
Method Details
-
getFieldName
The name of the field in the selected type- Returns:
- the name of the field in the selected type
-
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
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() -
equals
-
toString
-
isCreateField
public boolean isCreateField()Returns whether the field will be moved to extracted class. The default istrue
- Returns:
true
if 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
- iftrue
the field will be moved
-