org.codehaus.jparsec.examples.sql.ast
Enum Op
java.lang.Object
java.lang.Enum<Op>
org.codehaus.jparsec.examples.sql.ast.Op
- All Implemented Interfaces:
- Serializable, Comparable<Op>
public enum Op
- extends Enum<Op>
Operators
- Author:
- Ben Yu
|
Method Summary |
static Op |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Op[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
PLUS
public static final Op PLUS
MINUS
public static final Op MINUS
MUL
public static final Op MUL
DIV
public static final Op DIV
MOD
public static final Op MOD
NEG
public static final Op NEG
IN
public static final Op IN
NOT_IN
public static final Op NOT_IN
EQ
public static final Op EQ
GT
public static final Op GT
LT
public static final Op LT
GE
public static final Op GE
LE
public static final Op LE
NE
public static final Op NE
NOT
public static final Op NOT
AND
public static final Op AND
OR
public static final Op OR
IS
public static final Op IS
EXISTS
public static final Op EXISTS
NOT_EXISTS
public static final Op NOT_EXISTS
values
public static Op[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Op c : Op.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Op valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
Copyright © 2014. All rights reserved.