Class BytecodeSequence
java.lang.Object
org.codehaus.groovy.ast.ASTNode
org.codehaus.groovy.ast.stmt.Statement
org.codehaus.groovy.classgen.BytecodeSequence
This class represents a sequence of BytecodeInstructions
or ASTNodes. The evaluation is depending on the type of
the visitor.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBytecodeSequence(List instructions) BytecodeSequence(BytecodeInstruction instruction) -
Method Summary
Modifier and TypeMethodDescriptionvoidvisit(GroovyCodeVisitor visitor) Delegates to the visit method used for this class.Methods inherited from class Statement
getStatementLabel, isEmpty, setStatementLabel
-
Constructor Details
-
BytecodeSequence
-
BytecodeSequence
-
-
Method Details
-
visit
Delegates to the visit method used for this class. If the visitor is a ClassGenerator, thenClassGenerator.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. -
getInstructions
-