Class ExtractClassDescriptor.Field

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getFieldName()
      The name of the field in the selected type
      java.lang.String getNewFieldName()
      The name of the field in the extracted class.
      int hashCode()  
      boolean isCreateField()
      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​(java.lang.String newFieldName)
      Sets the name of the field in the extracted class.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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 be null
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • isCreateField

        public boolean isCreateField()
        Returns whether the field will be moved to extracted class. The default is true
        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 is true
        Parameters:
        createField - if true the field will be moved