public enum UnaryOperator extends Enum<UnaryOperator>
Modifier and Type | Class and Description |
---|---|
static class |
UnaryOperator.Category
Represents an operator kind.
|
Enum Constant and Description |
---|
COMPLEMENT
Bit complement.
|
DECREMENT
Prefix decrement.
|
INCREMENT
Prefix increment.
|
MINUS
Unary minus.
|
NOT
Logical not.
|
PLUS
Unary plus.
|
Modifier and Type | Method and Description |
---|---|
static UnaryOperator |
fromSymbol(String symbol)
Returns an operator from its symbol.
|
UnaryOperator.Category |
getCategory()
Returns the operator category.
|
String |
getSymbol()
Returns the operator symbol.
|
static UnaryOperator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UnaryOperator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnaryOperator PLUS
public static final UnaryOperator MINUS
public static final UnaryOperator COMPLEMENT
public static final UnaryOperator NOT
public static final UnaryOperator INCREMENT
public static final UnaryOperator DECREMENT
public static UnaryOperator[] values()
for (UnaryOperator c : UnaryOperator.values()) System.out.println(c);
public static UnaryOperator 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 getSymbol()
public UnaryOperator.Category getCategory()
public static UnaryOperator fromSymbol(String symbol)
symbol
- the target operator symbolnull
if there is no such the operatorIllegalArgumentException
- if the parameter is null
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.