Package org.eclipse.jdt.core.dom
Class PrefixExpression.Operator
java.lang.Object
org.eclipse.jdt.core.dom.PrefixExpression.Operator
- Enclosing class:
PrefixExpression
Prefix operators (typesafe enumeration).
PrefixOperator:
++ INCREMENT
-- DECREMENT
+ PLUS
- MINUS
~ COMPLEMENT
! NOT
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PrefixExpression.OperatorBitwise complement "~" operator.static final PrefixExpression.OperatorPrefix decrement "--" operator.static final PrefixExpression.OperatorPrefix increment "++" operator.static final PrefixExpression.OperatorUnary minus "-" operator.static final PrefixExpression.OperatorLogical complement "!"static final PrefixExpression.OperatorUnary plus "+" operator. -
Method Summary
Modifier and TypeMethodDescriptionstatic PrefixExpression.OperatortoOperator(String token) Returns the prefix operator corresponding to the given string, ornullif none.toString()Returns the character sequence for the operator.
-
Field Details
-
INCREMENT
Prefix increment "++" operator. -
DECREMENT
Prefix decrement "--" operator. -
PLUS
Unary plus "+" operator. -
MINUS
Unary minus "-" operator. -
COMPLEMENT
Bitwise complement "~" operator. -
NOT
Logical complement "!" operator.
-
-
Method Details
-
toString
Returns the character sequence for the operator. -
toOperator
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
-