Package com.sun.javadoc

Examples of com.sun.javadoc.AnnotationTypeElementDoc


  private void copyValues(AnnotationDesc src, AnnoBean dest) {
    AnnotationDesc.ElementValuePair[] values = src.elementValues();
    if (values == null || values.length == 0) return;
    for(int i=0; i<values.length; i++) {
      AnnotationTypeElementDoc ated = values[i].element();
      String name = ated.name();
      Object value;
      {
        AnnotationValue avalue = values[i].value();
        if (avalue == null) continue; //REVIEW
        value = avalue.value();
View Full Code Here


    }

    StringBuilder additionalComment = new StringBuilder();
    for (AnnotationDesc documentation : documentations) {
      for (ElementValuePair pair : documentation.elementValues()) {
        AnnotationTypeElementDoc elementDoc = pair.element();
        String key = pair.toString();
        if (key.startsWith("text=")) {
          AnnotationValue value = pair.value();
          Object string = value.value();
          additionalComment.append(string).append("\n");
View Full Code Here

      AnnotationTypeDoc docInstance = (AnnotationTypeDoc) doc;
     
    }
    else if (doc instanceof AnnotationTypeElementDoc)//is subinterface of method so it must com before the MethodDoc
    {
      AnnotationTypeElementDoc docInstance = (AnnotationTypeElementDoc) doc;
      children.add( new DocTreeNode(this, doc, TYPE_INFO));
     
    }
    else if (doc instanceof ClassDoc)
    {
View Full Code Here

      AnnotationTypeDoc docInstance = (AnnotationTypeDoc) doc;
     
    }
    else if (doc instanceof AnnotationTypeElementDoc)//is subinterface of method so it must com before the MethodDoc
    {
      AnnotationTypeElementDoc docInstance = (AnnotationTypeElementDoc) doc;
     
    }
    else if (doc instanceof MethodDoc)
    {
      MethodDoc docInstance = (MethodDoc) doc;
     
    }
    else if (doc instanceof ClassDoc)
    {
      ClassDoc docInstance = (ClassDoc) doc;
      Doc[] substructure;

      substructure = docInstance.enumConstants();
      Arrays.sort(substructure);
      addChildDocs(substructure );
     
      substructure = docInstance.fields();
      Arrays.sort(substructure);
      addChildDocs(substructure );
     
      substructure = docInstance.constructors();
      Arrays.sort(substructure);
      addChildDocs(substructure );
     
      substructure = docInstance.methods();
      Arrays.sort(substructure);
      addChildDocs(substructure );

      substructure = docInstance.innerClasses();
      Arrays.sort(substructure);
      addChildDocs(substructure );
     
     
    }
    else if (doc instanceof ConstructorDoc)
    {
      ConstructorDoc docInstance = (ConstructorDoc) doc;
     
    }
    else if (doc instanceof FieldDoc)
    {
      FieldDoc docInstance = (FieldDoc) doc;
     
    }
    else if (doc instanceof PackageDoc)
    {
      PackageDoc docInstance = (PackageDoc) doc;
      ClassDoc[] classes = docInstance.allClasses();
      Arrays.sort(classes);
      addChildDocs(classes );
    }
    else
    {
View Full Code Here

      AnnotationTypeDoc docInstance = (AnnotationTypeDoc) doc;
      return "AnnotationType " + docInstance.name();
    }
    else if (doc instanceof AnnotationTypeElementDoc)//is subinterface of method so it must com before the MethodDoc
    {
      AnnotationTypeElementDoc docInstance = (AnnotationTypeElementDoc) doc;
      return "AnnotationTypeElement " + docInstance.name();
    }
    else if (doc instanceof MethodDoc)
    {
      MethodDoc docInstance = (MethodDoc) doc;
      return "Method " + docInstance.name();
    }
    else if (doc instanceof ClassDoc)
    {
      ClassDoc docInstance = (ClassDoc) doc;
      return "Class " + docInstance.name();
    }
    else if (doc instanceof ConstructorDoc)
    {
      ConstructorDoc docInstance = (ConstructorDoc) doc;
      return "Constructor " + docInstance.name();
    }
    else if (doc instanceof FieldDoc)
    {
      FieldDoc docInstance = (FieldDoc) doc;
      return "Field " + docInstance.name();
    }
    else if (doc instanceof PackageDoc)
    {
      PackageDoc docInstance = (PackageDoc) doc;
      return "Package " + docInstance.name();
    }
    else
    {
      return  doc.getClass().getName();
    }
View Full Code Here

TOP

Related Classes of com.sun.javadoc.AnnotationTypeElementDoc

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.