Klasse PostfixExpression


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

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

      public void setOperator(PostfixExpression.Operator operator)
      Sets the operator of this postfix expression.
      Parameter:
      operator - the operator
      Löst aus:
      IllegalArgumentException - if the argument is incorrect
    • getOperand

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

      public void setOperand(Expression expression)
      Sets the operand of this postfix expression.
      Parameter:
      expression - the operand expression 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