|
||||||||||
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.Type> org.zkoss.zuss.metainfo.Operator.Type
public static enum Operator.Type
Types of the operators.
Enum Constant Summary | |
---|---|
ADD
The addition. |
|
AND
The AND operatr. |
|
COMMA
Argument separator. |
|
CONCAT
Concatenation. |
|
DIVIDE
The division. |
|
EQ
Equals. |
|
FUNC
Function operator. |
|
GE
Greater than or equals. |
|
GT
Greater than. |
|
LE
Less than or equals. |
|
LPAREN
Left parenthesis, '('. |
|
LT
Less than. |
|
MULTIPLY
The multiplication. |
|
NE
Not equals. |
|
NEGATE
The negation. |
|
OR
The OR oeprator. |
|
RPAREN
Right parenthesis, ')'. |
|
SUBTRACT
The subtraction. |
Method Summary | |
---|---|
int |
getArgumentNumber()
Returns the number arguments that this operator expects. |
java.lang.String |
getName()
Returns the name of this operator. |
int |
getPrecedence()
Returns the precedence of this operator. |
java.lang.Object |
invoke(java.lang.Object... args)
Invokes the operator. |
java.lang.String |
toString()
|
static Operator.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Operator.Type[] |
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.Type CONCAT
public static final Operator.Type NEGATE
public static final Operator.Type ADD
public static final Operator.Type SUBTRACT
public static final Operator.Type MULTIPLY
public static final Operator.Type DIVIDE
public static final Operator.Type EQ
public static final Operator.Type NE
public static final Operator.Type OR
public static final Operator.Type AND
public static final Operator.Type GT
public static final Operator.Type LT
public static final Operator.Type GE
public static final Operator.Type LE
public static final Operator.Type LPAREN
public static final Operator.Type RPAREN
public static final Operator.Type FUNC
public static final Operator.Type COMMA
Method Detail |
---|
public static Operator.Type[] values()
for (Operator.Type c : Operator.Type.values()) System.out.println(c);
public static Operator.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic int getPrecedence()
public int getArgumentNumber()
public java.lang.String getName()
public java.lang.Object invoke(java.lang.Object... args)
public java.lang.String toString()
toString
in class java.lang.Enum<Operator.Type>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |