public class BytecodeSequence extends Statement
BytecodeInstruction
,
ASTNode
Constructor and Description |
---|
BytecodeSequence(BytecodeInstruction instruction) |
BytecodeSequence(List instructions) |
Modifier and Type | Method and Description |
---|---|
List |
getInstructions() |
void |
visit(GroovyCodeVisitor visitor)
Delegates to the visit method used for this class.
|
addStatementLabel, getStatementLabel, getStatementLabels, isEmpty, setStatementLabel
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getNodeMetaData, getNodeMetaData, getText, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition
public BytecodeSequence(List instructions)
public BytecodeSequence(BytecodeInstruction instruction)
public 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
visitor
- the visitorClassGenerator
public List getInstructions()