Package org.javacc.parser
Class NonTerminal
java.lang.Object
org.javacc.parser.Expansion
org.javacc.parser.NonTerminal
Describes non terminals.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe list of all tokens in the argument list.The LHS to which the return value of the non-terminal is assigned.private StringThe name of the non-terminal.private NormalProductionThe production this non-terminal corresponds to.Fields inherited from class org.javacc.parser.Expansion
eol, inMinimumSize, myGeneration, ordinal, parent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()final NormalProductiongetProd()voidsetArgumentTokens(List<Token> parametrized_type__tokens) voidsetLhsTokens(List<Token> lhsTokens) voidvoidsetParametrizedTypeTokens(List<Token> argument_tokens) final NormalProductionsetProd(NormalProduction prod) Methods inherited from class org.javacc.parser.Expansion
dumpPrefix, getColumn, getLine, getProductionName, hashCode, setColumn, setLine, toString
-
Field Details
-
lhsTokens
The LHS to which the return value of the non-terminal is assigned. In case there is no LHS, then the vector remains empty. -
name
The name of the non-terminal. -
argument_tokens
The list of all tokens in the argument list. -
parametrized_type__tokens
-
prod
The production this non-terminal corresponds to.
-
-
Constructor Details
-
NonTerminal
public NonTerminal()
-
-
Method Details
-
dump
-
setLhsTokens
- Parameters:
lhsTokens- the lhsTokens to set
-
getLhsTokens
- Returns:
- the lhsTokens
-
setName
- Parameters:
name- the name to set
-
getName
- Returns:
- the name
-
setParametrizedTypeTokens
- Parameters:
argument_tokens- the argument_tokens to set
-
getParametrizedTypeTokens
- Returns:
- the argument_tokens
-
setArgumentTokens
- Parameters:
argument_tokens- the argument_tokens to set
-
getArgumentTokens
- Returns:
- the argument_tokens
-
setProd
- Parameters:
prod- the prod to set
-
getProd
- Returns:
- the prod
-