Examples of translateTo()


Examples of com.google.devtools.moe.client.parser.Expression.translateTo()

            context.config.getRepositoryConfigs().get(fromRev.repositoryName).getProjectSpace();
        toEx = toEx.translateTo(fromProjectSpace);
      } else {
        String toProjectSpace =
            context.config.getRepositoryConfigs().get(toRev.repositoryName).getProjectSpace();
        fromEx = fromEx.translateTo(toProjectSpace);
      }

      to = toEx.createCodebase(context);
      from = fromEx.createCodebase(context);
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.translateTo()

            arg.startIterator(classGen, methodGen);
            targ = arg.getType();
        }

        if (!targ.identicalTo(Type.String)) {
            targ.translateTo(classGen, methodGen, Type.String);
        }
    }
}
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.translateTo()

                final Expression exp = argument(i);
                Type expType = exp.getType();
                exp.translate(classGen, methodGen);
                // Convert the argument to its Java type
                exp.startIterator(classGen, methodGen);
                expType.translateTo(classGen, methodGen, paramTypes[i]);
                paramTemp[i] =
                    methodGen.addLocalVariable("function_call_tmp"+i,
                                               expType.toJCType(),
                                               null, null);
                paramTemp[i].setStart(
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.translateTo()

            arg.startIterator(classGen, methodGen);
            targ = arg.getType();
        }

        if (!targ.identicalTo(Type.Real)) {
            targ.translateTo(classGen, methodGen, Type.Real);
        }
    }
}
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.translateTo()

            _left.translate(classGen, methodGen);
            tleft.translateTo(classGen, methodGen, Type.String);
            _right.translate(classGen, methodGen);

            if (tright instanceof ResultTreeType) {
                tright.translateTo(classGen, methodGen, Type.String);
            }

            final int equals = cpg.addMethodref(STRING_CLASS,
                                                "equals",
                                                "(" +OBJECT_SIG+ ")Z");
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.translateTo()

        _right.translate(classGen, methodGen);
        _right.startIterator(classGen, methodGen);

        // Cast a result tree to a string to use an existing compare
        if (tright instanceof ResultTreeType) {
            tright.translateTo(classGen, methodGen, Type.String);
            tright = Type.String;
        }

        // Call the appropriate compare() from the BasisLibrary
        il.append(new PUSH(cpg, _op));
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.translateTo()

    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {
        _arg.translate(classGen, methodGen);
        final Type targ = _arg.getType();
        if (!targ.identicalTo(Type.Boolean)) {
            _arg.startIterator(classGen, methodGen);
            targ.translateTo(classGen, methodGen, Type.Boolean);
        }
    }
}
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.translateTo()

                    if (fl != null) {
                        _falseList.append(fl);
                    }
                }
                else {
                    ltype.translateTo(classGen, methodGen, _type);
                }
            }
        }
    }
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.translateTo()

    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {
        final Type ltype = _left.getType();
        _left.translate(classGen, methodGen);
        if (_type.identicalTo(ltype) == false) {
            _left.startIterator(classGen, methodGen);
            ltype.translateTo(classGen, methodGen, _type);
        }
    }
}
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.translateTo()

    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {
  _arg.translate(classGen, methodGen);
  final Type targ = _arg.getType();
  if (!targ.identicalTo(Type.Boolean)) {
      _arg.startIterator(classGen, methodGen);
      targ.translateTo(classGen, methodGen, Type.Boolean);
  }
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.