FileDocCategorySizeDatePackage
CompareGenerator.javaAPI DocJava SE 5 API3637Fri Aug 26 14:55:38 BST 2005com.sun.org.apache.xalan.internal.xsltc.compiler.util

CompareGenerator

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

Fields Summary
private static int
DOM_INDEX
private static int
CURRENT_INDEX
private static int
LEVEL_INDEX
private static int
TRANSLET_INDEX
private static int
LAST_INDEX
private int
ITERATOR_INDEX
private final Instruction
_iloadCurrent
private final Instruction
_istoreCurrent
private final Instruction
_aloadDom
private final Instruction
_iloadLast
private final Instruction
_aloadIterator
private final Instruction
_astoreIterator
Constructors Summary
public CompareGenerator(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);
	_aloadDom = new ALOAD(DOM_INDEX);
	_iloadLast = new ILOAD(LAST_INDEX);

	LocalVariableGen iterator =
	    addLocalVariable("iterator",
			     Util.getJCRefType(Constants.NODE_ITERATOR_SIG),
			     null, null);
	ITERATOR_INDEX = iterator.getIndex();
	_aloadIterator = new ALOAD(ITERATOR_INDEX);
	_astoreIterator = new ASTORE(ITERATOR_INDEX);
	il.append(new ACONST_NULL());
	il.append(storeIterator());
    
Methods Summary
public intgetHandlerIndex()

	return INVALID_INDEX;		// not available
    
public intgetIteratorIndex()

	return INVALID_INDEX;
    
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()

	return _aloadDom;
    
public com.sun.org.apache.bcel.internal.generic.InstructionloadIterator()

	return _aloadIterator;
    
public com.sun.org.apache.bcel.internal.generic.InstructionloadLastNode()

	return _iloadLast;
    
public com.sun.org.apache.bcel.internal.generic.InstructionstoreCurrentNode()

	return _istoreCurrent;
    
public com.sun.org.apache.bcel.internal.generic.InstructionstoreIterator()

	return _astoreIterator;