Klasse InstanceofExpression


public class InstanceofExpression extends Expression
Instanceof expression AST node type.
 InstanceofExpression:
    Expression instanceof Type
 
Seit:
2.0
  • Felddetails

    • LEFT_OPERAND_PROPERTY

      public static final ChildPropertyDescriptor LEFT_OPERAND_PROPERTY
      The "leftOperand" structural property of this node type (child type: Expression).
      Seit:
      3.0
    • RIGHT_OPERAND_PROPERTY

      public static final ChildPropertyDescriptor RIGHT_OPERAND_PROPERTY
      The "rightOperand" structural property of this node type (child type: Type).
      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
    • getLeftOperand

      public Expression getLeftOperand()
      Returns the left operand of this instanceof expression.
      Gibt zurück:
      the left operand node
    • setLeftOperand

      public void setLeftOperand(Expression expression)
      Sets the left operand of this instanceof expression.
      Parameter:
      expression - the left operand node
      Löst aus:
      IllegalArgumentException - if:
      • the node belongs to a different AST
      • the node already has a parent
      • a cycle in would be created
    • getRightOperand

      public Type getRightOperand()
      Returns the right operand of this instanceof expression.
      Gibt zurück:
      the right operand node
    • setRightOperand

      public void setRightOperand(Type referenceType)
      Sets the right operand of this instanceof expression.
      Parameter:
      referenceType - the right operand node
      Löst aus:
      IllegalArgumentException - if:
      • the node belongs to a different AST
      • the node already has a parent
      • a cycle in would be created