Annotation
with consistent ordering as well as a few useful utility methods.
| Modifier and Type | Field and Description |
|---|---|
| private final Class | |
| private final Method[] | |
| pack-priv static final Map | |
| private final boolean[] | |
| private final boolean | |
| private final boolean | |
| private static final Comparator | |
| pack-priv static final AttributeMethods |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| pack-priv boolean | Returns: true if all values are presentthe annotation to check annotation)Determine if values from the given annotation can be safely accessed without
causing any |
| pack-priv boolean | canThrowTypeNotPresentException(int
the index of the attribute to check index)Determine if the attribute at the specified index could throw a
|
| private static AttributeMethods | |
| pack-priv static String | |
| pack-priv static String | |
| pack-priv static AttributeMethods | Returns: the attribute methods for the annotation typethe annotation type annotationType)Get the attribute methods for the given annotation type. |
| pack-priv Method | |
| pack-priv Method | Returns: the attribute methodthe index of the attribute to return index)Get the attribute at the specified index. |
| pack-priv boolean | Returns: true if there is at least one attribute method with a default valueDetermine if at least one of the attribute methods has a default value. |
| pack-priv boolean | Returns: true if there is at least one attribute method with a nested
annotation typeDetermine if at least one of the attribute methods is a nested annotation. |
| pack-priv int | |
| pack-priv int | |
| private static boolean | |
| pack-priv int | |
| pack-priv void | validate(Annotation
the annotation to validate annotation)Check if values from the given annotation can be safely accessed without causing
any |
| annotationType | back to summary |
|---|---|
| private final Class<? extends Annotation> annotationType
| |
| attributeMethods | back to summary |
|---|---|
| private final Method[] attributeMethods | |
| cache | back to summary |
|---|---|
| pack-priv static final Map<Class<? extends Annotation>, AttributeMethods> cache | |
| canThrowTypeNotPresentException | back to summary |
|---|---|
| private final boolean[] canThrowTypeNotPresentException | |
| hasDefaultValueMethod | back to summary |
|---|---|
| private final boolean hasDefaultValueMethod | |
| hasNestedAnnotation | back to summary |
|---|---|
| private final boolean hasNestedAnnotation | |
| methodComparator | back to summary |
|---|---|
| private static final Comparator<Method> methodComparator | |
| NONE | back to summary |
|---|---|
| pack-priv static final AttributeMethods NONE | |
| AttributeMethods | back to summary |
|---|---|
| private AttributeMethods(Class<? extends Annotation> annotationType, Method[] attributeMethods) | |
| assertAnnotation | back to summary |
|---|---|
| private void assertAnnotation(Annotation annotation) | |
| canLoad | back to summary |
|---|---|
| pack-priv boolean canLoad(Annotation annotation) Determine if values from the given annotation can be safely accessed without
causing any This method is designed to cover Google App Engine's late arrival of such
exceptions for
| |
| canThrowTypeNotPresentException | back to summary |
|---|---|
| pack-priv boolean canThrowTypeNotPresentException(int index) Determine if the attribute at the specified index could throw a
| |
| compute | back to summary |
|---|---|
| private static AttributeMethods compute(Class<? extends Annotation> annotationType) | |
| describe | back to summary |
|---|---|
| pack-priv static String describe(Method attribute) Create a description for the given attribute method suitable to use in exception messages and logs. | |
| describe | back to summary |
|---|---|
| pack-priv static String describe(Class<?> annotationType, String attributeName) Create a description for the given attribute method suitable to use in exception messages and logs. | |
| forAnnotationType | back to summary |
|---|---|
| pack-priv static AttributeMethods forAnnotationType(Class<? extends Annotation> annotationType) Get the attribute methods for the given annotation type.
| |
| get | back to summary |
|---|---|
| pack-priv Method get(String name) Get the attribute with the specified name or | |
| get | back to summary |
|---|---|
| pack-priv Method get(int index) Get the attribute at the specified index.
| |
| hasDefaultValueMethod | back to summary |
|---|---|
| pack-priv boolean hasDefaultValueMethod() Determine if at least one of the attribute methods has a default value.
| |
| hasNestedAnnotation | back to summary |
|---|---|
| pack-priv boolean hasNestedAnnotation() Determine if at least one of the attribute methods is a nested annotation.
| |
| indexOf | back to summary |
|---|---|
| pack-priv int indexOf(String name) Get the index of the attribute with the specified name, or
| |
| indexOf | back to summary |
|---|---|
| pack-priv int indexOf(Method attribute) Get the index of the specified attribute, or
| |
| isAttributeMethod | back to summary |
|---|---|
| private static boolean isAttributeMethod(Method method) | |
| size | back to summary |
|---|---|
| pack-priv int size() Get the number of attributes in this collection.
| |
| validate | back to summary |
|---|---|
| pack-priv void validate(Annotation annotation) Check if values from the given annotation can be safely accessed without causing
any This method is designed to cover Google App Engine's late arrival of such
exceptions for
| |