Class Lookahead
java.lang.Object
EDU.purdue.jtb.parser.Expansion_
EDU.purdue.jtb.parser.Lookahead
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 Expansion_
Expansion_.EXP_TYPE -
Field Summary
Fields inherited from class Expansion_
EOL, inMinimumSize, myGeneration, nextGenerationIndex, parent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intfinal Expansion_final booleanfinal voidsetAmount(int am) final voidsetExplicit(boolean ise) final voidsetLaExpansion(Expansion_ laexp) Methods inherited from class Expansion_
dumpPrefix, toString
-
Constructor Details
-
Lookahead
public Lookahead()Standard constructor
-
-
Method Details
-
dump
- Overrides:
dumpin classExpansion_- Parameters:
indent- - the number of spaces for indentingalreadyDumped- - a Set of objects already dumped (unused)- Returns:
- the formatted string dumping the class
-
getActionTokens
-
setAmount
public final void setAmount(int am) - Parameters:
am- - the amount to set
-
getAmount
public final int getAmount()- Returns:
- the amount
-
setLaExpansion
- Parameters:
laexp- - the la_expansion to set
-
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
-