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