The "dynamic proxy return form" of an annotation element value is the form used by sun.reflect.annotation.AnnotationInvocationHandler.
This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
Modifier and Type | Class and Description |
---|---|
private static class | AnnotationProxyMaker.
ExceptionProxy for MirroredTypeException. |
private static class | AnnotationProxyMaker.
ExceptionProxy for MirroredTypesException. |
private class |
Modifier and Type | Field and Description |
---|---|
private final Attribute. | |
private final Class |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public static <A extends Annotation> A | generateAnnotation(Attribute.
Returns a dynamic proxy for an annotation mirror. |
private Annotation | |
private Object | generateValue(Symbol.
Converts an element value to its "dynamic proxy return form". |
private Map | getAllReflectedValues()
Returns a map from element names to their values in "dynamic proxy return form". |
private Map |
anno | back to summary |
---|---|
private final Attribute. |
annoType | back to summary |
---|---|
private final Class<? extends Annotation> annoType |
AnnotationProxyMaker | back to summary |
---|---|
private AnnotationProxyMaker(Attribute. |
generateAnnotation | back to summary |
---|---|
public static <A extends Annotation> A generateAnnotation(Attribute. Returns a dynamic proxy for an annotation mirror. |
generateAnnotation | back to summary |
---|---|
private Annotation generateAnnotation() Returns a dynamic proxy for an annotation mirror. |
generateValue | back to summary |
---|---|
private Object generateValue(Symbol. Converts an element value to its "dynamic proxy return form". Returns an exception proxy on some errors, but may return null if a useful exception cannot or should not be generated at this point. |
getAllReflectedValues | back to summary |
---|---|
private Map Returns a map from element names to their values in "dynamic proxy return form". Includes all elements, whether explicit or defaulted. |
getAllValues | back to summary |
---|---|
private Map Returns a map from element symbols to their values. Includes all elements, whether explicit or defaulted. |
Modifier and Type | Field and Description |
---|---|
pack-priv static final long | |
private transient TypeMirror | |
private final String |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
protected RuntimeException | |
public int | |
private void | |
public String |
serialVersionUID | back to summary |
---|---|
pack-priv static final long serialVersionUID Hides sun. |
type | back to summary |
---|---|
private transient TypeMirror type |
typeString | back to summary |
---|---|
private final String typeString |
MirroredTypeExceptionProxy | back to summary |
---|---|
pack-priv MirroredTypeExceptionProxy(TypeMirror t) |
equals | back to summary |
---|---|
public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
|
generateException | back to summary |
---|---|
protected RuntimeException generateException() Implements abstract sun. |
hashCode | back to summary |
---|---|
public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
|
readObject | back to summary |
---|---|
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException |
toString | back to summary |
---|---|
public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
|
Modifier and Type | Field and Description |
---|---|
pack-priv static final long | |
private transient List | |
private final String |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
protected RuntimeException | |
public int | |
private void | |
public String |
serialVersionUID | back to summary |
---|---|
pack-priv static final long serialVersionUID Hides sun. |
types | back to summary |
---|---|
private transient List<TypeMirror> types |
typeStrings | back to summary |
---|---|
private final String typeStrings |
MirroredTypesExceptionProxy | back to summary |
---|---|
pack-priv MirroredTypesExceptionProxy(List<TypeMirror> ts) |
equals | back to summary |
---|---|
public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
|
generateException | back to summary |
---|---|
protected RuntimeException generateException() Implements abstract sun. |
hashCode | back to summary |
---|---|
public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
|
readObject | back to summary |
---|---|
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException |
toString | back to summary |
---|---|
public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
|
Modifier and Type | Field and Description |
---|---|
private Symbol. | |
private Class | |
private Object |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
pack-priv Object | |
private void | typeMismatch(Method method, final Attribute attr)
Sets "value" to an ExceptionProxy indicating a type mismatch. |
public void | |
public void | |
public void | |
public void | |
public void | |
public void |
meth | back to summary |
---|---|
private Symbol. |
returnClass | back to summary |
---|---|
private Class<?> returnClass |
value | back to summary |
---|---|
private Object value |
ValueVisitor | back to summary |
---|---|
pack-priv ValueVisitor(Symbol. |
getValue | back to summary |
---|---|
pack-priv Object getValue(Attribute attr) |
typeMismatch | back to summary |
---|---|
private void typeMismatch(Method method, final Attribute attr) Sets "value" to an ExceptionProxy indicating a type mismatch. |
visitArray | back to summary |
---|---|
public void visitArray(Attribute. Implements com. |
visitClass | back to summary |
---|---|
public void visitClass(Attribute. Implements com. |
visitCompound | back to summary |
---|---|
public void visitCompound(Attribute. Implements com. |
visitConstant | back to summary |
---|---|
public void visitConstant(Attribute. Implements com. |
visitEnum | back to summary |
---|---|
public void visitEnum(Attribute. Implements com.
|
visitError | back to summary |
---|---|
public void visitError(Attribute. Implements com. |