Package org.jacop.util.fsm
Class RegularExpressionParser.Literal
java.lang.Object
org.jacop.util.fsm.RegularExpressionParser.Expression
org.jacop.util.fsm.RegularExpressionParser.Literal
- Enclosing class:
RegularExpressionParser
It specifies a simple literal.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
lit
String denoting the literal.
-
-
Constructor Details
-
Literal
It constructs a literal.- Parameters:
lit
- string representation of the literal.
-
-
Method Details
-
getType
public int getType()- Specified by:
getType
in classRegularExpressionParser.Expression
- Returns:
- type
-
toString
-
equals
-
isSimple
public boolean isSimple()Description copied from class:RegularExpressionParser.Expression
It specifies if the expression is simple.- Overrides:
isSimple
in classRegularExpressionParser.Expression
- Returns:
- true if expression is a literal or disjunction of literals.
-
parseToFSM
Description copied from class:RegularExpressionParser.Expression
It creates Finite State Machine from the expression.- Specified by:
parseToFSM
in classRegularExpressionParser.Expression
- Returns:
- Finite State Machine corresponding
-