public class RegularExpressionParser.Literal extends RegularExpressionParser.Expression
Modifier and Type | Field and Description |
---|---|
java.lang.String |
lit
String denoting the literal.
|
Constructor and Description |
---|
RegularExpressionParser.Literal(java.lang.String lit)
It constructs a literal.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object c) |
int |
getType()
If the given string contains the words that this Expression object
requires, this method returns an array of ints.
|
boolean |
isSimple()
It specifies if the expression is simple.
|
FSM |
parseToFSM()
It creates Finite State Machine from the expression.
|
java.lang.String |
toString() |
public RegularExpressionParser.Literal(java.lang.String lit)
lit
- string representation of the literal.public int getType()
RegularExpressionParser.Expression
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object c)
equals
in class java.lang.Object
public boolean isSimple()
RegularExpressionParser.Expression
isSimple
in class RegularExpressionParser.Expression
public FSM parseToFSM()
RegularExpressionParser.Expression
parseToFSM
in class RegularExpressionParser.Expression