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