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
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
int
hashCode()
void
Parses a single BL statement fromtokens
intothis
.void
parseBlock
(Queue<String> tokens) Parses a maximally long sequence of BL statements fromtokens
into the BLOCKthis
.void
prettyPrint
(SimpleWriter out, int offset) Pretty printsthis
to the given streamout
offset
spaces from the left margin usingProgram.INDENT_SIZE
spaces for each indentation level.toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface components.standard.Standard
clear, newInstance, transferFrom
Methods 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:Statement
Pretty printsthis
to the given streamout
offset
spaces from the left margin usingProgram.INDENT_SIZE
spaces for each indentation level.- Specified by:
prettyPrint
in 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:Statement
Parses a single BL statement fromtokens
intothis
. -
parseBlock
Description copied from interface:Statement
Parses a maximally long sequence of BL statements fromtokens
into the BLOCKthis
.- Specified by:
parseBlock
in interfaceStatement
- Parameters:
tokens
- the input tokens
-