public enum InfixOperator extends Enum<InfixOperator>
| Enum Constant and Description | 
|---|
| ANDBitwise/logical and operator. | 
| ASSIGNAssignment operator. | 
| CONDITIONAL_ANDConditional and operator. | 
| CONDITIONAL_ORConditional or operator. | 
| DIVIDEDivision operator. | 
| EQUALSEqual operator. | 
| GREATERGreater than operator. | 
| GREATER_EQUALSGreater than or equal to operator. | 
| LEFT_SHIFTLeft shift operator. | 
| LESSLess than operator. | 
| LESS_EQUALSLess than or equal to operator. | 
| MINUSSubtract operator. | 
| NOT_EQUALSNot equal operator. | 
| ORBitwise/logical or operator. | 
| PLUSAdd operator. | 
| REMAINDERRemainder operator. | 
| RIGHT_SHIFT_SIGNEDSigned right shift operator. | 
| RIGHT_SHIFT_UNSIGNEDUnsigned right shift operator. | 
| TIMESMultiply operator. | 
| XORBitwise/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 nullpublic 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 falseIllegalArgumentException - if the parameter is nullpublic com.asakusafw.utils.java.model.syntax.InfixOperator.Category getCategory()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.