1 16 19 20 package com.sun.org.apache.xalan.internal.xsltc.compiler.util; 21 22 import com.sun.org.apache.bcel.internal.generic.ALOAD; 23 import com.sun.org.apache.bcel.internal.generic.Instruction; 24 import com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet; 25 26 34 public final class NodeCounterGenerator extends ClassGenerator { 35 private Instruction _aloadTranslet; 36 37 public NodeCounterGenerator(String className, 38 String superClassName, 39 String fileName, 40 int accessFlags, 41 String [] interfaces, 42 Stylesheet stylesheet) { 43 super(className, superClassName, fileName, 44 accessFlags, interfaces, stylesheet); 45 } 46 47 51 public void setTransletIndex(int index) { 52 _aloadTranslet = new ALOAD(index); 53 } 54 55 60 public Instruction loadTranslet() { 61 return _aloadTranslet; 62 } 63 64 68 public boolean isExternal() { 69 return true; 70 } 71 } 72 | Popular Tags |