|
||||||||||
| 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 repersents a sequence of BytecodeInstructions or ASTNodes. The evaluation is dpeending on the type of the visitor.
BytecodeInstruction,
ASTNode| Field Summary | |
|---|---|
private java.util.List |
instructions
|
| Constructor Summary | |
|---|---|
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 |
|---|
getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getText, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setSourcePosition |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final java.util.List instructions
| Constructor Detail |
|---|
public BytecodeSequence(java.util.List instructions)
| 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 sotred 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 | |||||||||