Examples of freezeParamTypes()


Examples of com.google.gwt.dev.jjs.ast.JMethod.freezeParamTypes()

  private JMethod createSyntheticMethod(SourceInfo info, String name, JDeclaredType enclosingType,
      JType returnType, boolean isAbstract, boolean isStatic, boolean isFinal, AccessModifier access) {
    JMethod method =
        new JMethod(info, name, enclosingType, returnType, isAbstract, isStatic, isFinal, access);
    method.freezeParamTypes();
    method.setSynthetic();
    method.setBody(new JMethodBody(info));
    enclosingType.addMethod(method);
    return method;
  }
View Full Code Here

Examples of com.google.gwt.dev.jjs.ast.JMethod.freezeParamTypes()

    for (JParameter oldParam : method.getParams()) {
      JProgram.createParameter(sourceInfo, oldParam.getName(), oldParam.getType(), true, false,
          devirtualMethod);
    }

    devirtualMethod.freezeParamTypes();
    devirtualMethod.addThrownExceptions(method.getThrownExceptions());
    sourceInfo.addCorrelation(sourceInfo.getCorrelator().by(devirtualMethod));

    return devirtualMethod;
  }
View Full Code Here

Examples of com.google.gwt.dev.jjs.ast.JMethod.freezeParamTypes()

  private JMethod createSyntheticMethod(SourceInfo info, String name, JDeclaredType enclosingType,
      JType returnType, boolean isAbstract, boolean isStatic, boolean isFinal, boolean isPrivate) {
    JMethod method =
        new JMethod(info, name, enclosingType, returnType, isAbstract, isStatic, isFinal, isPrivate);
    method.freezeParamTypes();
    method.setSynthetic();
    method.setBody(new JMethodBody(info));
    enclosingType.addMethod(method);
    return method;
  }
View Full Code Here

Examples of com.google.gwt.dev.jjs.ast.JMethod.freezeParamTypes()

        program.getTypeJavaLangObject(), true, true, newMethod);
    for (JParameter oldParam : polyMethod.getParams()) {
      JProgram.createParameter(sourceInfo, oldParam.getName(),
          oldParam.getType(), true, false, newMethod);
    }
    newMethod.freezeParamTypes();
    newMethod.addThrownExceptions(polyMethod.getThrownExceptions());
    sourceInfo.addCorrelation(sourceInfo.getCorrelator().by(newMethod));

    // maybeJsoInvocation = this$static
    JExpression instance = polyMethodCall.getInstance();
View Full Code Here

Examples of com.google.gwt.dev.jjs.ast.JMethod.freezeParamTypes()

     * exists) is always in slot 1.
     */
    SourceInfo child = info.makeChild();
    JMethod clinit = program.createMethod(child, "$clinit", newType,
        program.getTypeVoid(), false, true, true, true, false);
    clinit.freezeParamTypes();
    clinit.setSynthetic();
    child.addCorrelation(info.getCorrelator().by(clinit));

    if (newType instanceof JClassType) {
      child = info.makeChild();
View Full Code Here

Examples of com.google.gwt.dev.jjs.ast.JMethod.freezeParamTypes()

    if (newType instanceof JClassType) {
      child = info.makeChild();
      JMethod init = program.createMethod(child, "$init", newType,
          program.getTypeVoid(), false, false, true, true, false);
      init.freezeParamTypes();
      init.setSynthetic();
      child.addCorrelation(info.getCorrelator().by(init));
    }

    newType.setExternal(linker.isExternalType(newType.getName()));
View Full Code Here

Examples of com.google.gwt.dev.jjs.ast.JMethod.freezeParamTypes()

        SourceInfo info = type.getSourceInfo().makeChild();
        JMethod getClassMethod = program.createMethod(
            info, "getClass", type,
            program.getTypeJavaLangClass(), false, false, false, false, false);
        assert (type.getMethods().get(2) == getClassMethod);
        getClassMethod.freezeParamTypes();
        getClassMethod.setSynthetic();
        info.addCorrelation(info.getCorrelator().by(getClassMethod));
      }

      if (binding.isNestedType() && !binding.isStatic()
View Full Code Here

Examples of com.google.gwt.dev.jjs.ast.JMethod.freezeParamTypes()

          JProgram.createParameter(newMethod.getSourceInfo(), "name",
              program.getTypeJavaLangString(), true, false, newMethod);
        } else {
          assert false;
        }
        newMethod.freezeParamTypes();
      }
    }
  }

  private void processExternalMethod(MethodBinding binding, JDeclaredType type) {
View Full Code Here

Examples of com.google.gwt.dev.jjs.ast.JMethod.freezeParamTypes()

    // c_g_g_d_c_i_DOMImpl
    toReturn = program.createMethod(info,
        requestType.getName().replace("_", "_1").replace('.', '_'), holderType,
        program.getTypeJavaLangObject().getNonNull(), false, true, true, false,
        false);
    toReturn.freezeParamTypes();
    info.addCorrelation(info.getCorrelator().by(toReturn));
    rebindMethods.put(requestType, toReturn);

    // Used in the return statement at the end
    JExpression mostUsedExpression = null;
View Full Code Here

Examples of com.google.gwt.dev.jjs.ast.JMethod.freezeParamTypes()

          declType.setExternal(true);
          // Emulate clinit method for super clinit calls.
          JMethod clinit =
              new JMethod(SourceOrigin.UNKNOWN, "$clinit", declType, JPrimitiveType.VOID, false,
                  true, true, true);
          clinit.freezeParamTypes();
          clinit.setSynthetic();
          declType.addMethod(clinit);
        }
      }
      types.put(key, type);
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.