org.apache.xalan.xsltc.compiler.util
public class MethodGenerator extends MethodGen implements Constants
Constructor Summary | |
---|---|
MethodGenerator(int access_flags, Type return_type, Type[] arg_types, String[] arg_names, String method_name, String class_name, InstructionList il, ConstantPoolGen cpg) |
Method Summary | |
---|---|
void | addInstructionList(Pattern pattern, InstructionList ilist)
Add a pre-compiled pattern to this mode. |
LocalVariableGen | addLocalVariable(String name, Type type, InstructionHandle start, InstructionHandle end)
Allocates a local variable. |
LocalVariableGen | addLocalVariable2(String name, Type type, InstructionHandle start) |
Instruction | attribute() |
Instruction | endDocument() |
Instruction | endElement() |
InstructionList | getInstructionList(Pattern pattern)
Get the instruction list for a pre-compiled pattern. |
int | getLocalIndex(String name) |
LocalVariableGen | getLocalVariable(String name) |
Instruction | loadContextNode() by default context node is the same as current node. |
Instruction | loadCurrentNode() |
Instruction | loadDOM() |
Instruction | loadHandler() |
Instruction | loadIterator() |
void | markChunkEnd()
Mark the end of an outlineable chunk of code. |
void | markChunkStart()
Mark the end of the method's
InstructionList as the start of an outlineable chunk of code.
|
Instruction | namespace() |
Instruction | nextNode() |
Method[] | outlineChunks(ClassGenerator classGen, int originalMethodSize)
Breaks up the IL for this MethodGenerator into separate
outlined methods so that no method exceeds the 64KB limit on the length
of the byte code associated with a method. |
void | removeLocalVariable(LocalVariableGen lvg) |
Instruction | reset() |
void | setMaxLocals() |
Instruction | setStartNode() |
Instruction | startDocument() |
Instruction | startElement() |
Instruction | storeContextNode() |
Instruction | storeCurrentNode() |
Instruction | storeDOM() |
Instruction | storeHandler() |
Instruction | storeIterator() |
Instruction | uniqueAttribute() |
InstructionList
is empty.
See OutlineableChunkStart for more information.Parameters: classGen The ClassGen with which the generated methods will be associated originalMethodSize The number of bytes of bytecode represented by the InstructionList of this method
Returns: an array of the outlined Method
s and the original
method itself