org.javacc.parser.Lookahead.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of javacc Show documentation
Show all versions of javacc Show documentation
JavaCC is a parser/scanner generator for Java.
Lookahead
org.javacc.parser
Class Lookahead
- java.lang.Object
-
- org.javacc.parser.Expansion
-
- org.javacc.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.
-
-
Field Summary
-
Fields inherited from class org.javacc.parser.Expansion
eol, inMinimumSize, myGeneration, nextGenerationIndex, parent
-
Constructor Summary
Constructors
Constructor and Description
Lookahead()
-
Method Summary
Methods
Modifier and Type
Method and Description
java.lang.StringBuffer
dump(int indent,
java.util.Set alreadyDumped)
java.util.List<Token>
getActionTokens()
int
getAmount()
Expansion
getLaExpansion()
boolean
isExplicit()
void
setAmount(int amount)
void
setExplicit(boolean isExplicit)
void
setLaExpansion(Expansion la_expansion)
-
Methods inherited from class org.javacc.parser.Expansion
dumpPrefix, hashCode, reInit, toString
-
-
Method Detail
-
dump
public java.lang.StringBuffer dump(int indent,
java.util.Set alreadyDumped)
-
getActionTokens
public java.util.List<Token> getActionTokens()
- Returns:
- the action_tokens
-
setAmount
public void setAmount(int amount)
- Parameters:
amount
- the amount to set
-
getAmount
public int getAmount()
- Returns:
- the amount
-
setLaExpansion
public void setLaExpansion(Expansion la_expansion)
- Parameters:
la_expansion
- the la_expansion to set
-
getLaExpansion
public Expansion getLaExpansion()
- Returns:
- the la_expansion
-
setExplicit
public void setExplicit(boolean isExplicit)
- Parameters:
isExplicit
- the isExplicit to set
-
isExplicit
public boolean isExplicit()
- Returns:
- the isExplicit