Package org.jacop.util.fsm
Class RegularExpressionParser.Expression
- java.lang.Object
-
- org.jacop.util.fsm.RegularExpressionParser.Expression
-
- Direct Known Subclasses:
RegularExpressionParser.Concatination,RegularExpressionParser.Literal,RegularExpressionParser.Star,RegularExpressionParser.Sum
- Enclosing class:
- RegularExpressionParser
public abstract class RegularExpressionParser.Expression extends java.lang.ObjectIt creates an abstract class expression which specifies basic methods of the expression.
-
-
Constructor Summary
Constructors Constructor Description Expression()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract intgetType()booleanisSimple()It specifies if the expression is simple.abstract FSMparseToFSM()It creates Finite State Machine from the expression.
-
-
-
Method Detail
-
getType
abstract int getType()
- Returns:
- type
-
isSimple
public boolean isSimple()
It specifies if the expression is simple.- Returns:
- true if expression is a literal or disjunction of literals.
-
parseToFSM
public abstract FSM parseToFSM()
It creates Finite State Machine from the expression.- Returns:
- Finite State Machine corresponding
-
-