public class BytecodeSequence extends Statement
BytecodeInstructions
or ASTNodes. The evaluation is depending on the type of
the visitor.| Constructor and Description |
|---|
BytecodeSequence(BytecodeInstruction instruction) |
BytecodeSequence(List<?> instructions) |
| Modifier and Type | Method and Description |
|---|---|
BytecodeInstruction |
getBytecodeInstruction()
Returns the singular BytecodeInstruction.
|
List<?> |
getInstructions() |
void |
visit(GroovyCodeVisitor visitor)
Delegates to the visit method used for this class.
|
addStatementLabel, copyStatementLabels, getStatementLabel, getStatementLabels, isEmpty, setStatementLabelcopyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getText, hashCode, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePositionclone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcopyNodeMetaData, getNodeMetaData, getNodeMetaData, getNodeMetaData, putNodeMetaData, removeNodeMetaData, setNodeMetaDatapublic BytecodeSequence(BytecodeInstruction instruction)
public BytecodeSequence(List<?> instructions)
public List<?> getInstructions()
public BytecodeInstruction getBytecodeInstruction()
null if instruction(s) is not a BytecodeInstructionpublic void visit(GroovyCodeVisitor visitor)
ClassGenerator.visitBytecodeSequence(BytecodeSequence)
is called with this instance. If the visitor is no
ClassGenerator, then this method will call visit on
each ASTNode element sorted by this class. If one
element is a BytecodeInstruction, then it will be skipped
as it is no ASTNode.visit in class ASTNodeClassGenerator