public class ParserHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ParserHelper.NumericTypeFilter |
static interface |
ParserHelper.TypeFilter |
| Modifier and Type | Field and Description |
|---|---|
static Set<String> |
JAXRS_PARAM_ANNOTATIONS
This is a set of the FQN of the various JAXRS parameter annotations
|
| Constructor and Description |
|---|
ParserHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Integer |
compareNumericValues(String context,
String type,
String format,
String value1,
String value2)
This verifies that the given numeric values are valid for the given data type and format and returns the comparison.
|
static String |
fieldParamNameOf(com.sun.javadoc.FieldDoc field,
Map<String,String> overrideParamNames,
List<String> paramNameAnnotations,
DocletOptions options)
Determines the string representation of the parameter name.
|
static com.sun.javadoc.ClassDoc |
findModel(Collection<com.sun.javadoc.ClassDoc> classes,
String qualifiedClassName)
This finds a model class by the given name
|
static String |
generateResourceFilename(String resourcePath)
This generates a file name to use for a resource with the given resource path.
|
static List<String> |
getAllowableValues(com.sun.javadoc.ClassDoc typeClassDoc)
This gets the allowable values from an enum class doc or null if the classdoc does not
represent an enum
|
static String |
getAnnotationOrTagValue(com.sun.javadoc.ProgramElementDoc item,
Collection<String> annotations,
Collection<String> matchTags,
DocletOptions options,
String... valueKeys)
This gets the first value on the given item (field or method) that matches either an annotation or a javadoc tag.
|
static List<String> |
getConsumes(com.sun.javadoc.MethodDoc methodDoc,
DocletOptions options)
This gets the list of consumes mime types from the given method
|
static com.sun.javadoc.Type |
getContainerType(com.sun.javadoc.Type type,
Map<String,com.sun.javadoc.Type> varsToTypes,
Collection<com.sun.javadoc.ClassDoc> classes)
This gets the type that a container holds
|
static List<String> |
getCsvParams(com.sun.javadoc.ExecutableMemberDoc method,
Set<String> params,
Collection<String> matchTags,
DocletOptions options)
This gets a list of parameter names from a method javadoc tag where the value of the tag is in the form
paramName1,paramName2 ...
|
static String |
getDefaultValue(com.sun.javadoc.Parameter param,
DocletOptions options)
This gets the default value of the given parameter
|
static String |
getInheritableClassLevelAnnotationValue(com.sun.javadoc.ClassDoc classDoc,
DocletOptions options,
String qualifiedAnnotationType,
String... keys)
This gets an annotation value from the given class, it supports looking at super classes
|
static String |
getInheritableCommentText(com.sun.javadoc.ExecutableMemberDoc methodDoc)
This gets the first sentence tags of a method or its overridden ancestor method
|
static String |
getInheritableFirstSentenceTags(com.sun.javadoc.ExecutableMemberDoc methodDoc)
This gets the first sentence tags of a method or its overridden ancestor method
|
static com.sun.javadoc.ClassDoc[] |
getInheritableJsonViews(com.sun.javadoc.MethodDoc methodDoc,
DocletOptions options)
This gets the json views for the given method, it supports deriving the views from an overridden method
|
static String |
getInheritableTagValue(com.sun.javadoc.ExecutableMemberDoc methodDoc,
Collection<String> matchTags,
DocletOptions options)
This gets the value of the first tag found from the given MethodDoc respecting the overriden methods
|
static List<String> |
getInheritableTagValues(com.sun.javadoc.ExecutableMemberDoc methodDoc,
Collection<String> matchTags,
DocletOptions options)
This gets values of any of the javadoc tags that are in the given collection from the method or overridden methods
|
static com.sun.javadoc.ClassDoc[] |
getJsonViews(com.sun.javadoc.ProgramElementDoc doc,
DocletOptions options)
This gets the json views for the given method/field
|
static Set<String> |
getMatchingParams(com.sun.javadoc.ExecutableMemberDoc method,
Set<String> params,
Collection<String> javadocTags,
Collection<String> annotations,
DocletOptions options)
This gets params of the given method that have either any of the matching javadoc tags or annotations
|
static Map<String,List<String>> |
getMethodParamNameValueLists(com.sun.javadoc.ExecutableMemberDoc method,
Set<String> params,
Collection<String> matchTags,
DocletOptions options)
This gets a map of parameter name to list of values from a javadoc tag on a method.
|
static Map<String,String> |
getMethodParamNameValuePairs(com.sun.javadoc.ExecutableMemberDoc method,
Set<String> params,
Collection<String> matchTags,
DocletOptions options)
This gets a map of parameter name to value from a javadoc tag on a method.
|
static List<com.sun.javadoc.Type> |
getParameterizedTypes(com.sun.javadoc.Type type,
Map<String,com.sun.javadoc.Type> varsToTypes)
This gets parameterized types of the given type substituting variable types if necessary
|
static Map<String,String> |
getParameterValues(com.sun.javadoc.ExecutableMemberDoc method,
Set<String> params,
Collection<String> matchTags,
Collection<String> annotations,
ParserHelper.TypeFilter annotationTypes,
DocletOptions options,
String... valueKeys)
This gets the values of parameters from either javadoc tags or annotations
|
static Map<String,String> |
getParameterValuesWithAnnotation(com.sun.javadoc.ExecutableMemberDoc methodDoc,
Collection<String> annotations,
ParserHelper.TypeFilter annotationTypes,
DocletOptions options,
String... valueKeys)
This gets the values of annotations of parameters that have any of the given annotations on them
|
static com.sun.javadoc.Parameter |
getParameterWithAnnotations(com.sun.javadoc.ExecutableMemberDoc methodDoc,
int paramIndex)
This gets the first met parameter with annotations from the method overriding hierarchy
|
static Set<String> |
getParamNames(com.sun.javadoc.ExecutableMemberDoc method)
This gets the parameter names for the given method
|
static List<String> |
getProduces(com.sun.javadoc.MethodDoc methodDoc,
DocletOptions options)
This gets the list of produces mime types from the given method
|
static String |
getQualifiedTypeName(com.sun.javadoc.Type type)
This gets the qualified type name of a javadoc type,
It adds [] onto any array types
|
static List<String> |
getTagCsvValues(com.sun.javadoc.ExecutableMemberDoc item,
Collection<String> matchTags,
DocletOptions options)
This gets a csv javadoc tag value as a list of the values in the csv for the first matched tag.
|
static String |
getTagValue(com.sun.javadoc.ProgramElementDoc item,
Collection<String> matchTags,
DocletOptions options)
This gets the value of the first tag found from the given collection of tag names
|
static List<String> |
getTagValues(com.sun.javadoc.ProgramElementDoc item,
Collection<String> matchTags,
DocletOptions options)
This gets values of any of the javadoc tags that are in the given collection
|
static com.sun.javadoc.Type |
getVarType(com.sun.javadoc.TypeVariable var,
Map<String,com.sun.javadoc.Type> varsToTypes)
This finds a variable type and returns its impl from the given map
|
static boolean |
hasAncestor(com.sun.javadoc.ClassDoc classDoc)
This gets whether a class doc has an ancestor class that can be processed, e.g.
|
static boolean |
hasAnnotation(com.sun.javadoc.Parameter item,
Collection<String> annotations,
DocletOptions options)
This gets whether the given parameter has one of the given annotations
|
static boolean |
hasAnnotation(com.sun.javadoc.ProgramElementDoc item,
Collection<String> annotations,
DocletOptions options)
This gets whether the given item has one of the given annotations
|
static boolean |
hasAnnotationWithPrefix(com.sun.javadoc.Parameter item,
Collection<String> prefixes,
DocletOptions options)
This gets whether the given parameter has an annotation whose FQN begins with one of the given prefixes
|
static boolean |
hasInheritableAnnotation(com.sun.javadoc.MethodDoc methodDoc,
Collection<String> annotations,
DocletOptions options)
This gets whether the given method or an overridden method has any of the given annotations
|
static boolean |
hasInheritableTag(com.sun.javadoc.ExecutableMemberDoc methodDoc,
Collection<String> matchTags)
This gets whether the given method or an overridden method has any of the given tags
|
static boolean |
hasJaxRsAnnotation(com.sun.javadoc.Parameter item,
DocletOptions options)
This gets whether the given parameter has a JAXRS annotation
|
static boolean |
hasJsonViews(com.sun.javadoc.ProgramElementDoc doc,
DocletOptions options)
This gets whether the given method/field has a json view on it
|
static boolean |
hasTag(com.sun.javadoc.ProgramElementDoc item,
Collection<String> matchTags)
This gets whether the given item has any of the given tags
|
static boolean |
isArray(String javaType)
This gets whether the given type is an Array
|
static boolean |
isArray(com.sun.javadoc.Type type)
This gets whether the given type is an Array
|
static boolean |
isAssignableFrom(com.sun.javadoc.ClassDoc[] superClasses,
com.sun.javadoc.ClassDoc clazz)
This checks if the given clazz is the same as or implments or is a subclass/sub interface of
any of the given classes
|
static boolean |
isCollection(String javaType)
This gets whether the given type is a Collection
|
static boolean |
isDeprecated(com.sun.javadoc.Parameter parameter,
DocletOptions options)
This gets whether the given parameter is marked as deprecated either via a javadoc tag
or an annotation
|
static boolean |
isDeprecated(com.sun.javadoc.ProgramElementDoc item,
DocletOptions options)
This gets whether the given item is marked as deprecated either via a javadoc tag
or an annotation
|
static boolean |
isFileParameterDataType(com.sun.javadoc.Parameter parameter,
DocletOptions options)
This gets whether the given parameter is a File data type
|
static boolean |
isInheritableDeprecated(com.sun.javadoc.MethodDoc item,
DocletOptions options)
This gets whether the given item is marked as deprecated either via a javadoc tag
or an annotation, this supports looking at overridden methods
|
static boolean |
isItemPartOfView(com.sun.javadoc.ClassDoc[] operationViews,
com.sun.javadoc.ClassDoc[] itemsViews)
This checks if an item view e.g optional json view that can be on a getter/field match any of the
given operation views, that is it can be the same or extend/implement one of the operation views.
|
static boolean |
isMap(String javaType)
This gets whether the given type is a Map
|
static boolean |
isNumber(com.sun.javadoc.Type type,
DocletOptions options)
This gets whether the given type is primitive
|
static boolean |
isPrimitive(String type,
DocletOptions options)
This gets whether the given type is primitive
|
static boolean |
isPrimitive(com.sun.javadoc.Type type,
DocletOptions options)
This gets whether the given type is primitive
|
static boolean |
isSet(String javaType)
This gets whether the given type is a Set
|
static List<String> |
listInheritableValues(com.sun.javadoc.ExecutableMemberDoc methodDoc,
String qualifiedAnnotationType,
String annotationValueName,
DocletOptions options)
This gets a list of values from an annotation that uses a string array value, it supports getting it from a superclass method
|
static List<String> |
listValues(com.sun.javadoc.ProgramElementDoc doc,
String qualifiedAnnotationType,
String annotationValueName,
DocletOptions options)
This gets a list of values from an annotation that uses a string array value
|
static com.sun.javadoc.ClassDoc |
lookUpClassDoc(com.sun.javadoc.Type type,
Collection<com.sun.javadoc.ClassDoc> classes)
This looks up a class doc with the given type from the given collection of classes
|
static String |
paramNameOf(com.sun.javadoc.Parameter parameter,
Map<String,String> overrideParamNames,
List<String> paramNameAnnotations,
DocletOptions options)
Determines the string representation of the parameter name.
|
static String |
paramTypeOf(boolean returnDefault,
boolean multipart,
com.sun.javadoc.ProgramElementDoc paramMember,
com.sun.javadoc.Type type,
DocletOptions options)
Determines the string representation of the parameter type for composite types.
|
static String |
paramTypeOf(boolean multipart,
com.sun.javadoc.Parameter parameter,
DocletOptions options)
Determines the string representation of the parameter type.
|
static String |
parsePath(com.sun.javadoc.ProgramElementDoc doc,
DocletOptions options)
This parses the path from the annotations of a method or class
|
static Map<String,com.sun.javadoc.Type> |
readSeeTypes(com.sun.javadoc.ProgramElementDoc item)
This builds a map of FQN to type for all see annotations
on the given items javadoc
|
static HttpMethod |
resolveMethodHttpMethod(com.sun.javadoc.MethodDoc methodDoc)
Resolves HttpMethod for the MethodDoc respecting the overriden methods
|
static String |
resolveMethodPath(com.sun.javadoc.MethodDoc methodDoc,
DocletOptions options)
Resolves tha @Path for the MethodDoc respecting the overriden methods
|
static String |
sanitizePath(String apiPath)
This sanitizes an API path.
|
static String |
trimLeadingChars(String str,
char... trimChars)
This trims specific characters from the start of the given string
|
static String[] |
typeOf(String javaType,
DocletOptions options)
Determines the String representation of the given FQN.
|
static String[] |
typeOf(com.sun.javadoc.Type type,
DocletOptions options)
Determines the String representation of the object Type.
|
static Number |
verifyNumericValue(String context,
String type,
String format,
String value)
This verifies that the given value is valid for the given data type and format for use as a numeric value
which means it must be integer or number type.
|
static void |
verifyValue(String context,
String type,
String format,
String value)
This verifies that the given value is valid for the given data type and format.
|
public static com.sun.javadoc.ClassDoc lookUpClassDoc(com.sun.javadoc.Type type,
Collection<com.sun.javadoc.ClassDoc> classes)
type - The type to find the class doc forclasses - The collection of classes to look inpublic static List<String> getAllowableValues(com.sun.javadoc.ClassDoc typeClassDoc)
typeClassDoc - the class doc of the enum class to get the allowable values ofpublic static boolean hasAncestor(com.sun.javadoc.ClassDoc classDoc)
classDoc - The class docpublic static String getInheritableClassLevelAnnotationValue(com.sun.javadoc.ClassDoc classDoc, DocletOptions options, String qualifiedAnnotationType, String... keys)
classDoc - The class to look for the annotationoptions - The doclet optionsqualifiedAnnotationType - The FQN of the annotation to look forkeys - The keys for the annotation valuespublic static String getDefaultValue(com.sun.javadoc.Parameter param, DocletOptions options)
param - The parameteroptions - The doclet optionspublic static String parsePath(com.sun.javadoc.ProgramElementDoc doc, DocletOptions options)
doc - The method or classoptions - The doclet optionspublic static Integer compareNumericValues(String context, String type, String format, String value1, String value2)
context - Additional description for contextualizing the error messagetype - The data type as per json schemaformat - The data formatvalue1 - The first value to checkvalue2 - The 2nd value to checkIllegalStateException - if the value is invalid.public static Number verifyNumericValue(String context, String type, String format, String value)
context - Additional description for contextualizing the error messagetype - The data type as per json schemaformat - The data formatvalue - The value to checkIllegalStateException - if the value is invalid.public static void verifyValue(String context, String type, String format, String value)
context - Additional description for contextualizing the error messagetype - The data type as per json schemaformat - The data formatvalue - The value to checkIllegalStateException - if the value is invalid.public static String getQualifiedTypeName(com.sun.javadoc.Type type)
type - The typepublic static String[] typeOf(String javaType, DocletOptions options)
javaType - The java type to get the swagger type and format ofoptions - The doclet optionspublic static String[] typeOf(com.sun.javadoc.Type type, DocletOptions options)
type - The java type to get the swagger type and format ofoptions - The doclet optionspublic static List<com.sun.javadoc.Type> getParameterizedTypes(com.sun.javadoc.Type type, Map<String,com.sun.javadoc.Type> varsToTypes)
type - The raw type such as BatchvarsToTypes - A map of variable name to typespublic static com.sun.javadoc.Type getContainerType(com.sun.javadoc.Type type,
Map<String,com.sun.javadoc.Type> varsToTypes,
Collection<com.sun.javadoc.ClassDoc> classes)
type - The raw type like CollectionvarsToTypes - A map of variables to types for parameterized types, optional if null parameterized types
will not be handledclasses - set of classespublic static com.sun.javadoc.Type getVarType(com.sun.javadoc.TypeVariable var,
Map<String,com.sun.javadoc.Type> varsToTypes)
var - The variable type to findvarsToTypes - The map of variables to typespublic static boolean isSet(String javaType)
javaType - The java typepublic static boolean isArray(com.sun.javadoc.Type type)
type - The typepublic static boolean isArray(String javaType)
javaType - The java typepublic static boolean isCollection(String javaType)
javaType - The java typepublic static boolean isMap(String javaType)
javaType - The java typepublic static boolean isFileParameterDataType(com.sun.javadoc.Parameter parameter,
DocletOptions options)
parameter - The parameteroptions - The doclet optionspublic static String paramTypeOf(boolean returnDefault, boolean multipart, com.sun.javadoc.ProgramElementDoc paramMember, com.sun.javadoc.Type type, DocletOptions options)
returnDefault - Whether to return a default value if there is no specific jaxrs param annotationmultipart - Whether the method the parameter is for consumes multipartparamMember - The field or method that is the parametertype - The type of the parameteroptions - The doclet optionspublic static String paramTypeOf(boolean multipart, com.sun.javadoc.Parameter parameter, DocletOptions options)
multipart - Whether the method the parameter is for consumes multipartparameter - The parameter to get the type ofoptions - The doclet optionspublic static String paramNameOf(com.sun.javadoc.Parameter parameter, Map<String,String> overrideParamNames, List<String> paramNameAnnotations, DocletOptions options)
parameter - The parameter to get the name of that is used for the apioverrideParamNames - A map of rawname to override names for parametersparamNameAnnotations - List of FQN of annotations that can be used for the parameter nameoptions - The doclet optionspublic static String fieldParamNameOf(com.sun.javadoc.FieldDoc field, Map<String,String> overrideParamNames, List<String> paramNameAnnotations, DocletOptions options)
field - The parameter field to get the name of that is used for the apioverrideParamNames - A map of rawname to override names for parametersparamNameAnnotations - List of FQN of annotations that can be used for the parameter nameoptions - The doclet optionspublic static com.sun.javadoc.ClassDoc[] getInheritableJsonViews(com.sun.javadoc.MethodDoc methodDoc,
DocletOptions options)
methodDoc - The method to get the json views ofoptions - The doclet optionspublic static com.sun.javadoc.ClassDoc[] getJsonViews(com.sun.javadoc.ProgramElementDoc doc,
DocletOptions options)
doc - The method/field to get the json views ofoptions - The doclet optionspublic static boolean hasJsonViews(com.sun.javadoc.ProgramElementDoc doc,
DocletOptions options)
doc - The method/field to checkoptions - The doclet optionspublic static boolean isItemPartOfView(com.sun.javadoc.ClassDoc[] operationViews,
com.sun.javadoc.ClassDoc[] itemsViews)
operationViews - The operation views that indicate which views apply to the operation.itemsViews - The views that are on the getter/fieldpublic static boolean isAssignableFrom(com.sun.javadoc.ClassDoc[] superClasses,
com.sun.javadoc.ClassDoc clazz)
superClasses - the classes to check if they are super classes/super interfaces of the given classclazz - The class to check if it extends/implements any of the given classespublic static List<String> getConsumes(com.sun.javadoc.MethodDoc methodDoc, DocletOptions options)
methodDoc - The method javadocoptions - The doclet optionspublic static List<String> getProduces(com.sun.javadoc.MethodDoc methodDoc, DocletOptions options)
methodDoc - The method javadocoptions - The doclet optionspublic static List<String> listInheritableValues(com.sun.javadoc.ExecutableMemberDoc methodDoc, String qualifiedAnnotationType, String annotationValueName, DocletOptions options)
methodDoc - The method docqualifiedAnnotationType - The FQN of the annotationannotationValueName - The name of the value field of the annotation to useoptions - The doclet optionspublic static List<String> listValues(com.sun.javadoc.ProgramElementDoc doc, String qualifiedAnnotationType, String annotationValueName, DocletOptions options)
doc - The method/field docqualifiedAnnotationType - The FQN of the annotationannotationValueName - The name of the value field of the annotation to useoptions - The doclet optionspublic static boolean isPrimitive(String type, DocletOptions options)
type - The type to checkoptions - The doclet optionspublic static boolean isPrimitive(com.sun.javadoc.Type type,
DocletOptions options)
type - The type to checkoptions - The doclet optionspublic static boolean isNumber(com.sun.javadoc.Type type,
DocletOptions options)
type - The type to checkoptions - The doclet optionspublic static boolean hasInheritableTag(com.sun.javadoc.ExecutableMemberDoc methodDoc,
Collection<String> matchTags)
methodDoc - The method doc to get the tag value ofmatchTags - The names of the tags to look forpublic static boolean hasTag(com.sun.javadoc.ProgramElementDoc item,
Collection<String> matchTags)
item - The javadoc itemmatchTags - The names of the tags to look forpublic static Set<String> getParamNames(com.sun.javadoc.ExecutableMemberDoc method)
method - The methodpublic static Set<String> getMatchingParams(com.sun.javadoc.ExecutableMemberDoc method, Set<String> params, Collection<String> javadocTags, Collection<String> annotations, DocletOptions options)
method - The methodparams - The pre-read params of the method, if null they will be read from the given methodjavadocTags - Csv javadoc tags to look atannotations - Annotations to look atoptions - The doclet optionspublic static com.sun.javadoc.Parameter getParameterWithAnnotations(com.sun.javadoc.ExecutableMemberDoc methodDoc,
int paramIndex)
methodDoc - The methodparamIndex - Parameter indexpublic static Map<String,String> getParameterValues(com.sun.javadoc.ExecutableMemberDoc method, Set<String> params, Collection<String> matchTags, Collection<String> annotations, ParserHelper.TypeFilter annotationTypes, DocletOptions options, String... valueKeys)
method - The methodparams - The pre-read params of the method, if null they will be read from the given methodmatchTags - The names of the javadoc tags to look forannotations - The annotations to look forannotationTypes - The types that the annotations should apply tooptions - The doclet options (used for var replacement)valueKeys - The attribute names to look for on the annotations as the valuepublic static Map<String,String> getParameterValuesWithAnnotation(com.sun.javadoc.ExecutableMemberDoc methodDoc, Collection<String> annotations, ParserHelper.TypeFilter annotationTypes, DocletOptions options, String... valueKeys)
methodDoc - The methodannotations - The annotations to look forannotationTypes - The types that the annotations should apply tooptions - The doclet options (used for var replacement)valueKeys - The attribute names to look for on the annotations as the valuepublic static Map<String,String> getMethodParamNameValuePairs(com.sun.javadoc.ExecutableMemberDoc method, Set<String> params, Collection<String> matchTags, DocletOptions options)
method - The methodparams - The pre-read params of the method, if null they will be read from the given methodmatchTags - The names of the javadoc tags to look foroptions - The doclet optionspublic static Map<String,List<String>> getMethodParamNameValueLists(com.sun.javadoc.ExecutableMemberDoc method, Set<String> params, Collection<String> matchTags, DocletOptions options)
method - The methodparams - The pre-read params of the method, if null they will be read from the given methodmatchTags - The names of the javadoc tags to look foroptions - The doclet optionspublic static List<String> getCsvParams(com.sun.javadoc.ExecutableMemberDoc method, Set<String> params, Collection<String> matchTags, DocletOptions options)
method - The methodparams - The pre-read params of the method, if null they will be read from the given methodmatchTags - The names of the javadoc tags to look foroptions - The doclet optionspublic static List<String> getTagCsvValues(com.sun.javadoc.ExecutableMemberDoc item, Collection<String> matchTags, DocletOptions options)
item - The javadoc itemmatchTags - The tags to matchoptions - The doclet optionspublic static String getAnnotationOrTagValue(com.sun.javadoc.ProgramElementDoc item, Collection<String> annotations, Collection<String> matchTags, DocletOptions options, String... valueKeys)
item - The javadoc itemannotations - The FQN of the annotations to checkmatchTags - The collection of tag names of the tag to get a value ofoptions - The doclet optionsvalueKeys - The names of the attributes of the annotations to look atpublic static HttpMethod resolveMethodHttpMethod(com.sun.javadoc.MethodDoc methodDoc)
methodDoc - The method to be processedpublic static String resolveMethodPath(com.sun.javadoc.MethodDoc methodDoc, DocletOptions options)
methodDoc - The method to be processedoptions - Doclet optionspublic static String getInheritableFirstSentenceTags(com.sun.javadoc.ExecutableMemberDoc methodDoc)
methodDoc - The methodpublic static String getInheritableCommentText(com.sun.javadoc.ExecutableMemberDoc methodDoc)
methodDoc - The methodpublic static List<String> getInheritableTagValues(com.sun.javadoc.ExecutableMemberDoc methodDoc, Collection<String> matchTags, DocletOptions options)
methodDoc - The javadoc method to get the tags ofmatchTags - The names of the tags to getoptions - The doclet optionspublic static List<String> getTagValues(com.sun.javadoc.ProgramElementDoc item, Collection<String> matchTags, DocletOptions options)
item - The javadoc item to get the tags ofmatchTags - The names of the tags to getoptions - The doclet optionspublic static String getInheritableTagValue(com.sun.javadoc.ExecutableMemberDoc methodDoc, Collection<String> matchTags, DocletOptions options)
methodDoc - The method doc to get the tag value ofmatchTags - The collection of tag names of the tag to get a value ofoptions - The doclet optionspublic static String getTagValue(com.sun.javadoc.ProgramElementDoc item, Collection<String> matchTags, DocletOptions options)
item - The item to get the tag value ofmatchTags - The collection of tag names of the tag to get a value ofoptions - The doclet optionspublic static boolean hasInheritableAnnotation(com.sun.javadoc.MethodDoc methodDoc,
Collection<String> annotations,
DocletOptions options)
methodDoc - The method doc to checkannotations - the annotations to checkoptions - The doclet optionspublic static boolean hasAnnotation(com.sun.javadoc.ProgramElementDoc item,
Collection<String> annotations,
DocletOptions options)
item - The field/method to checkannotations - the annotations to checkoptions - The doclet optionspublic static boolean hasAnnotation(com.sun.javadoc.Parameter item,
Collection<String> annotations,
DocletOptions options)
item - The field/method to checkannotations - the annotations to checkoptions - The doclet optionspublic static boolean hasAnnotationWithPrefix(com.sun.javadoc.Parameter item,
Collection<String> prefixes,
DocletOptions options)
item - The field/method to checkprefixes - the prefixes to check foroptions - The doclet optionspublic static boolean hasJaxRsAnnotation(com.sun.javadoc.Parameter item,
DocletOptions options)
item - The parameteroptions - The doclet optionspublic static boolean isInheritableDeprecated(com.sun.javadoc.MethodDoc item,
DocletOptions options)
item - The item to checkoptions - The doclet optionspublic static boolean isDeprecated(com.sun.javadoc.ProgramElementDoc item,
DocletOptions options)
item - The item to checkoptions - The doclet optionspublic static boolean isDeprecated(com.sun.javadoc.Parameter parameter,
DocletOptions options)
parameter - The parameter to checkoptions - The doclet optionspublic static Map<String,com.sun.javadoc.Type> readSeeTypes(com.sun.javadoc.ProgramElementDoc item)
item - The item to get the see types ofpublic static com.sun.javadoc.ClassDoc findModel(Collection<com.sun.javadoc.ClassDoc> classes, String qualifiedClassName)
classes - The model classesqualifiedClassName - The FQN of the classClassDoc found among all classes processed by the doclet based on a given qualifiedClassName; null if not foundpublic static String generateResourceFilename(String resourcePath)
resourcePath - The path to sanitizepublic static String sanitizePath(String apiPath)
apiPath - The api path to sanitizepublic static String trimLeadingChars(String str, char... trimChars)
str - The string to trimtrimChars - The characters to trim from the stringCopyright © 2015. All rights reserved.