| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final Function | |
| private static final Set | |
| public static final Function | |
| public static final Function | |
| public static final Pattern | |
| private static final Pattern | |
| private static final Pattern |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static <T> Function | |
| pack-priv static void | |
| public static String | |
| public static String | |
| pack-priv static void | |
| public static ClassKind | |
| public static ClassKind | getAnnotatedDataObjectDeserialisationType(Elements elementUtils, Types typeUtils, TypeElement dataObjectElt)
|
| public static TypeElement | Returns: the element type or null if none existsthe element elt)Return the element type of the specified element. |
| public static String | |
| public static String | |
| public static String | |
| public static Method | getReflectMethod(ProcessingEnvironment env, ExecutableElement modelMethod)
Like |
| public static Method | Returns: the method or null if not foundthe model method element modelMethod)Returns a |
| public static String | |
| public static String | |
| pack-priv static <T> Function | |
| public static boolean | |
| public static boolean | |
| private static AnnotationMirror | isFluent(DeclaredType annotationType, Elements elementUtils, Types typeUtils, TypeElement declaring, ExecutableElement method, TypeMirror type)
|
| public static boolean | Returns: Returntrue if the elt is annotated with @GenIgnore.the element to check elt)
|
| private static boolean | |
| private static boolean | |
| private static boolean | |
| public static String | Returns: the normalized property namethe property name propertyName)Normalize a property name:
|
| public static String | Returns: the normalized stringthe string to normalize s)Trim and normalize the whitespaces in a string: any cluster of more than one whitespace char is replaced by a space char, then the string is trimmed. |
| private static Predicate | Returns: the matcherthe parameter type names parameterSignature)Return a matcher for parameters, given the parameter type signature of an executable element. |
| public static String | |
| public static Set | Returns: the set of ancestorsthe type element to resolve typeElt, boolean withSuper, boolean withInterfaces)Resolve the set of all the ancestors declared types of a given type element. |
| private static void | resolveAncestorTypes(TypeElement typeElt, Set<DeclaredType> ancestors, boolean withSuper, boolean withInterfaces)
|
| public static AnnotationMirror | Returns: the annotation if resolved otherwise nullthe annotation type, annotationType, Elements element utils elementUtils, Types type utils typeUtils, TypeElement the element declaring the method declaring, ExecutableElement the method to start the resolution from method)Resolve a method annotation, this method scan the specified method, if the annotation is not found it will also scan the methods this method overrides and return the annotation when it is found. |
| public static AnnotationMirror | Returns: the annotation if resolved otherwise nullthe annotation type, annotationType, Elements element utils elementUtils, Types type utils typeUtils, TypeElement the element declaring the method declaring, ExecutableElement the method to start the resolution from method)Resolve a method annotation, this method scan the specified method, if the annotation is not found it will also scan the methods this method overrides and return the annotation when it is found. |
| public static Element | Returns: the resolved elementthe element utils elementUtils, Types the type utils typeUtils, TypeElement the declaring element, may be null declaringElt, String the signature to resolve signature)Resolves a documentation signature, null can be returned if no element can be resolved. |
| private static TypeElement | |
| public static TypeMirror | Returns: the type parameterizing the type parameterthe type utils typeUtils, DeclaredType the sub type for which the type parameter is parameterized subType, TypeParameterElement the type parameter to resolve typeParam)Return the type of a type parameter element of a given type element when that type parameter element is parameterized by a sub type, directly or indirectly. |
| public static <T> Type | Returns: the type parameterizing the type parameterthe sub type for which the type parameter is parameterized type, TypeVariable<Class<T>> the type parameter to resolve typeParam)Return the type of a type parameter element of a given type element when that type parameter element is parameterized by a sub type, directly or indirectly. |
| pack-priv static String | Returns: the string representationthe type mirror mirror)Compute the string representation of a type mirror. |
| pack-priv static void | toString(TypeMirror
the type mirror mirror, StringBuilder the buffer appended with the string representation buffer)Compute the string representation of a type mirror. |
| CAST | back to summary |
|---|---|
| pack-priv static final Function<Element, Stream<ExecutableElement>> CAST | |
| dataObjectTypes | back to summary |
|---|---|
| private static final Set<String> dataObjectTypes | |
| FILTER_FIELD | back to summary |
|---|---|
| public static final Function<Element, Stream<VariableElement>> FILTER_FIELD | |
| FILTER_METHOD | back to summary |
|---|---|
| public static final Function<Element, Stream<ExecutableElement>> FILTER_METHOD | |
| LINK_REFERENCE_PATTERN | back to summary |
|---|---|
| public static final Pattern LINK_REFERENCE_PATTERN | |
| SIGNATURE_PATTERN | back to summary |
|---|---|
| private static final Pattern SIGNATURE_PATTERN | |
| WHITESPACE_CLUSTER_PATTERN | back to summary |
|---|---|
| private static final Pattern WHITESPACE_CLUSTER_PATTERN | |
| Helper | back to summary |
|---|---|
| public Helper() | |
| cast | back to summary |
|---|---|
| pack-priv static <T> Function | |
| checkUnderModule | back to summary |
|---|---|
| pack-priv static void checkUnderModule(Model model, String annotation) | |
| convertCamelCaseToUnderscores | back to summary |
|---|---|
| public static String convertCamelCaseToUnderscores(String str) | |
| decapitaliseFirstLetter | back to summary |
|---|---|
| public static String decapitaliseFirstLetter(String str) | |
| ensureParentDir | back to summary |
|---|---|
| pack-priv static void ensureParentDir(File f) | |
| getAnnotatedDataObjectAnnotatedSerializationType | back to summary |
|---|---|
| public static ClassKind getAnnotatedDataObjectAnnotatedSerializationType(Elements elementUtils, TypeElement dataObjectElt) | |
| getAnnotatedDataObjectDeserialisationType | back to summary |
|---|---|
| public static ClassKind getAnnotatedDataObjectDeserialisationType(Elements elementUtils, Types typeUtils, TypeElement dataObjectElt) | |
| getElementTypeOf | back to summary |
|---|---|
| public static TypeElement getElementTypeOf(Element elt) Return the element type of the specified element.
| |
| getJavadocTag | back to summary |
|---|---|
| public static String getJavadocTag(String comment, String tagName) | |
| getNonGenericType | back to summary |
|---|---|
| public static String getNonGenericType(String type) | |
| getPackageName | back to summary |
|---|---|
| public static String getPackageName(String type) | |
| getReflectMethod | back to summary |
|---|---|
| public static Method getReflectMethod(ProcessingEnvironment env, ExecutableElement modelMethod) Like | |
| getReflectMethod | back to summary |
|---|---|
| public static Method getReflectMethod(ClassLoader loader, ExecutableElement modelMethod) Returns a
| |
| getSimpleName | back to summary |
|---|---|
| public static String getSimpleName(String type) | |
| indentString | back to summary |
|---|---|
| public static String indentString(String str, String indent) | |
| instanceOf | back to summary |
|---|---|
| pack-priv static <T> Function | |
| isAbstractClassOrInterface | back to summary |
|---|---|
| public static boolean isAbstractClassOrInterface(TypeElement element) | |
| isConcreteClass | back to summary |
|---|---|
| public static boolean isConcreteClass(TypeElement element) | |
| isFluent | back to summary |
|---|---|
| private static AnnotationMirror isFluent(DeclaredType annotationType, Elements elementUtils, Types typeUtils, TypeElement declaring, ExecutableElement method, TypeMirror type) | |
| isGenIgnore | back to summary |
|---|---|
public static boolean isGenIgnore(Element elt)
| |
| matchesConstructor | back to summary |
|---|---|
| private static boolean matchesConstructor(Element elt, String memberName, Predicate<ExecutableElement> parametersMatcher) | |
| matchesField | back to summary |
|---|---|
| private static boolean matchesField(Element elt, String memberName) | |
| matchesMethod | back to summary |
|---|---|
| private static boolean matchesMethod(Element elt, String memberName, Predicate<ExecutableElement> parametersMatcher) | |
| normalizePropertyName | back to summary |
|---|---|
| public static String normalizePropertyName(String propertyName) Normalize a property name:
| |
| normalizeWhitespaces | back to summary |
|---|---|
| public static String normalizeWhitespaces(String s) Trim and normalize the whitespaces in a string: any cluster of more than one whitespace char is replaced by a space char, then the string is trimmed. | |
| parametersMatcher | back to summary |
|---|---|
| private static Predicate Return a matcher for parameters, given the parameter type signature of an executable element. The parameter signature
is a list of parameter types formatted as a signature, i.e all types are raw, or primitive, or arrays. Unqualified
types are resolved against the import of the specified
| |
| removeTags | back to summary |
|---|---|
| public static String removeTags(String comment) | |
| resolveAncestorTypes | back to summary |
|---|---|
| public static Set Resolve the set of all the ancestors declared types of a given type element.
| |
| resolveAncestorTypes | back to summary |
|---|---|
| private static void resolveAncestorTypes(TypeElement typeElt, Set<DeclaredType> ancestors, boolean withSuper, boolean withInterfaces) | |
| resolveMethodAnnotation | back to summary |
|---|---|
| public static AnnotationMirror resolveMethodAnnotation(Class<? extends Annotation> annotationType, Elements elementUtils, Types typeUtils, TypeElement declaring, ExecutableElement method) Resolve a method annotation, this method scan the specified method, if the annotation is not found it will also scan the methods this method overrides and return the annotation when it is found.
| |
| resolveMethodAnnotation | back to summary |
|---|---|
| public static AnnotationMirror resolveMethodAnnotation(DeclaredType annotationType, Elements elementUtils, Types typeUtils, TypeElement declaring, ExecutableElement method) Resolve a method annotation, this method scan the specified method, if the annotation is not found it will also scan the methods this method overrides and return the annotation when it is found.
| |
| resolveSignature | back to summary |
|---|---|
| public static Element resolveSignature(Elements elementUtils, Types typeUtils, TypeElement declaringElt, String signature) Resolves a documentation signature, null can be returned if no element can be resolved.
| |
| resolveTypeElement | back to summary |
|---|---|
| private static TypeElement resolveTypeElement(Elements elementUtils, TypeElement declaringElt, String typeName) | |
| resolveTypeParameter | back to summary |
|---|---|
| public static TypeMirror resolveTypeParameter(Types typeUtils, DeclaredType subType, TypeParameterElement typeParam) Return the type of a type parameter element of a given type element when that type parameter element is parameterized by a sub type, directly or indirectly. When the type parameter cannot be resolved, null is returned.
| |
| resolveTypeParameter | back to summary |
|---|---|
| public static <T> Type resolveTypeParameter(Type type, TypeVariable<Class<T>> typeParam) Return the type of a type parameter element of a given type element when that type parameter element is parameterized by a sub type, directly or indirectly. When the type parameter cannot be resolve, null is returned.
| |
| toString | back to summary |
|---|---|
| pack-priv static String toString(TypeMirror mirror) Compute the string representation of a type mirror.
| |
| toString | back to summary |
|---|---|
| pack-priv static void toString(TypeMirror mirror, StringBuilder buffer) Compute the string representation of a type mirror.
| |