public static class PrefixExpression.Operator extends Object
PrefixOperator:++
INCREMENT
--
DECREMENT
+
PLUS
-
MINUS
~
COMPLEMENT
!
NOT
Modifier and Type | Field and Description |
---|---|
static PrefixExpression.Operator |
COMPLEMENT
Bitwise complement "~" operator.
|
static PrefixExpression.Operator |
DECREMENT
Prefix decrement "--" operator.
|
static PrefixExpression.Operator |
INCREMENT
Prefix increment "++" operator.
|
static PrefixExpression.Operator |
MINUS
Unary minus "-" operator.
|
static PrefixExpression.Operator |
NOT
Logical complement "!"
|
static PrefixExpression.Operator |
PLUS
Unary plus "+" operator.
|
Modifier and Type | Method and Description |
---|---|
static PrefixExpression.Operator |
toOperator(String token)
Returns the prefix operator corresponding to the given string,
or
null if none. |
String |
toString()
Returns the character sequence for the operator.
|
public static final PrefixExpression.Operator INCREMENT
public static final PrefixExpression.Operator DECREMENT
public static final PrefixExpression.Operator PLUS
public static final PrefixExpression.Operator MINUS
public static final PrefixExpression.Operator COMPLEMENT
public static final PrefixExpression.Operator NOT
public String toString()
public static PrefixExpression.Operator toOperator(String token)
null
if none.
toOperator
is the converse of toString
:
that is, Operator.toOperator(op.toString()) == op
for
all operators op
.
token
- the character sequence for the operatornull
if none
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.