Enum Class BinaryOp
- All Implemented Interfaces:
Serializable, Comparable<BinaryOp>, Constable, org.eclipse.emf.common.util.Enumerator
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe 'ADD' literal value.static final intThe 'AND' literal value.static final intThe 'DIV' literal value.static final intThe 'MUL' literal value.static final intThe 'OR' literal value.static final intThe 'POW' literal value.static final intThe 'SUB' literal value.A public read-only list of all the 'Binary Op' enumerators.static final intThe 'XOR' literal value. -
Method Summary
Modifier and TypeMethodDescriptionstatic BinaryOpget(int value) Returns the 'Binary Op' literal with the specified integer value.static BinaryOpReturns the 'Binary Op' literal with the specified literal value.static BinaryOpReturns the 'Binary Op' literal with the specified name.getName()intgetValue()toString()Returns the literal value of the enumerator, which is its string representation.static BinaryOpReturns the enum constant of this class with the specified name.static BinaryOp[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADD
-
SUB
-
MUL
-
DIV
-
POW
-
AND
-
OR
-
XOR
-
-
Field Details
-
ADD_VALUE
public static final int ADD_VALUEThe 'ADD' literal value.- See Also:
-
SUB_VALUE
public static final int SUB_VALUEThe 'SUB' literal value.- See Also:
-
MUL_VALUE
public static final int MUL_VALUEThe 'MUL' literal value.- See Also:
-
DIV_VALUE
public static final int DIV_VALUEThe 'DIV' literal value.- See Also:
-
POW_VALUE
public static final int POW_VALUEThe 'POW' literal value.- See Also:
-
AND_VALUE
public static final int AND_VALUEThe 'AND' literal value.- See Also:
-
OR_VALUE
public static final int OR_VALUEThe 'OR' literal value.- See Also:
-
XOR_VALUE
public static final int XOR_VALUEThe 'XOR' literal value.- See Also:
-
VALUES
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
get
-
getByName
-
get
Returns the 'Binary Op' literal with the specified integer value.- Parameters:
value- the integer value.- Returns:
- the matching enumerator or
null.
-
getValue
public int getValue()- Specified by:
getValuein interfaceorg.eclipse.emf.common.util.Enumerator
-
getName
-
getLiteral
- Specified by:
getLiteralin interfaceorg.eclipse.emf.common.util.Enumerator
-
toString
-