|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javatools.parsers.RegularExpression.RegExState
public static class RegularExpression.RegExState
Represents one position in a regular expression
Field Summary | |
---|---|
int |
id
Id for toString |
static int |
idcounter
Counts all RegExStates to have an id for each (for toString) |
java.util.List<RegularExpression.RegExState> |
successors
Holds all positions that can follow from here |
java.lang.String |
token
Holds the token name at the current position |
Constructor Summary | |
---|---|
RegularExpression.RegExState(java.lang.String token)
Constructs a RegExChunk with a token |
Method Summary | |
---|---|
void |
addSuccessor(RegularExpression.RegExState s)
Adds one successor |
void |
addSuccessors(java.util.Collection<RegularExpression.RegExState> s)
Adds multiple successors |
int |
compareTo(RegularExpression.RegExState o)
|
java.lang.String |
describe()
Returns a nice description string |
boolean |
equals(java.lang.Object o)
|
java.util.List<RegularExpression.RegExState> |
getSuccessors()
Returns the successors |
java.lang.String |
getToken()
Returns the token |
int |
hashCode()
|
void |
setToken(java.lang.String t)
Changes the token |
java.lang.String |
toString()
Returns the id and the token |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int idcounter
public final int id
public java.util.List<RegularExpression.RegExState> successors
public java.lang.String token
Constructor Detail |
---|
public RegularExpression.RegExState(java.lang.String token)
Method Detail |
---|
public void setToken(java.lang.String t)
public void addSuccessor(RegularExpression.RegExState s)
public void addSuccessors(java.util.Collection<RegularExpression.RegExState> s)
public java.lang.String getToken()
public java.util.List<RegularExpression.RegExState> getSuccessors()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String describe()
public int compareTo(RegularExpression.RegExState o)
compareTo
in interface java.lang.Comparable<RegularExpression.RegExState>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |