|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<OperatorType>
de.cau.cs.kieler.core.kexpressions.OperatorType
public enum OperatorType
A representation of the literals of the enumeration 'Operator Type', and utility methods for working with them. OperatorTypes are used for OperatorExpressions. The types may reference any corresponding operator or function that may make use of an arbitrary number of subExpressions. Hence it contains unary and binary operators.
KExpressionsPackage.getOperatorType()
Enum Constant Summary | |
---|---|
ADD
The 'ADD' literal object. |
|
AND
The 'AND' literal object. |
|
DIV
The 'DIV' literal object. |
|
EQ
The 'EQ' literal object. |
|
GEQ
The 'GEQ' literal object. |
|
GT
The 'GT' literal object. |
|
LEQ
The 'LEQ' literal object. |
|
LT
The 'LT' literal object. |
|
MOD
The 'MOD' literal object. |
|
MULT
The 'MULT' literal object. |
|
NE
The 'NE' literal object. |
|
NOT
The 'NOT' literal object. |
|
OR
The 'OR' literal object. |
|
PRE
The 'PRE' literal object. |
|
SUB
The 'SUB' literal object. |
|
VAL
The 'VAL' literal object. |
Field Summary | |
---|---|
static int |
ADD_VALUE
The 'ADD' literal value. |
static int |
AND_VALUE
The 'AND' literal value. |
static int |
DIV_VALUE
The 'DIV' literal value. |
static int |
EQ_VALUE
The 'EQ' literal value. |
static int |
GEQ_VALUE
The 'GEQ' literal value. |
static int |
GT_VALUE
The 'GT' literal value. |
static int |
LEQ_VALUE
The 'LEQ' literal value. |
static int |
LT_VALUE
The 'LT' literal value. |
static int |
MOD_VALUE
The 'MOD' literal value. |
static int |
MULT_VALUE
The 'MULT' literal value. |
static int |
NE_VALUE
The 'NE' literal value. |
static int |
NOT_VALUE
The 'NOT' literal value. |
static int |
OR_VALUE
The 'OR' literal value. |
static int |
PRE_VALUE
The 'PRE' literal value. |
static int |
SUB_VALUE
The 'SUB' literal value. |
static int |
VAL_VALUE
The 'VAL' literal value. |
static List<OperatorType> |
VALUES
A public read-only list of all the 'Operator Type' enumerators. |
Method Summary | |
---|---|
static OperatorType |
get(int value)
Returns the 'Operator Type' literal with the specified integer value. |
static OperatorType |
get(String literal)
Returns the 'Operator Type' literal with the specified literal value. |
static OperatorType |
getByName(String name)
Returns the 'Operator Type' literal with the specified name. |
String |
getLiteral()
|
String |
getName()
|
int |
getValue()
|
String |
toString()
Returns the literal value of the enumerator, which is its string representation. |
static OperatorType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static OperatorType[] |
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 OperatorType EQ
EQ_VALUE
public static final OperatorType LT
LT_VALUE
public static final OperatorType LEQ
LEQ_VALUE
public static final OperatorType GT
GT_VALUE
public static final OperatorType GEQ
GEQ_VALUE
public static final OperatorType NOT
NOT_VALUE
public static final OperatorType VAL
VAL_VALUE
public static final OperatorType PRE
PRE_VALUE
public static final OperatorType NE
NE_VALUE
public static final OperatorType AND
AND_VALUE
public static final OperatorType OR
OR_VALUE
public static final OperatorType ADD
ADD_VALUE
public static final OperatorType SUB
SUB_VALUE
public static final OperatorType MULT
MULT_VALUE
public static final OperatorType DIV
DIV_VALUE
public static final OperatorType MOD
MOD_VALUE
Field Detail |
---|
public static final int EQ_VALUE
EQ
,
Constant Field Valuesliteral | = | = |
public static final int LT_VALUE
LT
,
Constant Field Valuesliteral | = | < |
public static final int LEQ_VALUE
LEQ
,
Constant Field Valuesliteral | = | <= |
public static final int GT_VALUE
GT
,
Constant Field Valuesliteral | = | > |
public static final int GEQ_VALUE
GEQ
,
Constant Field Valuesliteral | = | >= |
public static final int NOT_VALUE
NOT
,
Constant Field Valuesliteral | = | not |
public static final int VAL_VALUE
VAL
,
Constant Field Valuesliteral | = | ? |
public static final int PRE_VALUE
PRE
,
Constant Field Valuesliteral | = | pre |
public static final int NE_VALUE
NE
,
Constant Field Valuesliteral | = | <> |
public static final int AND_VALUE
AND
,
Constant Field Valuesliteral | = | and |
public static final int OR_VALUE
OR
,
Constant Field Valuesliteral | = | or |
public static final int ADD_VALUE
ADD
,
Constant Field Valuesliteral | = | + |
public static final int SUB_VALUE
SUB
,
Constant Field Valuesliteral | = | - |
public static final int MULT_VALUE
MULT
,
Constant Field Valuesliteral | = | * |
public static final int DIV_VALUE
DIV
,
Constant Field Valuesliteral | = | / |
public static final int MOD_VALUE
MOD
,
Constant Field Valuesliteral | = | mod |
public static final List<OperatorType> VALUES
Method Detail |
---|
public static OperatorType[] values()
for (OperatorType c : OperatorType.values()) System.out.println(c);
public static OperatorType 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 static OperatorType get(String literal)
public static OperatorType getByName(String name)
public static OperatorType get(int value)
public int getValue()
getValue
in interface Enumerator
public String getName()
getName
in interface Enumerator
public String getLiteral()
getLiteral
in interface Enumerator
public String toString()
toString
in class Enum<OperatorType>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |