org.apache.xalan.xsltc.compiler.util

Class MethodGenerator

public class MethodGenerator extends MethodGen implements Constants

Author: Jacek Ambroziak Santiago Pericas-Geertsen

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
voidaddInstructionList(Pattern pattern, InstructionList ilist)
Add a pre-compiled pattern to this mode.
LocalVariableGenaddLocalVariable(String name, Type type, InstructionHandle start, InstructionHandle end)
Allocates a local variable.
LocalVariableGenaddLocalVariable2(String name, Type type, InstructionHandle start)
Instructionattribute()
InstructionendDocument()
InstructionendElement()
InstructionListgetInstructionList(Pattern pattern)
Get the instruction list for a pre-compiled pattern.
intgetLocalIndex(String name)
LocalVariableGengetLocalVariable(String name)
InstructionloadContextNode()
by default context node is the same as current node.
InstructionloadCurrentNode()
InstructionloadDOM()
InstructionloadHandler()
InstructionloadIterator()
Instructionnamespace()
InstructionnextNode()
voidremoveLocalVariable(LocalVariableGen lvg)
Instructionreset()
voidsetMaxLocals()
InstructionsetStartNode()
InstructionstartDocument()
InstructionstartElement()
InstructionstoreContextNode()
InstructionstoreCurrentNode()
InstructionstoreDOM()
InstructionstoreHandler()
InstructionstoreIterator()
InstructionuniqueAttribute()

Constructor Detail

MethodGenerator

public MethodGenerator(int access_flags, Type return_type, Type[] arg_types, String[] arg_names, String method_name, String class_name, InstructionList il, ConstantPoolGen cpg)

Method Detail

addInstructionList

public void addInstructionList(Pattern pattern, InstructionList ilist)
Add a pre-compiled pattern to this mode.

addLocalVariable

public LocalVariableGen addLocalVariable(String name, Type type, InstructionHandle start, InstructionHandle end)
Allocates a local variable. If the slot allocator has already been initialized, then call addLocalVariable2() so that the new variable is known to the allocator. Failing to do this may cause the allocator to return a slot that is already in use.

addLocalVariable2

public LocalVariableGen addLocalVariable2(String name, Type type, InstructionHandle start)

attribute

public final Instruction attribute()

endDocument

public final Instruction endDocument()

endElement

public final Instruction endElement()

getInstructionList

public InstructionList getInstructionList(Pattern pattern)
Get the instruction list for a pre-compiled pattern. Used by test sequences to avoid compiling patterns more than once.

getLocalIndex

public int getLocalIndex(String name)

getLocalVariable

public LocalVariableGen getLocalVariable(String name)

loadContextNode

public Instruction loadContextNode()
by default context node is the same as current node. MK437

loadCurrentNode

public Instruction loadCurrentNode()

loadDOM

public Instruction loadDOM()

loadHandler

public Instruction loadHandler()

loadIterator

public Instruction loadIterator()

namespace

public final Instruction namespace()

nextNode

public final Instruction nextNode()

removeLocalVariable

public void removeLocalVariable(LocalVariableGen lvg)

reset

public final Instruction reset()

setMaxLocals

public void setMaxLocals()

setStartNode

public final Instruction setStartNode()

startDocument

public final Instruction startDocument()

startElement

public final Instruction startElement()

storeContextNode

public Instruction storeContextNode()

storeCurrentNode

public Instruction storeCurrentNode()

storeDOM

public Instruction storeDOM()

storeHandler

public Instruction storeHandler()

storeIterator

public Instruction storeIterator()

uniqueAttribute

public final Instruction uniqueAttribute()
Copyright B) 2005 Apache XML Project. All Rights Reserved.