org.apache.xalan.xsltc.compiler.util
Class MethodGenerator

org.apache.xalan.xsltc.compiler.util.MethodGenerator
Direct Known Subclasses:
AttributeSetMethodGenerator, CompareGenerator, MatchGenerator, NamedMethodGenerator, RtMethodGenerator, TestGenerator

public class MethodGenerator
implements Constants


Constructor Summary
MethodGenerator(int access_flags, de.fub.bytecode.generic.Type return_type, de.fub.bytecode.generic.Type[] arg_types, java.lang.String[] arg_names, java.lang.String method_name, java.lang.String class_name, org.apache.xalan.xsltc.compiler.util.InstructionList il, org.apache.xalan.xsltc.compiler.util.ConstantPoolGen cpg)
           
 
Method Summary
 org.apache.xalan.xsltc.compiler.util.LocalVariableGen addLocalVariable(java.lang.String name, de.fub.bytecode.generic.Type type, org.apache.xalan.xsltc.compiler.util.InstructionHandle start, org.apache.xalan.xsltc.compiler.util.InstructionHandle end)
           
 org.apache.xalan.xsltc.compiler.util.LocalVariableGen addLocalVariable2(java.lang.String name, de.fub.bytecode.generic.Type type, org.apache.xalan.xsltc.compiler.util.InstructionHandle start)
           
 org.apache.xalan.xsltc.compiler.util.Instruction attribute()
           
 org.apache.xalan.xsltc.compiler.util.Instruction endDocument()
           
 org.apache.xalan.xsltc.compiler.util.Instruction endElement()
           
 int getLocalIndex(java.lang.String name)
           
 org.apache.xalan.xsltc.compiler.util.LocalVariableGen getLocalVariable(java.lang.String name)
           
 org.apache.xalan.xsltc.compiler.util.Instruction loadContextNode()
          by default context node is the same as current node.
 org.apache.xalan.xsltc.compiler.util.Instruction loadCurrentNode()
           
 org.apache.xalan.xsltc.compiler.util.Instruction loadDOM()
          Returns a JSR instruction that jumps to the map type subroutine.
 org.apache.xalan.xsltc.compiler.util.Instruction loadHandler()
           
 org.apache.xalan.xsltc.compiler.util.Instruction loadIterator()
           
 org.apache.xalan.xsltc.compiler.util.Instruction namespace()
           
 org.apache.xalan.xsltc.compiler.util.Instruction nextNode()
           
 void removeLocalVariable(org.apache.xalan.xsltc.compiler.util.LocalVariableGen lvg)
           
 void setMaxLocals()
           
 org.apache.xalan.xsltc.compiler.util.Instruction setStartNode()
           
 org.apache.xalan.xsltc.compiler.util.Instruction startDocument()
           
 org.apache.xalan.xsltc.compiler.util.Instruction startElement()
           
 org.apache.xalan.xsltc.compiler.util.Instruction storeCurrentNode()
           
 org.apache.xalan.xsltc.compiler.util.Instruction storeHandler()
           
 org.apache.xalan.xsltc.compiler.util.Instruction storeIterator()
           
 

Constructor Detail

MethodGenerator

public MethodGenerator(int access_flags,
                       de.fub.bytecode.generic.Type return_type,
                       de.fub.bytecode.generic.Type[] arg_types,
                       java.lang.String[] arg_names,
                       java.lang.String method_name,
                       java.lang.String class_name,
                       org.apache.xalan.xsltc.compiler.util.InstructionList il,
                       org.apache.xalan.xsltc.compiler.util.ConstantPoolGen cpg)
Method Detail

addLocalVariable

public org.apache.xalan.xsltc.compiler.util.LocalVariableGen addLocalVariable(java.lang.String name,
                                                                              de.fub.bytecode.generic.Type type,
                                                                              org.apache.xalan.xsltc.compiler.util.InstructionHandle start,
                                                                              org.apache.xalan.xsltc.compiler.util.InstructionHandle end)

addLocalVariable2

public org.apache.xalan.xsltc.compiler.util.LocalVariableGen addLocalVariable2(java.lang.String name,
                                                                               de.fub.bytecode.generic.Type type,
                                                                               org.apache.xalan.xsltc.compiler.util.InstructionHandle start)

removeLocalVariable

public void removeLocalVariable(org.apache.xalan.xsltc.compiler.util.LocalVariableGen lvg)

loadDOM

public org.apache.xalan.xsltc.compiler.util.Instruction loadDOM()
Returns a JSR instruction that jumps to the map type subroutine. This subroutine is compiled if needed but not added to the inst stream until addMapTypeSub() is called.

storeHandler

public org.apache.xalan.xsltc.compiler.util.Instruction storeHandler()

loadHandler

public org.apache.xalan.xsltc.compiler.util.Instruction loadHandler()

storeIterator

public org.apache.xalan.xsltc.compiler.util.Instruction storeIterator()

loadIterator

public org.apache.xalan.xsltc.compiler.util.Instruction loadIterator()

setStartNode

public final org.apache.xalan.xsltc.compiler.util.Instruction setStartNode()

nextNode

public final org.apache.xalan.xsltc.compiler.util.Instruction nextNode()

startElement

public final org.apache.xalan.xsltc.compiler.util.Instruction startElement()

endElement

public final org.apache.xalan.xsltc.compiler.util.Instruction endElement()

startDocument

public final org.apache.xalan.xsltc.compiler.util.Instruction startDocument()

endDocument

public final org.apache.xalan.xsltc.compiler.util.Instruction endDocument()

attribute

public final org.apache.xalan.xsltc.compiler.util.Instruction attribute()

namespace

public final org.apache.xalan.xsltc.compiler.util.Instruction namespace()

loadCurrentNode

public org.apache.xalan.xsltc.compiler.util.Instruction loadCurrentNode()

storeCurrentNode

public org.apache.xalan.xsltc.compiler.util.Instruction storeCurrentNode()

loadContextNode

public org.apache.xalan.xsltc.compiler.util.Instruction loadContextNode()
by default context node is the same as current node. MK437

getLocalIndex

public int getLocalIndex(java.lang.String name)

getLocalVariable

public org.apache.xalan.xsltc.compiler.util.LocalVariableGen getLocalVariable(java.lang.String name)

setMaxLocals

public void setMaxLocals()


Copyright © 2000 Apache XML Project. All Rights Reserved.