|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ArithmeticOperator>
org.modeshape.jcr.query.model.ArithmeticOperator
public enum ArithmeticOperator
The arithmetic operators.
Nested Class Summary | |
---|---|
static class |
ArithmeticOperator.Arity
|
Enum Constant Summary | |
---|---|
ADD
|
|
DIVIDE
|
|
MULTIPLY
|
|
SUBTRACT
|
Method Summary | |
---|---|
ArithmeticOperator.Arity |
arity()
Get the 'arity' of the operator. |
static ArithmeticOperator |
forSymbol(String symbol)
Attempt to find the Operator given a symbol. |
boolean |
isBinary()
Return whether this is an binary operator. |
boolean |
isUnary()
Return whether this is an unary operator. |
boolean |
precedes(ArithmeticOperator operator)
Determine whether this operator has a higher precedence than the supplied operator. |
String |
symbol()
Get the symbol for this operator |
String |
toString()
|
static ArithmeticOperator |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ArithmeticOperator[] |
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 ArithmeticOperator ADD
public static final ArithmeticOperator SUBTRACT
public static final ArithmeticOperator MULTIPLY
public static final ArithmeticOperator DIVIDE
Method Detail |
---|
public static ArithmeticOperator[] values()
for (ArithmeticOperator c : ArithmeticOperator.values()) System.out.println(c);
public static ArithmeticOperator 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 String symbol()
public ArithmeticOperator.Arity arity()
isUnary()
,
isBinary()
public boolean isUnary()
arity()
,
isBinary()
public boolean isBinary()
arity()
,
isUnary()
public boolean precedes(ArithmeticOperator operator)
operator
- the other operator; may not be null
public String toString()
toString
in class Enum<ArithmeticOperator>
public static ArithmeticOperator forSymbol(String symbol)
symbol
- the symbol
IllegalArgumentException
- if the symbol is null
|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |