Examples of makeChild()


Examples of com.google.gwt.dev.jjs.SourceInfo.makeChild()

                  method,
                  new JFieldRef(info, new JThisRef(info,
                      (JClassType) currentClass),
                      program.getIndexedField("Array.arrayClass"), currentClass));
            } else {
              implementMethod(method, new JClassLiteral(info.makeChild(),
                  currentClass));
            }
          }
        }
View Full Code Here

Examples of com.google.gwt.dev.jjs.SourceInfo.makeChild()

    JStringLiteral processConstant(StringConstant x) {
      // May be processing an annotation
      SourceInfo info = currentMethod == null ? currentClass.getSourceInfo()
          : currentMethod.getSourceInfo();
      return program.getLiteralString(info.makeChild(),
          x.stringValue().toCharArray());
    }

    /**
     * This is slightly different from the normal Java language. Specifically,
View Full Code Here

Examples of com.google.gwt.dev.jjs.SourceInfo.makeChild()

      List<JParameter> implParams = implmeth.getParams();
      for (TypeBinding jdtParamType : jdtBridgeMethod.parameters) {
        JParameter param = implParams.get(paramIdx++);
        JType paramType = (JType) typeMap.get(jdtParamType.erasure());
        JParameter newParam = new JParameter(
            info.makeChild(param.getSourceInfo().getOrigin()), param.getName(),
            paramType, true, false, bridgeMethod);
        bridgeMethod.addParam(newParam);
      }
      addThrownExceptions(jdtBridgeMethod, bridgeMethod);
      bridgeMethod.freezeParamTypes();
View Full Code Here

Examples of com.google.gwt.dev.jjs.SourceInfo.makeChild()

    int lineno = node.getLineno();
    if (lineno == -1) {
      // Rhino only reports line numbers for statement nodes, not expressions
      return parent;
    }
    return parent.makeChild(SourceOrigin.create(lineno, parent.getFileName()));
  }

  /**
   * Force a distinct child to be created, so correlations can be added.
   */
 
View Full Code Here

Examples of com.google.gwt.dev.jjs.SourceInfo.makeChild()

    int lineno = node.getLineno();
    if (lineno == -1) {
      // Rhino only reports line numbers for statement nodes, not expressions
      lineno = parent.getStartLine();
    }
    return parent.makeChild(SourceOrigin.create(lineno, parent.getFileName()));
  }

  private JsNode map(Node node) throws JsParserException {

    switch (node.getType()) {
View Full Code Here

Examples of com.google.gwt.dev.jjs.SourceInfo.makeChild()

      /*
       * Don't use the JProgram helper because it auto-adds the new method to
       * its enclosing class.
       */
      JMethod newMethod = new JMethod(sourceInfo.makeChild(
          CreateStaticImplsVisitor.class, "Devirtualized function"), newName,
          enclosingType, returnType, false, true, true, x.isPrivate());

      // Setup parameters; map from the old params to the new params
      JParameter thisParam = JParameter.create(sourceInfo.makeChild(
View Full Code Here

Examples of com.google.gwt.dev.jjs.SourceInfo.makeChild()

      JMethod newMethod = new JMethod(sourceInfo.makeChild(
          CreateStaticImplsVisitor.class, "Devirtualized function"), newName,
          enclosingType, returnType, false, true, true, x.isPrivate());

      // Setup parameters; map from the old params to the new params
      JParameter thisParam = JParameter.create(sourceInfo.makeChild(
          CreateStaticImplsVisitor.class, "Instance parameter"), "this$static",
          enclosingType, true, true, newMethod);
      Map<JParameter, JParameter> varMap = new IdentityHashMap<JParameter, JParameter>();
      for (int i = 0; i < x.getParams().size(); ++i) {
        JParameter oldVar = x.getParams().get(i);
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.