Class IntroduceParameterObjectDescriptor.Parameter

  • Enclosing class:
    IntroduceParameterObjectDescriptor

    public static class IntroduceParameterObjectDescriptor.Parameter
    extends java.lang.Object
    Instances of Parameter are used to describe the position of parameter and fields.
    • Constructor Summary

      Constructors 
      Constructor Description
      Parameter​(int index)
      Creates a new parameter object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getFieldName()
      The name of the field that will be created if isCreateField() is true
      int getIndex()
      The index of the parameter in the original method signature.
      boolean isCreateField()
      If true the parameter will be removed from the method's signature and will be added to the parameter object.
      void setCreateField​(boolean createField)
      Sets whether the parameter will be removed from the method's signature or will be added to the parameter object.
      void setFieldName​(java.lang.String fieldName)
      Sets the name of the field that will be created in the parameter object if isCreateField() is true.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait