de.cau.cs.kieler.core.kexpressions
Enum OperatorType

java.lang.Object
  extended by java.lang.Enum<OperatorType>
      extended by de.cau.cs.kieler.core.kexpressions.OperatorType
All Implemented Interfaces:
Comparable<OperatorType>, Enumerator

public enum OperatorType
extends Enum<OperatorType>
implements Enumerator

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.

See Also:
KExpressionsPackage.getOperatorType()
Rating red
Generated:
This code was automatically generated.
Model element

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

EQ

public static final OperatorType EQ
The 'EQ' literal object.

See Also:
EQ_VALUE
Generated:
This code was automatically generated.
Ordered

LT

public static final OperatorType LT
The 'LT' literal object.

See Also:
LT_VALUE
Generated:
This code was automatically generated.
Ordered

LEQ

public static final OperatorType LEQ
The 'LEQ' literal object.

See Also:
LEQ_VALUE
Generated:
This code was automatically generated.
Ordered

GT

public static final OperatorType GT
The 'GT' literal object.

See Also:
GT_VALUE
Generated:
This code was automatically generated.
Ordered

GEQ

public static final OperatorType GEQ
The 'GEQ' literal object.

See Also:
GEQ_VALUE
Generated:
This code was automatically generated.
Ordered

NOT

public static final OperatorType NOT
The 'NOT' literal object.

See Also:
NOT_VALUE
Generated:
This code was automatically generated.
Ordered

VAL

public static final OperatorType VAL
The 'VAL' literal object.

See Also:
VAL_VALUE
Generated:
This code was automatically generated.
Ordered

PRE

public static final OperatorType PRE
The 'PRE' literal object.

See Also:
PRE_VALUE
Generated:
This code was automatically generated.
Ordered

NE

public static final OperatorType NE
The 'NE' literal object.

See Also:
NE_VALUE
Generated:
This code was automatically generated.
Ordered

AND

public static final OperatorType AND
The 'AND' literal object.

See Also:
AND_VALUE
Generated:
This code was automatically generated.
Ordered

OR

public static final OperatorType OR
The 'OR' literal object.

See Also:
OR_VALUE
Generated:
This code was automatically generated.
Ordered

ADD

public static final OperatorType ADD
The 'ADD' literal object.

See Also:
ADD_VALUE
Generated:
This code was automatically generated.
Ordered

SUB

public static final OperatorType SUB
The 'SUB' literal object.

See Also:
SUB_VALUE
Generated:
This code was automatically generated.
Ordered

MULT

public static final OperatorType MULT
The 'MULT' literal object.

See Also:
MULT_VALUE
Generated:
This code was automatically generated.
Ordered

DIV

public static final OperatorType DIV
The 'DIV' literal object.

See Also:
DIV_VALUE
Generated:
This code was automatically generated.
Ordered

MOD

public static final OperatorType MOD
The 'MOD' literal object.

See Also:
MOD_VALUE
Generated:
This code was automatically generated.
Ordered
Field Detail

EQ_VALUE

public static final int EQ_VALUE
The 'EQ' literal value. Equals operator

See Also:
EQ, Constant Field Values
Generated:
This code was automatically generated.
Model element:
literal==
Ordered

LT_VALUE

public static final int LT_VALUE
The 'LT' literal value. Less than operator. (Not commutative!)

See Also:
LT, Constant Field Values
Generated:
This code was automatically generated.
Model element:
literal=<
Ordered

LEQ_VALUE

public static final int LEQ_VALUE
The 'LEQ' literal value. Less or Equal operator. (Not commutative!)

See Also:
LEQ, Constant Field Values
Generated:
This code was automatically generated.
Model element:
literal=<=
Ordered

GT_VALUE

public static final int GT_VALUE
The 'GT' literal value. Greater than operator. (Not commutative!)

See Also:
GT, Constant Field Values
Generated:
This code was automatically generated.
Model element:
literal=>
Ordered

GEQ_VALUE

public static final int GEQ_VALUE
The 'GEQ' literal value. Greater or Equal operator. (Not commutative!)

