/** * Translates an object of this type to its boxed representation. */ public void translateBox(ClassGenerator classGen, MethodGenerator methodGen) { translateTo(classGen, methodGen, Type.Reference); }
/** * Expects a node-set on the stack and pushes a real. * First the node-set is converted to string, and from string to real. * * @see org.apache.xalan.xsltc.compiler.util.Type#translateTo */ public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, RealType type) { translateTo(classGen, methodGen, Type.String); Type.String.translateTo(classGen, methodGen, Type.Real); }
Type type) { if (type == Type.String) { translateTo(classGen, methodGen, (StringType) type); translateTo(classGen, methodGen, (BooleanType) type); translateTo(classGen, methodGen, (RealType) type); translateTo(classGen, methodGen, (NodeType) type); translateTo(classGen, methodGen, (ReferenceType) type); translateTo(classGen, methodGen, (ObjectType) type);
/** * Translates an object of this type to its boxed representation. */ public void translateBox(ClassGenerator classGen, MethodGenerator methodGen) { translateTo(classGen, methodGen, Type.Reference); }
/** * Translates an object of this type to its boxed representation. */ public void translateBox(ClassGenerator classGen, MethodGenerator methodGen) { translateTo(classGen, methodGen, Type.Reference); }
/** * Translates an object of this type to its boxed representation. */ public void translateBox(ClassGenerator classGen, MethodGenerator methodGen) { translateTo(classGen, methodGen, Type.Reference); }
/** * Expects a node-set on the stack and pushes a real. * First the node-set is converted to string, and from string to real. * * @see org.apache.xalan.xsltc.compiler.util.Type#translateTo */ public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, RealType type) { translateTo(classGen, methodGen, Type.String); Type.String.translateTo(classGen, methodGen, Type.Real); }
/** * Expects a node-set on the stack and pushes a real. * First the node-set is converted to string, and from string to real. * * @see org.apache.xalan.xsltc.compiler.util.Type#translateTo */ public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, RealType type) { translateTo(classGen, methodGen, Type.String); Type.String.translateTo(classGen, methodGen, Type.Real); }
/** * Expects a node-set on the stack and pushes a real. * First the node-set is converted to string, and from string to real. * * @see org.apache.xalan.xsltc.compiler.util.Type#translateTo */ public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, RealType type) { translateTo(classGen, methodGen, Type.String); Type.String.translateTo(classGen, methodGen, Type.Real); }
Type type) { if (type == Type.String) { translateTo(classGen, methodGen, (StringType) type); translateTo(classGen, methodGen, (BooleanType) type); translateTo(classGen, methodGen, (RealType) type); translateTo(classGen, methodGen, (NodeType) type); translateTo(classGen, methodGen, (ReferenceType) type); translateTo(classGen, methodGen, (ObjectType) type);
Type type) { if (type == Type.String) { translateTo(classGen, methodGen, (StringType) type); translateTo(classGen, methodGen, (BooleanType) type); translateTo(classGen, methodGen, (RealType) type); translateTo(classGen, methodGen, (NodeType) type); translateTo(classGen, methodGen, (ReferenceType) type); translateTo(classGen, methodGen, (ObjectType) type);
Type type) { if (type == Type.String) { translateTo(classGen, methodGen, (StringType) type); translateTo(classGen, methodGen, (BooleanType) type); translateTo(classGen, methodGen, (RealType) type); translateTo(classGen, methodGen, (NodeType) type); translateTo(classGen, methodGen, (ReferenceType) type); translateTo(classGen, methodGen, (ObjectType) type);