Examples of allparams()


Examples of com.sun.tools.javac.code.Type.allparams()

    void assembleClassSig(Type type) {
        ClassType ct = (ClassType)type;
        ClassSymbol c = (ClassSymbol)ct.tsym;
        enterInner(c);
        Type outer = ct.getEnclosingType();
        if (outer.allparams().nonEmpty()) {
            boolean rawOuter =
                c.owner.kind == MTH || // either a local class
                c.name == names.empty; // or anonymous
            assembleClassSig(rawOuter
                             ? types.erasure(outer)
View Full Code Here

Examples of com.sun.tools.javac.code.Type.allparams()

                                Type enclosingType = tsym.type.getEnclosingType();
                                if (enclosingType != Type.noType) {
                                    List<Type> typeArgs =
                                        super.getEnclosingType().allparams();
                                    List<Type> typeParams =
                                        enclosingType.allparams();
                                    if (typeParams.length() != typeArgs.length()) {
                                        // no "rare" types
                                        super.setEnclosingType(types.erasure(enclosingType));
                                    } else {
                                        super.setEnclosingType(types.subst(enclosingType,
View Full Code Here

Examples of com.sun.tools.javac.code.Type.allparams()

      if (type.isErroneous()) return;
      for (List<Type> l = types.interfaces(type); l.nonEmpty(); l = l.tail) {
    Type it = l.head;
    Type oldit = seensofar.put(it.tsym, it);
    if (oldit != null) {
        List<Type> oldparams = oldit.allparams();
        List<Type> newparams = it.allparams();
        if (!types.containsTypeEquivalent(oldparams, newparams))
      log.error(pos, "cant.inherit.diff.arg",
          it.tsym, Type.toString(oldparams),
          Type.toString(newparams));
View Full Code Here

Examples of com.sun.tools.javac.code.Type.allparams()

            Type base = types.asSuper(exprType, syms.iterableType.tsym);
            if (base == null) {
                log.error(tree.expr.pos(), "foreach.not.applicable.to.type");
                elemtype = syms.errType;
            } else {
                List<Type> iterableParams = base.allparams();
                elemtype = iterableParams.isEmpty()
                    ? syms.objectType
                    : types.upperBound(iterableParams.head);
            }
        }
View Full Code Here

Examples of com.sun.tools.javac.code.Type.allparams()

    void assembleClassSig(Type type) {
        ClassType ct = (ClassType)type;
        ClassSymbol c = (ClassSymbol)ct.tsym;
        enterInner(c);
        Type outer = ct.getEnclosingType();
        if (outer.allparams().nonEmpty()) {
            boolean rawOuter =
                c.owner.kind == MTH || // either a local class
                c.name == names.empty; // or anonymous
            assembleClassSig(rawOuter
                             ? types.erasure(outer)
View Full Code Here

Examples of com.sun.tools.javac.code.Type.allparams()

      DEBUG.P("base = "+base);
            if (base == null) {
                log.error(tree.expr.pos(), "foreach.not.applicable.to.type");
                elemtype = syms.errType;
            } else {
                List<Type> iterableParams = base.allparams();
        DEBUG.P("iterableParams = "+iterableParams);
                elemtype = iterableParams.isEmpty()
                    ? syms.objectType
                    : types.upperBound(iterableParams.head);
            }
View Full Code Here

Examples of com.sun.tools.javac.code.Type.allparams()

        Type it=my.InterfaceTest<my.ExtendsTest,my.test.Test>
        Type oldit=my.InterfaceTest<my.ExtendsTest,my.test.MyInterfaceA>
        oldparams=my.ExtendsTest,my.test.MyInterfaceA
        newparams=my.ExtendsTest,my.test.Test
        */
        List<Type> oldparams = oldit.allparams();
        List<Type> newparams = it.allparams();
        DEBUG.P("oldparams="+oldparams);
        DEBUG.P("newparams="+newparams);
        if (!types.containsTypeEquivalent(oldparams, newparams))
        log.error(pos, "cant.inherit.diff.arg",
View Full Code Here

Examples of com.sun.tools.javac.code.Type.allparams()

        ClassSymbol c = (ClassSymbol)ct.tsym;
        enterInner(c);
        Type outer = ct.getEnclosingType();

    DEBUG.P("outer="+outer+" outer.tag="+TypeTags.toString(outer.tag));
    DEBUG.P("outer.allparams()="+outer.allparams());
        if (outer.allparams().nonEmpty()) {
            boolean rawOuter =
                c.owner.kind == MTH || // either a local class
                c.name == names.empty; // or anonymous
            DEBUG.P("rawOuter="+rawOuter);
View Full Code Here

Examples of com.sun.tools.javac.code.Type.allparams()

        enterInner(c);
        Type outer = ct.getEnclosingType();

    DEBUG.P("outer="+outer+" outer.tag="+TypeTags.toString(outer.tag));
    DEBUG.P("outer.allparams()="+outer.allparams());
        if (outer.allparams().nonEmpty()) {
            boolean rawOuter =
                c.owner.kind == MTH || // either a local class
                c.name == names.empty; // or anonymous
            DEBUG.P("rawOuter="+rawOuter);
            assembleClassSig(rawOuter
View Full Code Here

Examples of com.sun.tools.javac.code.Type.allparams()

                                Type enclosingType = tsym.type.getEnclosingType();
                                if (enclosingType != Type.noType) {
                                    List<Type> typeArgs =
                                        super.getEnclosingType().allparams();
                                    List<Type> typeParams =
                                        enclosingType.allparams();
                                    if (typeParams.length() != typeArgs.length()) {
                                        // no "rare" types
                                        super.setEnclosingType(types.erasure(enclosingType));
                                    } else {
                                        super.setEnclosingType(types.subst(enclosingType,
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.