Package org.javacc.parser
Class BNFProduction
- java.lang.Object
-
- org.javacc.parser.Expansion
-
- org.javacc.parser.NormalProduction
-
- org.javacc.parser.BNFProduction
-
public class BNFProduction extends NormalProduction
Describes BNF productions.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<Token>declaration_tokensThe declarations of this production.private booleanjumpPatchedThis flag keeps track of whether or not return and throw statements have been patched within this production's actions to include a preceding "if (true)".-
Fields inherited from class org.javacc.parser.NormalProduction
leIndex
-
Fields inherited from class org.javacc.parser.Expansion
inMinimumSize, myGeneration, ordinal, parent
-
-
Constructor Summary
Constructors Constructor Description BNFProduction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Token>getDeclarationTokens()booleanisJumpPatched()voidsetJumpPatched(boolean jumpPatched)-
Methods inherited from class org.javacc.parser.NormalProduction
dump, dumpPrefix, getAccessMod, getExpansion, getFirstToken, getLastToken, getLeftExpansions, getLhs, getParameterListTokens, getParents, getReturnTypeTokens, getSimpleName, getThrowsList, getWalkStatus, isEmptyPossible, setAccessMod, setEmptyPossible, setExpansion, setFirstToken, setLastToken, setLeftExpansions, setLhs, setThrowsList, setWalkStatus
-
-
-
-
Field Detail
-
declaration_tokens
private final java.util.List<Token> declaration_tokens
The declarations of this production.
-
jumpPatched
private boolean jumpPatched
This flag keeps track of whether or not return and throw statements have been patched within this production's actions to include a preceding "if (true)".
-
-
Method Detail
-
getDeclarationTokens
public final java.util.List<Token> getDeclarationTokens()
- Returns:
- the declaration_tokens
-
isJumpPatched
public final boolean isJumpPatched()
- Returns:
- the jumpPatched
-
setJumpPatched
public final void setJumpPatched(boolean jumpPatched)
- Parameters:
jumpPatched- the jumpPatched to set
-
-