Class PatternInstanceofExpression

java.lang.Object
org.eclipse.jdt.core.dom.ASTNode
org.eclipse.jdt.core.dom.Expression
org.eclipse.jdt.core.dom.PatternInstanceofExpression

public class PatternInstanceofExpression extends Expression
PatternInstanceof expression AST node type.
 PatternInstanceofExpression:
    Expression instanceof Variable
 
Restriction:
This class is not intended to be instantiated by clients.
  • Field Details

  • Method Details

    • propertyDescriptors

      public static List propertyDescriptors(int apiLevel)
      Returns a list of structural property descriptors for this node type. Clients must not modify the result.
      Parameters:
      apiLevel - the API level; one of the AST.JLS* constants
      Returns:
      a list of property descriptors (element type: StructuralPropertyDescriptor)
      Since:
      3.27
    • getLeftOperand

      public Expression getLeftOperand()
      Returns the left operand of this Patterninstanceof expression.
      Returns:
      the left operand node
      Since:
      3.27
    • setLeftOperand

      public void setLeftOperand(Expression expression)
      Sets the left operand of this instanceof expression.
      Parameters:
      expression - the left operand node
      Throws:
      IllegalArgumentException - if:
      • the node belongs to a different AST
      • the node already has a parent
      • a cycle in would be created
      Since:
      3.27
    • getRightOperand

      public SingleVariableDeclaration getRightOperand()
      Returns the right operand of this instanceof expression.
      Returns:
      the right operand node
      Since:
      3.27
    • setRightOperand

      public void setRightOperand(SingleVariableDeclaration referenceDeclaration)
      Sets the right operand of this instanceof expression.
      Parameters:
      referenceDeclaration - the right operand node
      Throws:
      IllegalArgumentException - if:
      • the node belongs to a different AST
      • the node already has a parent
      • a cycle in would be created
      Since:
      3.27