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 StringBuilderdumpPrefix(int indent) final Stringfinal intfinal Expansion_final Tokenfinal Tokenfinal StringgetLhs()final intgetLine()protected Stringfinal voidsetAccessMod(String am) final voidsetColumn(int cl) final voidfinal voidsetFirstToken(Token ft) final voidsetLastToken(Token lt) final voidfinal voidsetLine(int ln) final voidsetThrowsList(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
-
getParameterListTokens
-
setThrowsList
-
getThrowsList
-
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
-