| Modifier and Type | Field and Description |
|---|---|
| private final Class | annotation
The annotation that we are writing. |
| private Map | arrays
Keeps track of writers for array members. |
| private final JAnnotationUse | use
This is what we are writing to. |
| private final Class | writerType
The type of the writer. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private Object | |
| private void | |
| pack-priv static <W extends JAnnotationWriter | |
| private W | |
| private static Class | |
| public Class | getAnnotationType()
Implements com. The type of the annotation that this writer is writing. |
| public JAnnotationUse | getAnnotationUse()
Implements com. Gets the underlying annotation use object to which we are writing. |
| private static Method | |
| public Object | invoke(Object proxy, Method method, Object[] args)
Implements java. Processes a method invocation on a proxy instance and returns the result. |
| annotation | back to summary |
|---|---|
| private final Class<A> annotation The annotation that we are writing. | |
| arrays | back to summary |
|---|---|
| private Map<String, JAnnotationArrayMember> arrays Keeps track of writers for array members. Lazily created. | |
| use | back to summary |
|---|---|
| private final JAnnotationUse use This is what we are writing to. | |
| writerType | back to summary |
|---|---|
| private final Class<W> writerType The type of the writer. | |
| TypedAnnotationWriter | back to summary |
|---|---|
| public TypedAnnotationWriter(Class<A> annotation, Class<W> writer, JAnnotationUse use) | |
| addArrayValue | back to summary |
|---|---|
private Object addArrayValue(Object proxy, String name, Class<?> itemType, Class<?> expectedReturnType, Object arg)
| |
| checkType | back to summary |
|---|---|
| private void checkType(Class<?> actual, Class<?> expected) Check if the type of the argument matches our expectation. If not, report an error. | |
| create | back to summary |
|---|---|
| pack-priv static <W extends JAnnotationWriter Creates a new typed annotation writer.
| |
| createProxy | back to summary |
|---|---|
| private W createProxy() Creates a proxy and returns it.
| |
| findAnnotationType | back to summary |
|---|---|
private static Class
| |
| getAnnotationType | back to summary |
|---|---|
| public Class Implements com. Doc from com. The type of the annotation that this writer is writing.
| |
| getAnnotationUse | back to summary |
|---|---|
| public JAnnotationUse getAnnotationUse() Implements com. Doc from com. Gets the underlying annotation use object to which we are writing.
| |
| getOverriddenJAnnotationWriterMethod | back to summary |
|---|---|
| private static Method getOverriddenJAnnotationWriterMethod(Method method) | |
| invoke | back to summary |
|---|---|
| public Object invoke(Object proxy, Method method, Object[] args) throws Throwable Implements java. Doc from java. Processes a method invocation on a proxy instance and returns the result. This method will be invoked on an invocation handler when a method is invoked on a proxy instance that it is associated with.
| |