Package org.eclipse.jdt.core.dom
Class PostfixExpression.Operator
- java.lang.Object
-
- org.eclipse.jdt.core.dom.PostfixExpression.Operator
-
- Enclosing class:
- PostfixExpression
public static class PostfixExpression.Operator extends java.lang.ObjectPostfix operators (typesafe enumeration).PostfixOperator:++INCREMENT--DECREMENT
-
-
Field Summary
Fields Modifier and Type Field Description static PostfixExpression.OperatorDECREMENTPostfix decrement "--" operator.static PostfixExpression.OperatorINCREMENTPostfix increment "++" operator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PostfixExpression.OperatortoOperator(java.lang.String token)Returns the postfix operator corresponding to the given string, ornullif none.java.lang.StringtoString()Returns the character sequence for the operator.
-
-
-
Field Detail
-
INCREMENT
public static final PostfixExpression.Operator INCREMENT
Postfix increment "++" operator.
-
DECREMENT
public static final PostfixExpression.Operator DECREMENT
Postfix decrement "--" operator.
-
-
Method Detail
-
toString
public java.lang.String toString()
Returns the character sequence for the operator.- Overrides:
toStringin classjava.lang.Object- Returns:
- the character sequence for the operator
-
toOperator
public static PostfixExpression.Operator toOperator(java.lang.String token)
Returns the postfix operator corresponding to the given string, ornullif none.toOperatoris the converse oftoString: that is,Operator.toOperator(op.toString()) == opfor all operatorsop.- Parameters:
token- the character sequence for the operator- Returns:
- the postfix operator, or
nullif none
-
-