Package com.sun.javadoc

Examples of com.sun.javadoc.FieldDoc


    ArrayList<String> fieldnames = new ArrayList<String>();
   
    /**
     * An alternative (only name match) if no field with matching name and type are found
     */
    FieldDoc alternative = null;
   
    for (FieldDoc field: classDoc.fields()){
      String fieldname = field.name();
      fieldnames.add(fieldname);
     
View Full Code Here


      id = getIdentifier(cdoc.containingClass()) + "." + cdoc.name();
    } else if (doc instanceof MethodDoc) {
      MethodDoc cdoc = (MethodDoc) doc;
      id = getIdentifier(cdoc.containingClass()) + "." + cdoc.name();
    } else if (doc instanceof FieldDoc) {
      FieldDoc cdoc = (FieldDoc) doc;
      id = getIdentifier(cdoc.containingClass()) + "." + cdoc.name();
    } else {
      id = "hash " + doc.hashCode();
    }
 
    return id;
View Full Code Here

    ArrayList<String> fieldnames = new ArrayList<String>();
   
    /**
     * An alternative (only name match) if no field with matching name and type are found
     */
    FieldDoc alternative = null;
   
    for (FieldDoc field: classDoc.fields()){
      String fieldname = field.name();
      fieldnames.add(fieldname);
     
View Full Code Here

    return fieldType;
  }

  private FieldDoc findField(ClassDoc classDoc, String propertyName) {
    FieldDoc fieldDoc = null;
    for (FieldDoc doc : classDoc.fields(false)) {
      if (doc.name().equals(propertyName)) {
        fieldDoc = doc;
        break;
      }
View Full Code Here

      accessorAnnotation = Utils.findAnnotation(klass.containingPackage(), XmlAccessorType.class);
    }
    XmlAccessType accessType = XmlAccessType.PUBLIC_MEMBER;
    // System.err.println("Accessor: " + accessorAnnotation);
    if (accessorAnnotation != null) {
      FieldDoc value = (FieldDoc) Utils.getAnnotationValue(accessorAnnotation);
      accessType = XmlAccessType.valueOf(value.name());
    }
    for (FieldDoc field : klass.fields(false)) {
      addProperty(field, accessType);
    }
    for (MethodDoc method : klass.methods(false)) {
View Full Code Here

        root.put("arguments", args);
        try {
            // loop over all of the arguments according to the parsing engine
            for (final ArgumentSource argumentSource : parsingEngine.extractArgumentSources(DocletUtils.getClassForDoc(toProcess.classDoc))) {
                ArgumentDefinition argDef = argumentSource.createArgumentDefinitions().get(0);
                FieldDoc fieldDoc = getFieldDoc(toProcess.classDoc, argumentSource.field.getName());
                Map<String, Object> argBindings = docForArgument(fieldDoc, argumentSource, argDef);
                if (!argumentSource.isHidden() || getDoclet().showHiddenFeatures()) {
                    final String kind = docKindOfArg(argumentSource);
                    argBindings.put("kind", kind);
                    // Retrieve default value
View Full Code Here

            if (field.isAnnotationPresent(ArgumentCollection.class)) {
                ClassDoc typeDoc = getRootDoc().classNamed(fieldDoc.type().qualifiedTypeName());
                if (typeDoc == null)
                    throw new ReviewedGATKException("Tried to get javadocs for ArgumentCollection field " + fieldDoc + " but could't find the class in the RootDoc");
                else {
                    FieldDoc result = getFieldDoc(typeDoc, name, false);
                    if (result != null)
                        return result;
                    // else keep searching
                }
            }
View Full Code Here

    if(doc instanceof MethodDoc)
    {
      ret = ret.concat("()");
    } else if (doc.isField()){
      // add [] if needed
      FieldDoc d = (FieldDoc) doc;
      ret = ret.concat(d.type().dimension());
    }
    return ret;
  }
View Full Code Here

   @Override
   public boolean evaluate(DocSpecification docSpecification)
   {
      System.out.println("FieldDocBooster.evaluateObject");
      FieldDoc doc = docSpecification.getFieldDoc();
      if(doc.isStatic() && doc.isFinal())
      {
         doc.setRawCommentText( doc.getRawCommentText() +
         "\n The value of the field is {@value}." );
      }
     
     
      return true;
View Full Code Here

      ConstructorDoc docInstance = (ConstructorDoc) doc;
     
    }
    else if (doc instanceof FieldDoc)
    {
      FieldDoc docInstance = (FieldDoc) doc;
     
    }
    else if (doc instanceof PackageDoc)
    {
      PackageDoc docInstance = (PackageDoc) doc;
View Full Code Here

TOP

Related Classes of com.sun.javadoc.FieldDoc

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.