public enum InfixOperator extends Enum<InfixOperator>
Enum Constant and Description |
---|
AND
Bitwise/logical and operator.
|
ASSIGN
Assignment operator.
|
CONDITIONAL_AND
Conditional and operator.
|
CONDITIONAL_OR
Conditional or operator.
|
DIVIDE
Division operator.
|
EQUALS
Equal operator.
|
GREATER
Greater than operator.
|
GREATER_EQUALS
Greater than or equal to operator.
|
LEFT_SHIFT
Left shift operator.
|
LESS
Less than operator.
|
LESS_EQUALS
Less than or equal to operator.
|
MINUS
Subtract operator.
|
NOT_EQUALS
Not equal operator.
|
OR
Bitwise/logical or operator.
|
PLUS
Add operator.
|
REMAINDER
Remainder operator.
|
RIGHT_SHIFT_SIGNED
Signed right shift operator.
|
RIGHT_SHIFT_UNSIGNED
Unsigned right shift operator.
|
TIMES
Multiply operator.
|
XOR
Bitwise/logical exclusive or operator.
|
Modifier and Type | Method and Description |
---|---|
static InfixOperator |
fromSymbol(String symbol)
Returns an operator from its symbol.
|
String |
getAssignmentSymbol()
Returns the assignment operator symbol.
|
com.asakusafw.utils.java.model.syntax.InfixOperator.Category |
getCategory()
Returns the operator category.
|
String |
getSymbol()
Returns the infix operator symbol.
|
boolean |
isPermitted(com.asakusafw.utils.java.model.syntax.InfixOperator.Context context)
Returns whether this operator can be used in the specified context or not.
|
static InfixOperator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InfixOperator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InfixOperator ASSIGN
public static final InfixOperator PLUS
public static final InfixOperator MINUS
public static final InfixOperator TIMES
public static final InfixOperator DIVIDE
public static final InfixOperator REMAINDER
public static final InfixOperator LEFT_SHIFT
public static final InfixOperator RIGHT_SHIFT_SIGNED
public static final InfixOperator RIGHT_SHIFT_UNSIGNED
public static final InfixOperator OR
public static final InfixOperator AND
public static final InfixOperator XOR
public static final InfixOperator EQUALS
public static final InfixOperator NOT_EQUALS
public static final InfixOperator GREATER
public static final InfixOperator LESS
public static final InfixOperator GREATER_EQUALS
public static final InfixOperator LESS_EQUALS
public static final InfixOperator CONDITIONAL_OR
public static final InfixOperator CONDITIONAL_AND
public static InfixOperator[] values()
for (InfixOperator c : InfixOperator.values()) System.out.println(c);
public static InfixOperator 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 String getAssignmentSymbol()
public static InfixOperator fromSymbol(String symbol)
symbol
- the target operator symbolnull
if there is no such the operatorIllegalArgumentException
- if the parameter is null
public boolean isPermitted(com.asakusafw.utils.java.model.syntax.InfixOperator.Context context)
context
- the target contexttrue
if this operator can be used in the specified context, otherwise false
IllegalArgumentException
- if the parameter is null
public com.asakusafw.utils.java.model.syntax.InfixOperator.Category getCategory()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.