Enum AbstractPathRuleMatchExpression.MatchState
- java.lang.Object
-
- java.lang.Enum<AbstractPathRuleMatchExpression.MatchState>
-
- net.ssehub.easy.instantiation.core.model.buildlangModel.ruleMatch.AbstractPathRuleMatchExpression.MatchState
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AbstractPathRuleMatchExpression.MatchState>
- Enclosing class:
- AbstractPathRuleMatchExpression
private static enum AbstractPathRuleMatchExpression.MatchState extends java.lang.Enum<AbstractPathRuleMatchExpression.MatchState>
Defines matching states.- Author:
- Holger Eichelberger
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXACT_CHARMatch the exact character at the given position.MATCH_DEEP_PATHMatches deep paths.MATCH_MULTI_CHARMatches multiple characters at **.MATCH_SINGLE_CHARMatch a single wildcard character on ?
-
Field Summary
Fields Modifier and Type Field Description private intoffset
-
Constructor Summary
Constructors Modifier Constructor Description privateMatchState(int offset)Creates a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetOffset()Returns the offset for this match state.static AbstractPathRuleMatchExpression.MatchStatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static AbstractPathRuleMatchExpression.MatchState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EXACT_CHAR
public static final AbstractPathRuleMatchExpression.MatchState EXACT_CHAR
Match the exact character at the given position.
-
MATCH_SINGLE_CHAR
public static final AbstractPathRuleMatchExpression.MatchState MATCH_SINGLE_CHAR
Match a single wildcard character on ?
-
MATCH_MULTI_CHAR
public static final AbstractPathRuleMatchExpression.MatchState MATCH_MULTI_CHAR
Matches multiple characters at **.
-
MATCH_DEEP_PATH
public static final AbstractPathRuleMatchExpression.MatchState MATCH_DEEP_PATH
Matches deep paths.
-
-
Method Detail
-
values
public static AbstractPathRuleMatchExpression.MatchState[] 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 (AbstractPathRuleMatchExpression.MatchState c : AbstractPathRuleMatchExpression.MatchState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbstractPathRuleMatchExpression.MatchState 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
-
getOffset
public int getOffset()
Returns the offset for this match state.- Returns:
- the offset (for skipping underlying wildcard in case of try-and-backtrack,
0if no skipping is required)
-
-