Package components.statement
Class StatementSecondary
java.lang.Object
components.statement.StatementSecondary
- All Implemented Interfaces:
Standard<Statement>,Statement,StatementKernel
- Direct Known Subclasses:
Statement1
Layered implementations of secondary methods for
Statement.-
Nested Class Summary
Nested classes/interfaces inherited from interface components.statement.StatementKernel
StatementKernel.Condition, StatementKernel.Kind -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleaninthashCode()voidParses a single BL statement fromtokensintothis.voidparseBlock(Queue<String> tokens) Parses a maximally long sequence of BL statements fromtokensinto the BLOCKthis.voidprettyPrint(SimpleWriter out, int offset) Pretty printsthisto the given streamoutoffsetspaces from the left margin usingProgram.INDENT_SIZEspaces for each indentation level.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface components.standard.Standard
clear, newInstance, transferFromMethods inherited from interface components.statement.StatementKernel
addToBlock, assembleCall, assembleIf, assembleIfElse, assembleWhile, disassembleCall, disassembleIf, disassembleIfElse, disassembleWhile, kind, lengthOfBlock, removeFromBlock
-
Constructor Details
-
StatementSecondary
public StatementSecondary()
-
-
Method Details
-
equals
-
hashCode
-
toString
-
prettyPrint
Description copied from interface:StatementPretty printsthisto the given streamoutoffsetspaces from the left margin usingProgram.INDENT_SIZEspaces for each indentation level.- Specified by:
prettyPrintin interfaceStatement- Parameters:
out- the output streamoffset- 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
Description copied from interface:StatementParses a single BL statement fromtokensintothis. -
parseBlock
Description copied from interface:StatementParses a maximally long sequence of BL statements fromtokensinto the BLOCKthis.- Specified by:
parseBlockin interfaceStatement- Parameters:
tokens- the input tokens
-