public class AnnotationAwareTranslator extends Object implements Translator
Translator.OptionalName| Constructor and Description |
|---|
AnnotationAwareTranslator(DocletOptions options)
This creates a AnnotationAwareTranslator that uses the given doclet options
|
| Modifier and Type | Method and Description |
|---|---|
AnnotationAwareTranslator |
element(String qualifiedAnnotationType,
String property)
This adds an element annotation to this translator, these ones are used for field and method names
|
Translator.OptionalName |
fieldName(com.sun.javadoc.FieldDoc field) |
AnnotationAwareTranslator |
ignore(String qualifiedAnnotationType)
This adds an ignore annotation to this translator
|
Translator.OptionalName |
methodName(com.sun.javadoc.MethodDoc method) |
Translator.OptionalName |
parameterTypeName(boolean multipart,
com.sun.javadoc.Parameter parameter,
com.sun.javadoc.Type paramType) |
AnnotationAwareTranslator |
rootElement(String qualifiedAnnotationType,
String property)
This adds an root annotation to this translator, these ones are used for class type names
|
Translator.OptionalName |
typeName(com.sun.javadoc.Type type) |
Translator.OptionalName |
typeName(com.sun.javadoc.Type type,
com.sun.javadoc.ClassDoc[] views) |
public AnnotationAwareTranslator(DocletOptions options)
options - the doclet optionspublic AnnotationAwareTranslator ignore(String qualifiedAnnotationType)
qualifiedAnnotationType - The FQN of the annotation that if present means a field is ignored e.g. JsonIgnore, XmlTransientpublic AnnotationAwareTranslator element(String qualifiedAnnotationType, String property)
qualifiedAnnotationType - The FQN of the annotation that if present means a field/method uses this annotation's property for the nameproperty - The property name of the annotation to use for the field/method namepublic AnnotationAwareTranslator rootElement(String qualifiedAnnotationType, String property)
qualifiedAnnotationType - The FQN of the annotation that if present means a class type uses uses this annotation's property for the nameproperty - The property name of the annotation to use for the class type namepublic Translator.OptionalName typeName(com.sun.javadoc.Type type, com.sun.javadoc.ClassDoc[] views)
typeName in interface TranslatorTranslator.typeName(com.sun.javadoc.Type, com.sun.javadoc.ClassDoc[])public Translator.OptionalName parameterTypeName(boolean multipart, com.sun.javadoc.Parameter parameter, com.sun.javadoc.Type paramType)
parameterTypeName in interface TranslatorTranslator.parameterTypeName(boolean, com.sun.javadoc.Parameter, com.sun.javadoc.Type)public Translator.OptionalName typeName(com.sun.javadoc.Type type)
typeName in interface TranslatorTranslator.typeName(com.sun.javadoc.Type)public Translator.OptionalName fieldName(com.sun.javadoc.FieldDoc field)
fieldName in interface TranslatorTranslator.fieldName(com.sun.javadoc.FieldDoc)public Translator.OptionalName methodName(com.sun.javadoc.MethodDoc method)
methodName in interface TranslatorTranslator.methodName(com.sun.javadoc.MethodDoc)Copyright © 2015. All rights reserved.