Package org.codehaus.groovy.classgen
Class BytecodeSequence
- java.lang.Object
- 
- org.codehaus.groovy.ast.ASTNode
- 
- org.codehaus.groovy.ast.stmt.Statement
- 
- org.codehaus.groovy.classgen.BytecodeSequence
 
 
 
- 
 public class BytecodeSequence extends Statement This class represents a sequence of BytecodeInstructions or ASTNodes. The evaluation is depending on the type of the visitor.- See Also:
- BytecodeInstruction,- ASTNode
 
- 
- 
Constructor SummaryConstructors Constructor Description BytecodeSequence(java.util.List instructions)BytecodeSequence(BytecodeInstruction instruction)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.ListgetInstructions()voidvisit(GroovyCodeVisitor visitor)Delegates to the visit method used for this class.- 
Methods inherited from class org.codehaus.groovy.ast.stmt.StatementaddStatementLabel, getStatementLabel, getStatementLabels, isEmpty, setStatementLabel
 - 
Methods inherited from class org.codehaus.groovy.ast.ASTNodecopyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getNodeMetaData, getNodeMetaData, getText, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition
 
- 
 
- 
- 
- 
Constructor Detail- 
BytecodeSequencepublic BytecodeSequence(java.util.List instructions) 
 - 
BytecodeSequencepublic BytecodeSequence(BytecodeInstruction instruction) 
 
- 
 - 
Method Detail- 
visitpublic void visit(GroovyCodeVisitor visitor) 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.- Overrides:
- visitin class- ASTNode
- Parameters:
- visitor- the visitor
- See Also:
- ClassGenerator
 
 - 
getInstructionspublic java.util.List getInstructions() 
 
- 
 
-