Package EDU.purdue.jtb.parser
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 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 -
Method Summary
Modifier and TypeMethodDescriptionfinal int
final Expansion_
final boolean
final void
setAmount
(int am) final void
setExplicit
(boolean ise) final void
setLaExpansion
(Expansion_ laexp) Methods inherited from class EDU.purdue.jtb.parser.Expansion_
dumpPrefix, toString
-
Constructor Details
-
Lookahead
public Lookahead()Standard constructor
-
-
Method Details
-
dump
- 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
- 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
- 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
-