|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.groovy.ast.ASTNode
org.codehaus.groovy.ast.stmt.Statement
org.codehaus.groovy.classgen.BytecodeSequence
public class BytecodeSequence
This class represents a sequence of BytecodeInstructions or ASTNodes. The evaluation is depending on the type of the visitor.
BytecodeInstruction,
ASTNode| Constructor Summary | |
|---|---|
BytecodeSequence(BytecodeInstruction instruction)
|
|
BytecodeSequence(java.util.List instructions)
|
|
| Method Summary | |
|---|---|
java.util.List |
getInstructions()
|
void |
visit(GroovyCodeVisitor visitor)
Delegates to the visit method used for this class. |
| Methods inherited from class org.codehaus.groovy.ast.stmt.Statement |
|---|
getStatementLabel, isEmpty, setStatementLabel |
| Methods inherited from class org.codehaus.groovy.ast.ASTNode |
|---|
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getNodeMetaData, getText, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BytecodeSequence(java.util.List instructions)
public BytecodeSequence(BytecodeInstruction instruction)
| Method Detail |
|---|
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 ASTNodevisitor - the visitorClassGeneratorpublic java.util.List getInstructions()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||