Interface IJavaStaticField

All Superinterfaces:
IJavaElement, IJavaExpression, IJavaLeftExpression

@Ser public interface IJavaStaticField extends IJavaLeftExpression
Java AST interface to represent a static field.

This interface should not be confused with IJavaField definition objects.

Examples:

 SomeType.VAR = true;
 ^^^^^^^^^^^^
 
See Also:
  • Method Details

    • getClassType

      IJavaType getClassType()
      Get the class type to which the field belongs.
      Returns:
      the class type, it may be null
    • getFieldSignature

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

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

      boolean isPseudoFieldTypeClass()
      Returns:
    • getField

      IJavaField getField()
      Get the field.
      Returns:
      the field object, never null
    • duplicate

      IJavaStaticField 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