|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--antlr.Lookahead
Untamed:
Field Summary | |
(package private) String |
cycle
is this computation part of a computation cycle? |
(package private) BitSet |
epsilonDepth
What k values were being computed when end of rule hit? |
(package private) BitSet |
fset
actual bitset of the lookahead |
(package private) boolean |
hasEpsilon
Does this lookahead depth include Epsilon token type? This is used to avoid having a bit in the set for Epsilon as it conflicts with parsing binary files. |
Constructor Summary | |
Lookahead()
Enabled: |
|
Lookahead(BitSet p)
Enabled: create a new lookahead set with the LL(1) set to the parameter |
|
Lookahead(String c)
Enabled: create an empty lookahead set, but with cycle |
Method Summary | |
Object |
clone()
Suppressed: Make a deep copy of everything in this object |
void |
combineWith(Lookahead q)
Enabled: |
boolean |
containsEpsilon()
Enabled: |
Lookahead |
intersection(Lookahead q)
Enabled: What is the intersection of two lookahead depths? Only the Epsilon "bit" and bitset are considered. |
boolean |
nil()
Enabled: |
static Lookahead |
of(int el)
Enabled: |
void |
resetEpsilon()
Enabled: |
void |
setEpsilon()
Enabled: |
String |
toString()
Suppressed: |
String |
toString(String separator,
CharFormatter formatter)
Enabled: |
String |
toString(String separator,
CharFormatter formatter,
Grammar g)
Enabled: |
String |
toString(String separator,
Vector vocab)
Enabled: |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
BitSet fset
String cycle
BitSet epsilonDepth
boolean hasEpsilon
Constructor Detail |
public Lookahead()
public Lookahead(BitSet p)
public Lookahead(String c)
Method Detail |
public Object clone()
clone
in class Object
java.lang.Cloneable
public void combineWith(Lookahead q)
public boolean containsEpsilon()
public Lookahead intersection(Lookahead q)
public boolean nil()
public static Lookahead of(int el)
public void resetEpsilon()
public void setEpsilon()
public String toString()
toString
in class Object
public String toString(String separator, CharFormatter formatter)
public String toString(String separator, CharFormatter formatter, Grammar g)
public String toString(String separator, Vector vocab)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |