Package org.eclipse.jdt.core.dom
Class PrefixExpression.Operator
- java.lang.Object
-
- org.eclipse.jdt.core.dom.PrefixExpression.Operator
-
- Enclosing class:
- PrefixExpression
public static class PrefixExpression.Operator extends Object
Prefix operators (typesafe enumeration).PrefixOperator:++INCREMENT--DECREMENT+PLUS-MINUS~COMPLEMENT!NOT
-
-
Field Summary
Fields Modifier and Type Field Description static PrefixExpression.OperatorCOMPLEMENTBitwise complement "~" operator.static PrefixExpression.OperatorDECREMENTPrefix decrement "--" operator.static PrefixExpression.OperatorINCREMENTPrefix increment "++" operator.static PrefixExpression.OperatorMINUSUnary minus "-" operator.static PrefixExpression.OperatorNOTLogical complement "!"static PrefixExpression.OperatorPLUSUnary plus "+" operator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PrefixExpression.OperatortoOperator(String token)Returns the prefix operator corresponding to the given string, ornullif none.StringtoString()Returns the character sequence for the operator.
-
-
-
Field Detail
-
INCREMENT
public static final PrefixExpression.Operator INCREMENT
Prefix increment "++" operator.
-
DECREMENT
public static final PrefixExpression.Operator DECREMENT
Prefix decrement "--" operator.
-
PLUS
public static final PrefixExpression.Operator PLUS
Unary plus "+" operator.
-
MINUS
public static final PrefixExpression.Operator MINUS
Unary minus "-" operator.
-
COMPLEMENT
public static final PrefixExpression.Operator COMPLEMENT
Bitwise complement "~" operator.
-
NOT
public static final PrefixExpression.Operator NOT
Logical complement "!" operator.
-
-
Method Detail
-
toString
public String toString()
Returns the character sequence for the operator.
-
toOperator
public static PrefixExpression.Operator toOperator(String token)
Returns the prefix 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 prefix operator, or
nullif none
-
-