public AnnotationDesc[] annotations() { return wrapped.annotations(); }
public boolean isFunctionalInterface() { if (configuration.root instanceof RootDocImpl) { RootDocImpl root = (RootDocImpl) configuration.root; AnnotationDesc[] annotationDescList = classDoc.annotations(); for (AnnotationDesc annoDesc : annotationDescList) { if (root.isFunctionalInterface(annoDesc)) { return true; } } } return false; }
public void writeClassAnnotiations(ClassDoc classDoc, StringBuilder sb) { AnnotationDesc[] annotations = classDoc.annotations(); for (AnnotationDesc annotation : annotations) { sb.append("\t").append(annotation.annotationType().name()).append(" : \n"); writeAnnotationTable(annotation, sb); } }
public static boolean hasAnnotation (ClassDoc classDoc) { if (classDoc.interfaces().length > 0) { for (AnnotationDesc annotationDesc : classDoc.annotations()) { if (annotationDesc.annotationType().qualifiedTypeName().equals(ApiMapping.class.getName())) { return true; } } } return false; } }
final ClassDocType classDocType = new ClassDocType(); AnnotationDesc[] annotationDescs = classDoc.annotations(); boolean toBeProcessed = false; if ( annotationDescs != null ) {
protected Interface parseInterface(ClassDoc classDoc) { Interface interfaceNode = objectFactory.createInterface(); interfaceNode.setName(classDoc.name()); interfaceNode.setQualified(classDoc.qualifiedName()); String comment = classDoc.commentText(); if (comment.length() > 0) { interfaceNode.setComment(comment); } interfaceNode.setIncluded(classDoc.isIncluded()); interfaceNode.setScope(parseScope(classDoc)); for (TypeVariable typeVariable : classDoc.typeParameters()) { interfaceNode.getGeneric().add(parseTypeParameter(typeVariable)); } for (Type interfaceType : classDoc.interfaceTypes()) { interfaceNode.getInterface().add(parseTypeInfo(interfaceType)); } for (MethodDoc method : classDoc.methods()) { interfaceNode.getMethod().add(parseMethod(method)); } for (AnnotationDesc annotationDesc : classDoc.annotations()) { interfaceNode.getAnnotation().add(parseAnnotationDesc(annotationDesc, classDoc.qualifiedName())); } for (Tag tag : classDoc.tags()) { interfaceNode.getTag().add(parseTag(tag)); } for (FieldDoc field : classDoc.fields()) { interfaceNode.getField().add(parseField(field)); } return interfaceNode; }
protected Enum parseEnum(ClassDoc classDoc) { Enum enumNode = objectFactory.createEnum(); enumNode.setName(classDoc.name()); enumNode.setQualified(classDoc.qualifiedName()); String comment = classDoc.commentText(); if (comment.length() > 0) { enumNode.setComment(comment); } enumNode.setIncluded(classDoc.isIncluded()); enumNode.setScope(parseScope(classDoc)); Type superClassType = classDoc.superclassType(); if (superClassType != null) { enumNode.setClazz(parseTypeInfo(superClassType)); } for (Type interfaceType : classDoc.interfaceTypes()) { enumNode.getInterface().add(parseTypeInfo(interfaceType)); } for (FieldDoc field : classDoc.enumConstants()) { enumNode.getConstant().add(parseEnumConstant(field)); } for (AnnotationDesc annotationDesc : classDoc.annotations()) { enumNode.getAnnotation().add(parseAnnotationDesc(annotationDesc, classDoc.qualifiedName())); } for (Tag tag : classDoc.tags()) { enumNode.getTag().add(parseTag(tag)); } return enumNode; }
for (AnnotationDesc annotationDesc : classDoc.annotations()) { classNode.getAnnotation().add(parseAnnotationDesc(annotationDesc, classDoc.qualifiedName()));