Examples of asClassDoc()


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

    Map<String, Property> elements = new HashMap<String, Property>();
    for (Map.Entry<String, TypeRef> entry : types.entrySet()) {
      String typeName = entry.getKey();
      TypeRef typeRef = entry.getValue();
      Type type = typeRef.type;
      ClassDoc typeClassDoc = type.asClassDoc();

      OptionalName propertyTypeFormat = this.translator.typeName(type);
      String propertyType = propertyTypeFormat.value();

      // set enum values
View Full Code Here

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

  private String getParameterString(Parameter[] ps) {
    String result = "";
    for (int i = 0; i < ps.length; i++) {
      Type type = ps[i].type();
      String ename = type.isPrimitive() ? type.typeName()
          : getExportedName(type.asClassDoc());
      result += "<span class=jsdocParameterType>" + ename
          + "</span> <span class=jsdocParameterName>" + ps[i].name()
          + "</span>";
      if (i < ps.length - 1) {
        result += ", ";
View Full Code Here

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

        ParameterizedType p = t.asParameterizedType();
            if (p != null) {
              t = p.typeArguments()[0];
            }
      }
       resourceLocator = new ResourceClass(t.asClassDoc(), this);
    }
  }

  public ResourceClass getResourceClass() {
    return resource;
View Full Code Here

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

  // Print generalization (through the Java superclass)
  Type s = c.superclassType();
  if (s != null &&
      !s.toString().equals("java.lang.Object") &&
      !c.isEnum() &&
      !hidden(s.asClassDoc())) {
        ClassDoc sc = s.asClassDoc();
    w.println("\t//" + c + " extends " + s + "\n" +
        "\t" + getNodeName(sc) + ":p -> " + cs + ":p [dir=back,arrowtail=empty];");
    getClassInfo(className).addRelation(sc.toString(), RelationType.EXTENDS, RelationDirection.OUT);
    getClassInfo(sc.toString()).addRelation(className, RelationType.EXTENDS, RelationDirection.IN);
View Full Code Here

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

  Type s = c.superclassType();
  if (s != null &&
      !s.toString().equals("java.lang.Object") &&
      !c.isEnum() &&
      !hidden(s.asClassDoc())) {
        ClassDoc sc = s.asClassDoc();
    w.println("\t//" + c + " extends " + s + "\n" +
        "\t" + getNodeName(sc) + ":p -> " + cs + ":p [dir=back,arrowtail=empty];");
    getClassInfo(className).addRelation(sc.toString(), RelationType.EXTENDS, RelationDirection.OUT);
    getClassInfo(sc.toString()).addRelation(className, RelationType.EXTENDS, RelationDirection.IN);
  }
View Full Code Here

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) {
    return new FieldRelationInfo(argTypes[0].asClassDoc(), true);
      }
View Full Code Here

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

      if (argTypes != null && argTypes.length == 2) {
    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()

  // Print generalization (through the Java superclass)
  Type s = c.superclassType();
  if (s != null &&
      !s.toString().equals("java.lang.Object") &&
      !c.isEnum() &&
      !hidden(s.asClassDoc())) {
        ClassDoc sc = s.asClassDoc();
    w.println("\t//" + c + " extends " + s + "\n" +
        "\t" + relationNode(sc) + " -> " + relationNode(c) + " [dir=back,arrowtail=empty];");
    getClassInfo(className).addRelation(sc.toString(), RelationType.EXTENDS, RelationDirection.OUT);
    getClassInfo(sc.toString()).addRelation(className, RelationType.EXTENDS, RelationDirection.IN);
View Full Code Here

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

  Type s = c.superclassType();
  if (s != null &&
      !s.toString().equals("java.lang.Object") &&
      !c.isEnum() &&
      !hidden(s.asClassDoc())) {
        ClassDoc sc = s.asClassDoc();
    w.println("\t//" + c + " extends " + s + "\n" +
        "\t" + relationNode(sc) + " -> " + relationNode(c) + " [dir=back,arrowtail=empty];");
    getClassInfo(className).addRelation(sc.toString(), RelationType.EXTENDS, RelationDirection.OUT);
    getClassInfo(sc.toString()).addRelation(className, RelationType.EXTENDS, RelationDirection.IN);
  }
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.