public static enum UnaryExpr.Operator extends java.lang.Enum<UnaryExpr.Operator> implements Printable
| Enum Constant and Description |
|---|
BITWISE_COMPLEMENT |
LOGICAL_COMPLEMENT |
MINUS |
PLUS |
POSTFIX_DECREMENT |
POSTFIX_INCREMENT |
PREFIX_DECREMENT |
PREFIX_INCREMENT |
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
codeRepresentation |
private boolean |
isPostfix |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
asString() |
boolean |
isPostfix() |
boolean |
isPrefix() |
static UnaryExpr.Operator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UnaryExpr.Operator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnaryExpr.Operator PLUS
public static final UnaryExpr.Operator MINUS
public static final UnaryExpr.Operator PREFIX_INCREMENT
public static final UnaryExpr.Operator PREFIX_DECREMENT
public static final UnaryExpr.Operator LOGICAL_COMPLEMENT
public static final UnaryExpr.Operator BITWISE_COMPLEMENT
public static final UnaryExpr.Operator POSTFIX_INCREMENT
public static final UnaryExpr.Operator POSTFIX_DECREMENT
private final java.lang.String codeRepresentation
private final boolean isPostfix
public static UnaryExpr.Operator[] values()
for (UnaryExpr.Operator c : UnaryExpr.Operator.values()) System.out.println(c);
public static UnaryExpr.Operator valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean isPostfix()
public boolean isPrefix()