Examples of asClassDoc()


Examples of com.sun.javadoc.Type.asClassDoc()

  Type type = field.type();
  if(type.isPrimitive() || type instanceof WildcardType || type instanceof TypeVariable)
      return null;
 
  if (type.dimension().endsWith("[]")) {
      return new FieldRelationInfo(type.asClassDoc(), true);
  }
 
  Options opt = optionProvider.getOptionsFor(type.asClassDoc());
  if (opt.matchesCollPackageExpression(type.qualifiedTypeName())) {
      Type[] argTypes = getInterfaceTypeArguments(collectionClassDoc, type);
View Full Code Here

Examples of com.sun.javadoc.Type.asClassDoc()

 
  if (type.dimension().endsWith("[]")) {
      return new FieldRelationInfo(type.asClassDoc(), true);
  }
 
  Options opt = optionProvider.getOptionsFor(type.asClassDoc());
  if (opt.matchesCollPackageExpression(type.qualifiedTypeName())) {
      Type[] argTypes = getInterfaceTypeArguments(collectionClassDoc, type);
      if (argTypes != null && argTypes.length == 1 && !argTypes[0].isPrimitive())
    return new FieldRelationInfo(argTypes[0].asClassDoc(), true);
View Full Code Here

Examples of com.sun.javadoc.Type.asClassDoc()

      argTypes = getInterfaceTypeArguments(mapClassDoc, type);
      if (argTypes != null && argTypes.length == 2 && !argTypes[1].isPrimitive())
    return new FieldRelationInfo(argTypes[1].asClassDoc(), true);
  }

  return new FieldRelationInfo(type.asClassDoc(), false);
    }
   
    private Type[] getInterfaceTypeArguments(ClassDoc iface, Type t) {
  if (t instanceof ParameterizedType) {
      ParameterizedType pt = (ParameterizedType) t;
View Full Code Here

Examples of com.sun.javadoc.Type.asClassDoc()

    if (foundClassDoc != null) {
      return foundClassDoc;
    }

    final Type superclass = klass.superclassType();
    if (superclass != null && superclass.asClassDoc() != null) {
      return findAnnotatedClass(superclass.asClassDoc(), soughtAnnotations);
    }
    return null;
  }
View Full Code Here

Examples of com.sun.javadoc.Type.asClassDoc()

      return foundClassDoc;
    }

    final Type superclass = klass.superclassType();
    if (superclass != null && superclass.asClassDoc() != null) {
      return findAnnotatedClass(superclass.asClassDoc(), soughtAnnotations);
    }
    return null;
  }

  public static Type findSuperType(final Type type, String typeName) {
View Full Code Here

Examples of com.sun.javadoc.Type.asClassDoc()

    if (foundType != null) {
      return foundType;
    }

    final Type superclass = klass.superclassType();
    if (superclass != null && superclass.asClassDoc() != null) {
      return findSuperTypeFromClass(superclass.asClassDoc(), typeName);
    }
    return null;
  }
View Full Code Here

Examples of com.sun.javadoc.Type.asClassDoc()

      return foundType;
    }

    final Type superclass = klass.superclassType();
    if (superclass != null && superclass.asClassDoc() != null) {
      return findSuperTypeFromClass(superclass.asClassDoc(), typeName);
    }
    return null;
  }

  public static String appendURLFragments(String... fragments) {
View Full Code Here

Examples of com.sun.javadoc.Type.asClassDoc()

      registry.addJAXBClass(jaxbClass);
      // load all used types
      List<JAXBMember> members = jaxbClass.getMembers();
      for (JAXBMember member : members) {
        Type type = member.getJavaType();
        ClassDoc doc = type.asClassDoc();
        if (doc != null) {
          handleJAXBClass(doc);
        }
      }
    }
View Full Code Here

Examples of com.sun.javadoc.Type.asClassDoc()

      registry.addJPAClass(jpaClass);
      // load all used types
      List<JPAMember> members = jpaClass.getMembers();
      for (JPAMember member : members) {
        Type type = member.getJavaType();
        ClassDoc doc = type.asClassDoc();
        if (doc != null && Utils.findAnnotatedClass(doc, jpaAnnotations) != null) {
          handleJPAClass(doc);
        }
      }
    }
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.