public class BytecodeSequence extends Statement
BytecodeInstruction
s
or ASTNode
s. 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, setStatementLabel
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getText, hashCode, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePosition
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
copyNodeMetaData, getNodeMetaData, getNodeMetaData, getNodeMetaData, putNodeMetaData, removeNodeMetaData, setNodeMetaData
public 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 ASTNode
ClassGenerator