See Also:
GEQ, Constant Field Values
Generated:
This code was automatically generated.
Model element:
literal=>=
Ordered

NOT_VALUE

public static final int NOT_VALUE
The 'NOT' literal value. Logical Negation operator (unary)

See Also:
NOT, Constant Field Values
Generated:
This code was automatically generated.
Model element:
literal=not
Ordered

VAL_VALUE

public static final int VAL_VALUE
The 'VAL' literal value. Value operator. Returns the value of a Signal referenced by a SignalReference.

See Also:
VAL, Constant Field Values
Generated:
This code was automatically generated.
Model element:
literal=?
Ordered

PRE_VALUE

public static final int PRE_VALUE
The 'PRE' literal value. Pre operator, returns the previous state of a Signal referenced by a SignalReference.

See Also:
PRE, Constant Field Values
Generated:
This code was automatically generated.
Model element:
literal=pre
Ordered

NE_VALUE

public static final int NE_VALUE
The 'NE' literal value. Not Equal operator.

See Also:
NE, Constant Field Values
Generated:
This code was automatically generated.
Model element:
literal=<>
Ordered

AND_VALUE

public static final int AND_VALUE
The 'AND' literal value. Logical AND operator.

See Also:
AND, Constant Field Values
Generated:
This code was automatically generated.
Model element:
literal=and
Ordered

OR_VALUE

public static final int OR_VALUE
The 'OR' literal value. Logical OR operator.

See Also:
OR, Constant Field Values
Generated:
This code was automatically generated.
Model element:
literal=or
Ordered

ADD_VALUE

public static final int ADD_VALUE
The 'ADD' literal value. Arithmetic addition operator.

See Also:
ADD, Constant Field Values
Generated:
This code was automatically generated.
Model element:
literal=+
Ordered

SUB_VALUE

public static final int SUB_VALUE
The 'SUB' literal value. Arithmetic subtraction operator. (Not commutative!)

See Also:
SUB, Constant Field Values
Generated:
This code was automatically generated.
Model element:
literal=-
Ordered

MULT_VALUE

public static final int MULT_VALUE
The 'MULT' literal value. Arithmetic multiplication operator.

See Also:
MULT, Constant Field Values
Generated:
This code was automatically generated.
Model element:
literal=*
Ordered

DIV_VALUE

public static final int DIV_VALUE
The 'DIV' literal value. Aithmetic division operator. (Not commutative!)

See Also:
DIV, Constant Field Values
Generated:
This code was automatically generated.
Model element:
literal=/
Ordered

MOD_VALUE

public static final int MOD_VALUE
The 'MOD' literal value. Arithmetic modulo operation. (Not commutative!)

See Also:
MOD, Constant Field Values
Generated:
This code was automatically generated.
Model element:
literal=mod
Ordered

VALUES

public static final List<OperatorType> VALUES
A public read-only list of all the 'Operator Type' enumerators.

Generated:
This code was automatically generated.
Method Detail

values

public static OperatorType[] 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 (OperatorType c : OperatorType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static OperatorType 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

get

public static OperatorType get(String literal)
Returns the 'Operator Type' literal with the specified literal value.

Generated:
This code was automatically generated.

getByName

public static OperatorType getByName(String name)
Returns the 'Operator Type' literal with the specified name.

Generated:
This code was automatically generated.

get

public static OperatorType get(int value)
Returns the 'Operator Type' literal with the specified integer value.

Generated:
This code was automatically generated.

getValue

public int getValue()

Specified by:
getValue in interface Enumerator
Generated:
This code was automatically generated.

getName

public String getName()

Specified by:
getName in interface Enumerator
Generated:
This code was automatically generated.

getLiteral

public String getLiteral()

Specified by:
getLiteral in interface Enumerator
Generated:
This code was automatically generated.

toString

public String toString()
Returns the literal value of the enumerator, which is its string representation.

Overrides:
toString in class Enum<OperatorType>
Generated:
This code was automatically generated.