Enum ConstraintClassifier.ExpectedType
- java.lang.Object
-
- java.lang.Enum<ConstraintClassifier.ExpectedType>
-
- net.ssehub.easy.varModel.model.filter.ConstraintClassifier.ExpectedType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ConstraintClassifier.ExpectedType>
- Enclosing class:
- ConstraintClassifier
private static enum ConstraintClassifier.ExpectedType extends java.lang.Enum<ConstraintClassifier.ExpectedType>
With the aid of this enum is it possible to tell the Classifier which part of a constraint is expected to be next. If the read constraint do not match to the expected enum type, the current constraint cannot be a AssingmentConstaint.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONSTANT_VALUEA ConstantValue should be read at next.OCL_FEATURE_CALLAn OCLFeatureCall should be read as next.REFERENCE_VALUEThis is a constraint for a reference.VARIABLEA Variable should be read at next.
-
Constructor Summary
Constructors Modifier Constructor Description privateExpectedType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConstraintClassifier.ExpectedTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ConstraintClassifier.ExpectedType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VARIABLE
public static final ConstraintClassifier.ExpectedType VARIABLE
A Variable should be read at next.
-
OCL_FEATURE_CALL
public static final ConstraintClassifier.ExpectedType OCL_FEATURE_CALL
An OCLFeatureCall should be read as next.
-
CONSTANT_VALUE
public static final ConstraintClassifier.ExpectedType CONSTANT_VALUE
A ConstantValue should be read at next.
-
REFERENCE_VALUE
public static final ConstraintClassifier.ExpectedType REFERENCE_VALUE
This is a constraint for a reference.
-
-
Method Detail
-
values
public static ConstraintClassifier.ExpectedType[] 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 (ConstraintClassifier.ExpectedType c : ConstraintClassifier.ExpectedType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConstraintClassifier.ExpectedType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-