Klasse ThisExpression


public class ThisExpression extends Expression
Simple or qualified "this" AST node type.
 ThisExpression:
     [ ClassName . ] this
 

See FieldAccess for guidelines on handling other expressions that resemble qualified names.

Seit:
2.0
Siehe auch:
  • Felddetails

    • QUALIFIER_PROPERTY

      public static final ChildPropertyDescriptor QUALIFIER_PROPERTY
      The "qualifier" structural property of this node type (child type: Name).
      Seit:
      3.0
  • Methodendetails

    • propertyDescriptors

      public static List propertyDescriptors(int apiLevel)
      Returns a list of structural property descriptors for this node type. Clients must not modify the result.
      Parameter:
      apiLevel - the API level; one of the AST.JLS* constants
      Gibt zurück:
      a list of property descriptors (element type: StructuralPropertyDescriptor)
      Seit:
      3.0
    • getQualifier

      public Name getQualifier()
      Returns the qualifier of this "this" expression, or null if there is none.
      Gibt zurück:
      the qualifier name node, or null if there is none
    • setQualifier

      public void setQualifier(Name name)
      Sets or clears the qualifier of this "this" expression.
      Parameter:
      name - the qualifier name node, or null if there is none
      Löst aus:
      IllegalArgumentException - if:
      • the node belongs to a different AST
      • the node already has a parent