Printable
, Serializable
, Comparable<UnaryExpr.Operator>
public static enum UnaryExpr.Operator extends Enum<UnaryExpr.Operator> implements Printable
Enum Constant | Description |
---|---|
BITWISE_COMPLEMENT |
|
LOGICAL_COMPLEMENT |
|
MINUS |
|
PLUS |
|
POSTFIX_DECREMENT |
|
POSTFIX_INCREMENT |
|
PREFIX_DECREMENT |
|
PREFIX_INCREMENT |
Modifier and Type | Method | Description |
---|---|---|
String |
asString() |
|
boolean |
isPostfix() |
|
boolean |
isPrefix() |
|
static UnaryExpr.Operator |
valueOf(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
public static UnaryExpr.Operator[] values()
for (UnaryExpr.Operator c : UnaryExpr.Operator.values()) System.out.println(c);
public static UnaryExpr.Operator valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isPostfix()
public boolean isPrefix()
Copyright © 2007–2019. All rights reserved.