FileDocCategorySizeDatePackage
MatchGenerator.javaAPI DocJava SE 6 API2937Tue Jun 10 00:22:30 BST 2008com.sun.org.apache.xalan.internal.xsltc.compiler.util

MatchGenerator

public final class MatchGenerator extends MethodGenerator
author
Jacek Ambroziak
author
Santiago Pericas-Geertsen

Fields Summary
private static int
CURRENT_INDEX
private int
_iteratorIndex
private final Instruction
_iloadCurrent
private final Instruction
_istoreCurrent
private Instruction
_aloadDom
Constructors Summary
public MatchGenerator(int access_flags, Type return_type, Type[] arg_types, String[] arg_names, String method_name, String class_name, InstructionList il, ConstantPoolGen cp)

    
         
			      
			     
			      
	super(access_flags, return_type, arg_types, arg_names, method_name, 
	      class_name, il, cp);
	
	_iloadCurrent = new ILOAD(CURRENT_INDEX);
	_istoreCurrent = new ISTORE(CURRENT_INDEX);
    
Methods Summary
public intgetHandlerIndex()

	return INVALID_INDEX;		// not available
    
public intgetIteratorIndex()
Get index of the register where the current iterator is stored.

	return _iteratorIndex;
    
public intgetLocalIndex(java.lang.String name)

	if (name.equals("current")) {
	    return CURRENT_INDEX;
	}
	return super.getLocalIndex(name);
    
public com.sun.org.apache.bcel.internal.generic.InstructionloadCurrentNode()

	return _iloadCurrent;
    
public com.sun.org.apache.bcel.internal.generic.InstructionloadDOM()
Get index of the register where the DOM is stored.

	return _aloadDom;
    
public voidsetDomIndex(int domIndex)
Set index where the reference to the DOM is stored.

	_aloadDom = new ALOAD(domIndex);
    
public voidsetIteratorIndex(int iteratorIndex)
Set index of the register where the current iterator is stored.

	_iteratorIndex = iteratorIndex;
    
public com.sun.org.apache.bcel.internal.generic.InstructionstoreCurrentNode()

	return _istoreCurrent;