1 16 19 20 package com.sun.org.apache.xalan.internal.xsltc.compiler; 21 22 import java.util.Vector ; 23 24 import com.sun.org.apache.bcel.internal.generic.ConstantPoolGen; 25 import com.sun.org.apache.bcel.internal.generic.INVOKESTATIC; 26 import com.sun.org.apache.bcel.internal.generic.InstructionList; 27 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator; 28 import com.sun.org.apache.xalan.internal.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 |