Package japa.parser.ast.type

Examples of japa.parser.ast.type.WildcardType


        if (internalType instanceof WildcardType) {
            // We only provide very primitive support for wildcard types; Roo
            // only needs metadata at the end of the day,
            // not complete binding support from an AST
            final WildcardType wt = (WildcardType) internalType;
            if (wt.getSuper() != null) {
                final ReferenceType rt = wt.getSuper();
                final ClassOrInterfaceType cit = (ClassOrInterfaceType) rt
                        .getType();
                final JavaType effectiveType = getJavaTypeNow(
                        compilationUnitServices, cit, typeParameters);
                return new JavaType(effectiveType.getFullyQualifiedTypeName(),
                        rt.getArrayCount(), effectiveType.getDataType(),
                        JavaType.WILDCARD_SUPER, effectiveType.getParameters());
            }
            else if (wt.getExtends() != null) {
                final ReferenceType rt = wt.getExtends();
                final ClassOrInterfaceType cit = (ClassOrInterfaceType) rt
                        .getType();
                final JavaType effectiveType = getJavaTypeNow(
                        compilationUnitServices, cit, typeParameters);
                return new JavaType(effectiveType.getFullyQualifiedTypeName(),
View Full Code Here


    public Boolean visit(VoidType n1, Node arg) {
        return Boolean.TRUE;
    }

    public Boolean visit(WildcardType n1, Node arg) {
        WildcardType n2 = (WildcardType) arg;

        if (!nodeEquals(n1.getExtends(), n2.getExtends())) {
            return Boolean.FALSE;
        }

        if (!nodeEquals(n1.getSuper(), n2.getSuper())) {
            return Boolean.FALSE;
        }

        return Boolean.TRUE;
    }
View Full Code Here

                jj_la1[55] = jj_gen;
                ;
        }
        {
            if (true) {
                return new WildcardType(line, column, token.endLine, token.endColumn, ext, sup);
            }
        }
        throw new Error("Missing return statement in function");
    }
View Full Code Here

  public Node visit(WildcardType _n, Object _arg) {
    ReferenceType ext = cloneNodes(_n.getExtends(), _arg);
    ReferenceType sup = cloneNodes(_n.getSuper(), _arg);
    Comment comment = cloneNodes(_n.getComment(), _arg);

    WildcardType r = new WildcardType(
        _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(),
        ext, sup
    );
    r.setComment(comment);
    return r;
  }
View Full Code Here

  @Override public Boolean visit(final VoidType n1, final Node arg) {
    return Boolean.TRUE;
  }

  @Override public Boolean visit(final WildcardType n1, final Node arg) {
    final WildcardType n2 = (WildcardType) arg;

    if (!nodeEquals(n1.getExtends(), n2.getExtends())) {
      return Boolean.FALSE;
    }

    if (!nodeEquals(n1.getSuper(), n2.getSuper())) {
      return Boolean.FALSE;
    }

    return Boolean.TRUE;
  }
View Full Code Here

TOP

Related Classes of japa.parser.ast.type.WildcardType

Copyright © 2018 www.massapicom. 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.