Type type) { if (type == Type.String) { translateTo(classGen, methodGen, (StringType) type); translateTo(classGen, methodGen, (BooleanType) type); translateTo(classGen, methodGen, (RealType) type); translateTo(classGen, methodGen, (NodeSetType) type); translateTo(classGen, methodGen, (ReferenceType) type); translateTo(classGen, methodGen, (ObjectType) type); toString(), type.toString()); classGen.getParser().reportError(Constants.FATAL, err);
/** * Translates a node into a synthesized boolean. * If the expression is "@attr", * then "true" is pushed iff "attr" is an attribute of the current node. * If the expression is ".", the result is always "true". * * @see org.apache.xalan.xsltc.compiler.util.Type#translateTo */ public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, BooleanType type) { final InstructionList il = methodGen.getInstructionList(); FlowList falsel = translateToDesynthesized(classGen, methodGen, type); il.append(ICONST_1); final BranchHandle truec = il.append(new GOTO(null)); falsel.backPatch(il.append(ICONST_0)); truec.setTarget(il.append(NOP)); }
/** * Translates an object of this type to its boxed representation. */ public void translateBox(ClassGenerator classGen, MethodGenerator methodGen) { translateTo(classGen, methodGen, Type.Reference); }
toString(), type.toString()); classGen.getParser().reportError(Constants.FATAL, err); break;
/** * Expects a node on the stack and pushes a real. * First the node 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); }
toString(), type.toString()); classGen.getParser().reportError(Constants.FATAL, err); break;
translateTo(classGen, methodGen, Type.String); return; toString(), className); classGen.getParser().reportError(Constants.FATAL, err);
/** * Translates an object of this type to its boxed representation. */ public void translateBox(ClassGenerator classGen, MethodGenerator methodGen) { translateTo(classGen, methodGen, Type.Reference); }
/** * Translates a node into a synthesized boolean. * If the expression is "@attr", * then "true" is pushed iff "attr" is an attribute of the current node. * If the expression is ".", the result is always "true". * * @see org.apache.xalan.xsltc.compiler.util.Type#translateTo */ public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, BooleanType type) { final InstructionList il = methodGen.getInstructionList(); FlowList falsel = translateToDesynthesized(classGen, methodGen, type); il.append(ICONST_1); final BranchHandle truec = il.append(new GOTO(null)); falsel.backPatch(il.append(ICONST_0)); truec.setTarget(il.append(NOP)); }
toString(), type.toString()); classGen.getParser().reportError(Constants.FATAL, err); break;
Type type) { if (type == Type.String) { translateTo(classGen, methodGen, (StringType) type); translateTo(classGen, methodGen, (BooleanType) type); translateTo(classGen, methodGen, (RealType) type); translateTo(classGen, methodGen, (NodeSetType) type); translateTo(classGen, methodGen, (ReferenceType) type); translateTo(classGen, methodGen, (ObjectType) type); toString(), type.toString()); classGen.getParser().reportError(Constants.FATAL, err);
/** * Translates an object of this type to its boxed representation. */ public void translateBox(ClassGenerator classGen, MethodGenerator methodGen) { translateTo(classGen, methodGen, Type.Reference); }
/** * Translates a node into a synthesized boolean. * If the expression is "@attr", * then "true" is pushed iff "attr" is an attribute of the current node. * If the expression is ".", the result is always "true". * * @see org.apache.xalan.xsltc.compiler.util.Type#translateTo */ public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, BooleanType type) { final InstructionList il = methodGen.getInstructionList(); FlowList falsel = translateToDesynthesized(classGen, methodGen, type); il.append(ICONST_1); final BranchHandle truec = il.append(new GOTO(null)); falsel.backPatch(il.append(ICONST_0)); truec.setTarget(il.append(NOP)); }
toString(), type.toString()); classGen.getParser().reportError(Constants.FATAL, err); break;
Type type) { if (type == Type.String) { translateTo(classGen, methodGen, (StringType) type); translateTo(classGen, methodGen, (BooleanType) type); translateTo(classGen, methodGen, (RealType) type); translateTo(classGen, methodGen, (NodeSetType) type); translateTo(classGen, methodGen, (ReferenceType) type); translateTo(classGen, methodGen, (ObjectType) type); toString(), type.toString()); classGen.getParser().reportError(Constants.FATAL, err);
/** * Translates an object of this type to its boxed representation. */ public void translateBox(ClassGenerator classGen, MethodGenerator methodGen) { translateTo(classGen, methodGen, Type.Reference); }
/** * Translates a node into a synthesized boolean. * If the expression is "@attr", * then "true" is pushed iff "attr" is an attribute of the current node. * If the expression is ".", the result is always "true". * * @see org.apache.xalan.xsltc.compiler.util.Type#translateTo */ public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, BooleanType type) { final InstructionList il = methodGen.getInstructionList(); FlowList falsel = translateToDesynthesized(classGen, methodGen, type); il.append(ICONST_1); final BranchHandle truec = il.append(new GOTO(null)); falsel.backPatch(il.append(ICONST_0)); truec.setTarget(il.append(NOP)); }
Type type) { if (type == Type.String) { translateTo(classGen, methodGen, (StringType) type); translateTo(classGen, methodGen, (BooleanType) type); translateTo(classGen, methodGen, (RealType) type); translateTo(classGen, methodGen, (NodeSetType) type); translateTo(classGen, methodGen, (ReferenceType) type); translateTo(classGen, methodGen, (ObjectType) type); toString(), type.toString()); classGen.getParser().reportError(Constants.FATAL, err);
/** * Expects a node on the stack and pushes a real. * First the node 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); }
translateTo(classGen, methodGen, Type.String); return; toString(), className); classGen.getParser().reportError(Constants.FATAL, err);