Package net.ssehub.easy.dslCore
Enum Class ModelUtility.ParseState
- All Implemented Interfaces:
Serializable,Comparable<ModelUtility.ParseState>,Constable
- Enclosing class:
ModelUtility<E extends org.eclipse.emf.ecore.EObject,R extends net.ssehub.easy.basics.modelManagement.IModel>
Cutoff parser states.
- Author:
- Holger Eichelberger
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanReturns whether this state is a comment state.static ModelUtility.ParseStateReturns the enum constant of this class with the specified name.static ModelUtility.ParseState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CODE
-
SLASH
-
SL_COMMENT
-
ML_COMMENT
-
ML_COMMENT_STAR
-
STRING
-
STRING_ESCAPE
-
STRING2
-
STRING2_ESCAPE
-
-
Field Details
-
isComment
private boolean isComment
-
-
Constructor Details
-
ParseState
private ParseState(boolean isComment) Creates a new value.- Parameters:
isComment- whether this "constant" represents a comment
-
-
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
-
isComment
private boolean isComment()Returns whether this state is a comment state.- Returns:
truefor comment state,falseelse
-