Package com.osohq.oso
Enum Operator
- java.lang.Object
-
- java.lang.Enum<Operator>
-
- com.osohq.oso.Operator
-
- All Implemented Interfaces:
Serializable
,Comparable<Operator>
public enum Operator extends Enum<Operator>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Operator
valueOf(String name)
Returns the enum constant of this type with the specified name.static Operator[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Eq
public static final Operator Eq
-
Geq
public static final Operator Geq
-
Gt
public static final Operator Gt
-
Leq
public static final Operator Leq
-
Lt
public static final Operator Lt
-
Neq
public static final Operator Neq
-
Add
public static final Operator Add
-
And
public static final Operator And
-
Assign
public static final Operator Assign
-
Cut
public static final Operator Cut
-
Debug
public static final Operator Debug
-
Div
public static final Operator Div
-
Dot
public static final Operator Dot
-
ForAll
public static final Operator ForAll
-
In
public static final Operator In
-
Isa
public static final Operator Isa
-
Mod
public static final Operator Mod
-
Mul
public static final Operator Mul
-
New
public static final Operator New
-
Not
public static final Operator Not
-
Or
public static final Operator Or
-
Print
public static final Operator Print
-
Rem
public static final Operator Rem
-
Sub
public static final Operator Sub
-
Unify
public static final Operator Unify
-
-
Method Detail
-
values
public static Operator[] 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 (Operator c : Operator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Operator 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 nameNullPointerException
- if the argument is null
-
-