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.Operator
Bitwise complement "~" operator.static final PrefixExpression.Operator
Prefix decrement "--" operator.static final PrefixExpression.Operator
Prefix increment "++" operator.static final PrefixExpression.Operator
Unary minus "-" operator.static final PrefixExpression.Operator
Logical complement "!"static final PrefixExpression.Operator
Unary plus "+" operator. -
Method Summary
Modifier and TypeMethodDescriptionstatic PrefixExpression.Operator
toOperator
(String token) Returns the prefix operator corresponding to the given string, ornull
if 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, ornull
if none.toOperator
is the converse oftoString
: that is,Operator.toOperator(op.toString()) == op
for all operatorsop
.- Parameters:
token
- the character sequence for the operator- Returns:
- the prefix operator, or
null
if none
-