Interface IJavaInstanceField

All Superinterfaces:
IJavaElement, IJavaExpression, IJavaLeftExpression

@Ser public interface IJavaInstanceField extends IJavaLeftExpression
Java AST interface to represent an instance field.

This interface should not be confused with IJavaField definition objects.

Examples:

 this.x = 123;
 ^^^^^^
 
 z = someobject.y;
     ^^^^^^^^^^^^
 
See Also:
  • Method Details

    • getInstance

      IJavaExpression getInstance()
      Get the instance expression, which is the object that contains the field.
      Returns:
      the instance expression
    • setInstance

      void setInstance(IJavaExpression instance)
      Set the instance.
      Parameters:
      instance - mandatory instance
    • getFieldSignature

      String getFieldSignature()
      Get the original field jvm name (fully qualified canonical name).
      Returns:
    • getFieldName

      String getFieldName()
      Get the original field simple name.
      Returns:
    • isPseudoFieldArrayLength

      boolean isPseudoFieldArrayLength()
      Returns:
    • getField

      IJavaField getField()
      Get the field definition object.
      Returns:
      the field object
    • duplicate

      IJavaInstanceField duplicate()
      Description copied from interface: IJavaElement
      Duplicate this element.
      Specified by:
      duplicate in interface IJavaElement
      Specified by:
      duplicate in interface IJavaExpression
      Specified by:
      duplicate in interface IJavaLeftExpression
      Returns:
      a (possibly) duplicated object of the same type