public static enum UnaryExpr.Operator extends Enum<UnaryExpr.Operator> implements Stringable
Enum Constant and Description |
---|
BITWISE_COMPLEMENT |
LOGICAL_COMPLEMENT |
MINUS |
PLUS |
POSTFIX_DECREMENT |
POSTFIX_INCREMENT |
PREFIX_DECREMENT |
PREFIX_INCREMENT |
Modifier and Type | Method and 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 String asString()
asString
in interface Stringable
public boolean isPostfix()
public boolean isPrefix()
Copyright © 2007–2024. All rights reserved.