1 16 19 20 package org.apache.xalan.xsltc.compiler; 21 22 import java.util.Vector ; 23 24 import org.apache.bcel.generic.ConstantPoolGen; 25 import org.apache.bcel.generic.INVOKESTATIC; 26 import org.apache.bcel.generic.InstructionList; 27 import org.apache.xalan.xsltc.compiler.util.ClassGenerator; 28 import org.apache.xalan.xsltc.compiler.util.MethodGenerator; 29 30 34 final class CeilingCall extends FunctionCall { 35 public CeilingCall(QName fname, Vector arguments) { 36 super(fname, arguments); 37 } 38 39 public void translate(ClassGenerator classGen, MethodGenerator methodGen) { 40 final ConstantPoolGen cpg = classGen.getConstantPool(); 41 final InstructionList il = methodGen.getInstructionList(); 42 argument(0).translate(classGen, methodGen); 43 il.append(new INVOKESTATIC(cpg.addMethodref(MATH_CLASS, 44 "ceil", "(D)D"))); 45 } 46 } 47 | Popular Tags |