public static class PrefixExpression.Operator
extends java.lang.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 |
DELETE
delete 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.
|
static PrefixExpression.Operator |
TYPE_OF
typeof operator
|
static PrefixExpression.Operator |
VOID
void operator
|
Modifier and Type | Method and Description |
---|---|
static PrefixExpression.Operator |
toOperator(java.lang.String token)
Returns the prefix operator corresponding to the given string,
or
null if none. |
java.lang.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 static final PrefixExpression.Operator TYPE_OF
public static final PrefixExpression.Operator DELETE
public static final PrefixExpression.Operator VOID
public java.lang.String toString()
toString
in class java.lang.Object
public static PrefixExpression.Operator toOperator(java.lang.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 noneCopyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.