Package org.sonar.javascript.se
Enum Relation.Operator
- java.lang.Object
-
- java.lang.Enum<Relation.Operator>
-
- org.sonar.javascript.se.Relation.Operator
-
- All Implemented Interfaces:
Serializable,Comparable<Relation.Operator>
- Enclosing class:
- Relation
public static enum Relation.Operator extends Enum<Relation.Operator>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EQUAL_TOGREATER_THANGREATER_THAN_OR_EQUAL_TOLESS_THANLESS_THAN_OR_EQUAL_TONOT_EQUAL_TOSTRICT_EQUAL_TOSTRICT_NOT_EQUAL_TO
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisCompatibleForSameOperands(Relation.Operator other)Relation.Operatornot()Relation.OperatoronReversedOperands()StringoperatorString()static Relation.OperatorvalueOf(String name)Returns the enum constant of this type with the specified name.static Relation.Operator[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EQUAL_TO
public static final Relation.Operator EQUAL_TO
-
NOT_EQUAL_TO
public static final Relation.Operator NOT_EQUAL_TO
-
STRICT_EQUAL_TO
public static final Relation.Operator STRICT_EQUAL_TO
-
STRICT_NOT_EQUAL_TO
public static final Relation.Operator STRICT_NOT_EQUAL_TO
-
LESS_THAN
public static final Relation.Operator LESS_THAN
-
GREATER_THAN
public static final Relation.Operator GREATER_THAN
-
LESS_THAN_OR_EQUAL_TO
public static final Relation.Operator LESS_THAN_OR_EQUAL_TO
-
GREATER_THAN_OR_EQUAL_TO
public static final Relation.Operator GREATER_THAN_OR_EQUAL_TO
-
-
Method Detail
-
values
public static Relation.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 (Relation.Operator c : Relation.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 Relation.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
-
isCompatibleForSameOperands
public boolean isCompatibleForSameOperands(Relation.Operator other)
-
onReversedOperands
public Relation.Operator onReversedOperands()
-
not
public Relation.Operator not()
-
operatorString
public String operatorString()
-
-