Class NormalProduction

java.lang.Object
EDU.purdue.jtb.parser.NormalProduction
Direct Known Subclasses:
BNFProduction_, JavaCodeProduction_

public class NormalProduction extends Object
Describes JavaCC productions.
  • Field Details

    • EOL

      protected static final String EOL
      The OS line separator
  • Constructor Details

    • NormalProduction

      public NormalProduction()
  • Method Details

    • dumpPrefix

      protected static StringBuilder dumpPrefix(int indent)
      Parameters:
      indent - - the level of indentation
      Returns:
      a number of spaces twice the level of indentation
    • getSimpleName

      protected String getSimpleName()
      Returns:
      the class name without the package name
    • dump

      public StringBuilder dump(int indent, Set<Object> alreadyDumped)
      Parameters:
      indent - - the level of indentation
      alreadyDumped - - 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

      public final void setAccessMod(String am)
      Parameters:
      am - - the accessMod to set
    • getAccessMod

      public final String getAccessMod()
      Returns:
      the accessMod
    • setLhs

      public final void setLhs(String l)
      Parameters:
      l - - the lhs to set
    • getLhs

      public final String getLhs()
      Returns:
      the lhs
    • getReturnTypeTokens

      public final List<Token> getReturnTypeTokens()
      Returns:
      the return_type_tokens
    • getParameterListTokens

      public final List<Token> getParameterListTokens()
      Returns:
      the parameter_list_tokens
    • setThrowsList

      public final void setThrowsList(List<List<Token>> tl)
      Parameters:
      tl - - the throws_list to set
    • getThrowsList

      public final List<List<Token>> getThrowsList()
      Returns:
      the throws_list
    • setExpansion

      public final void setExpansion(Expansion_ ex)
      Parameters:
      ex - - the expansion to set
    • getExpansion

      public final Expansion_ getExpansion()
      Returns:
      the expansion
    • setFirstToken

      public final void setFirstToken(Token ft)
      Parameters:
      ft - - the firstToken to set
    • getFirstToken

      public final Token getFirstToken()
      Returns:
      the firstToken
    • setLastToken

      public final void setLastToken(Token lt)
      Parameters:
      lt - - the lastToken to set
    • getLastToken

      public final Token getLastToken()
      Returns:
      the lastToken