Package EDU.purdue.jtb.parser
Class Lookahead
- java.lang.Object
-
- EDU.purdue.jtb.parser.Expansion_
-
- EDU.purdue.jtb.parser.Lookahead
-
public class Lookahead extends Expansion_
Describes lookahead rule for a particular expansion or expansion sequence (See Sequence.java). In case this describes the lookahead rule for a single expansion unit, then a sequence is created with this node as the first element, and the expansion unit as the second and last element.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class EDU.purdue.jtb.parser.Expansion_
Expansion_.EXP_TYPE
-
-
Field Summary
-
Fields inherited from class EDU.purdue.jtb.parser.Expansion_
EOL, inMinimumSize, myGeneration, nextGenerationIndex, parent
-
-
Constructor Summary
Constructors Constructor Description Lookahead()
Standard constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBuilder
dump(int indent, java.util.Set<java.lang.Object> alreadyDumped)
java.util.List<Token>
getActionTokens()
int
getAmount()
Expansion_
getLaExpansion()
boolean
isExplicit()
void
setAmount(int am)
void
setExplicit(boolean ise)
void
setLaExpansion(Expansion_ laexp)
-
Methods inherited from class EDU.purdue.jtb.parser.Expansion_
dumpPrefix, toString
-
-
-
-
Method Detail
-
dump
public java.lang.StringBuilder dump(int indent, java.util.Set<java.lang.Object> alreadyDumped)
- Overrides:
dump
in classExpansion_
- Parameters:
indent
- - the number of spaces for indentingalreadyDumped
- - a Set of objects already dumped (unused)- Returns:
- the formatted string dumping the class
-
getActionTokens
public final java.util.List<Token> getActionTokens()
- Returns:
- the action_tokens
-
setAmount
public final void setAmount(int am)
- Parameters:
am
- - the amount to set
-
getAmount
public final int getAmount()
- Returns:
- the amount
-
setLaExpansion
public final void setLaExpansion(Expansion_ laexp)
- Parameters:
laexp
- - the la_expansion to set
-
getLaExpansion
public final Expansion_ getLaExpansion()
- Returns:
- the la_expansion
-
setExplicit
public final void setExplicit(boolean ise)
- Parameters:
ise
- - the isExplicit to set
-
isExplicit
public final boolean isExplicit()
- Returns:
- the isExplicit
-
-