|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Operator> com.novell.sentinel.client.tinyq.Operator
public enum Operator
Enum describing operators in the TinyQuery language.
Enum Constant Summary | |
---|---|
AND
|
|
EQUAL
|
|
GREATER_THAN
|
|
GREATER_THAN_OR_EQUAL
|
|
GROUP_LEFT
|
|
GROUP_RIGHT
|
|
LESS_THAN
|
|
LESS_THAN_OR_EQUAL
|
|
LIKE
|
|
NOT
|
|
NOT_AN_OPERATOR
|
|
NOT_EQUAL
|
|
OR
|
Field Summary | |
---|---|
static char |
OPERATOR_PREFIX
Lexical symbol used to prefix operator symbols to indicate the operator symbols are not to be interpreted as literal characters. |
Method Summary | |
---|---|
int |
getPrecedence()
Return the precedence value of this Operator. |
boolean |
isBinary()
|
static Operator |
mapToOperator(char c)
Given a character, return the corresponding Operator, if any. |
String |
toQueryString()
Return the lexical representation of the operator. |
String |
toString()
Return a human-readable string representing the operator. |
static Operator |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Operator[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Operator NOT
public static final Operator LESS_THAN
public static final Operator LESS_THAN_OR_EQUAL
public static final Operator GREATER_THAN
public static final Operator GREATER_THAN_OR_EQUAL
public static final Operator EQUAL
public static final Operator NOT_EQUAL
public static final Operator LIKE
public static final Operator OR
public static final Operator AND
public static final Operator GROUP_LEFT
public static final Operator GROUP_RIGHT
public static final Operator NOT_AN_OPERATOR
Field Detail |
---|
public static final char OPERATOR_PREFIX
Method Detail |
---|
public static Operator[] values()
for (Operator c : Operator.values()) System.out.println(c);
public static 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 name
NullPointerException
- if the argument is nullpublic int getPrecedence()
public boolean isBinary()
public String toString()
toString
in class Enum<Operator>
public String toQueryString()
public static Operator mapToOperator(char c)
c
- Character to check.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |