Klasse PatternInstanceofExpression


public class PatternInstanceofExpression extends Expression
PatternInstanceof expression AST node type.
 PatternInstanceofExpression:
    Expression instanceof Variable
 
  • Felddetails

  • 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.27
    • getLeftOperand

      public Expression getLeftOperand()
      Returns the left operand of this Patterninstanceof expression.
      Gibt zurück:
      the left operand node
      Seit:
      3.27
    • 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
      Seit:
      3.27
    • getRightOperand

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

      public void setRightOperand(SingleVariableDeclaration referenceDeclaration)
      Sets the right operand of this instanceof expression.
      Parameter:
      referenceDeclaration - 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
      Seit:
      3.27