Package EDU.purdue.jtb.parser
Class NormalProduction
java.lang.Object
EDU.purdue.jtb.parser.NormalProduction
- Direct Known Subclasses:
BNFProduction_
,JavaCodeProduction_
Describes JavaCC productions.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringBuilder
dumpPrefix
(int indent) final String
final int
final Expansion_
final Token
final Token
final String
getLhs()
final int
getLine()
protected String
final void
setAccessMod
(String am) final void
setColumn
(int cl) final void
final void
setFirstToken
(Token ft) final void
setLastToken
(Token lt) final void
final void
setLine
(int ln) final void
setThrowsList
(List<List<Token>> tl)
-
Field Details
-
EOL
The OS line separator
-
-
Constructor Details
-
NormalProduction
public NormalProduction()
-
-
Method Details
-
dumpPrefix
- Parameters:
indent
- - the level of indentation- Returns:
- a number of spaces twice the level of indentation
-
getSimpleName
- Returns:
- the class name without the package name
-
dump
- Parameters:
indent
- - the level of indentationalreadyDumped
- - a collection of already dumped classes- Returns:
- the formatted dump (indentation, class, lhs, expansion)
-
setLine
public final void setLine(int ln) - Parameters:
ln
- - the line to set
-
getLine
public final int getLine()- Returns:
- the line
-
setColumn
public final void setColumn(int cl) - Parameters:
cl
- - the column to set
-
getColumn
public final int getColumn()- Returns:
- the column
-
setAccessMod
- Parameters:
am
- - the accessMod to set
-
getAccessMod
- Returns:
- the accessMod
-
setLhs
- Parameters:
l
- - the lhs to set
-
getLhs
- Returns:
- the lhs
-
getReturnTypeTokens
- Returns:
- the return_type_tokens
-
getParameterListTokens
- Returns:
- the parameter_list_tokens
-
setThrowsList
- Parameters:
tl
- - the throws_list to set
-
getThrowsList
- Returns:
- the throws_list
-
setExpansion
- Parameters:
ex
- - the expansion to set
-
getExpansion
- Returns:
- the expansion
-
setFirstToken
- Parameters:
ft
- - the firstToken to set
-
getFirstToken
- Returns:
- the firstToken
-
setLastToken
- Parameters:
lt
- - the lastToken to set
-
getLastToken
- Returns:
- the lastToken
-