Class PostfixExpression


public class PostfixExpression extends Expression
Postfix expression AST node type.
 PostfixExpression:
    Expression PostfixOperator
 
Since:
2.0
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.0
    • getOperator

      public PostfixExpression.Operator getOperator()
      Returns the operator of this postfix expression.
      Returns:
      the operator
    • setOperator

      public void setOperator(PostfixExpression.Operator operator)
      Sets the operator of this postfix expression.
      Parameters:
      operator - the operator
      Throws:
      IllegalArgumentException - if the argument is incorrect
    • getOperand

      public Expression getOperand()
      Returns the operand of this postfix expression.
      Returns:
      the operand expression node
    • setOperand

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