Class StatementSecondary

java.lang.Object
components.statement.StatementSecondary
All Implemented Interfaces:
Standard<Statement>, Statement, StatementKernel
Direct Known Subclasses:
Statement1

public abstract class StatementSecondary extends Object implements Statement
Layered implementations of secondary methods for Statement.
  • Constructor Details

  • Method Details

    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • prettyPrint

      public void prettyPrint(SimpleWriter out, int offset)
      Description copied from interface: Statement
      Pretty prints this to the given stream out offset spaces from the left margin using Program.INDENT_SIZE spaces for each indentation level.
      Specified by:
      prettyPrint in interface Statement
      Parameters:
      out - the output stream
      offset - the number of spaces to be placed before every nonempty line of output; nonempty lines of output that are indented further will, of course, continue with even more spaces
    • parse

      public void parse(Queue<String> tokens)
      Description copied from interface: Statement
      Parses a single BL statement from tokens into this.
      Specified by:
      parse in interface Statement
      Parameters:
      tokens - the input tokens
    • parseBlock

      public void parseBlock(Queue<String> tokens)
      Description copied from interface: Statement
      Parses a maximally long sequence of BL statements from tokens into the BLOCK this.
      Specified by:
      parseBlock in interface Statement
      Parameters:
      tokens - the input tokens