A reference is a Java type (represented as a javax.)
and a set of annotations (represented as a javax.).
Together they describe a root reference to a JAXB type binding.
Those two values can be supplied independently, or you can use other convenience constructors to supply two values at once.
| Modifier and Type | Field and Description |
|---|---|
| public final Element | annotations
The declaration from which annotations for the |
| public final TypeMirror | type
The JAXB type being referenced. |
| Access | Constructor and Description |
|---|---|
| public | Reference(ExecutableElement method)
Creates a reference from the return type of the method and annotations on the method. |
| public | Reference(VariableElement param)
Creates a reference from the parameter type and annotations on the parameter. |
| public | Reference(TypeElement type, ProcessingEnvironment env)
Creates a reference from a class declaration and its annotations. |
| public | Reference(TypeMirror type, Element annotations)
Creates a reference by providing two values independently. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public int |
| annotations | back to summary |
|---|---|
| public final Element annotations The declaration from which annotations for the | |
| type | back to summary |
|---|---|
| public final TypeMirror type The JAXB type being referenced. Must not be null. | |
| Reference | back to summary |
|---|---|
| public Reference(ExecutableElement method) Creates a reference from the return type of the method and annotations on the method. | |
| Reference | back to summary |
|---|---|
| public Reference(VariableElement param) Creates a reference from the parameter type and annotations on the parameter. | |
| Reference | back to summary |
|---|---|
| public Reference(TypeElement type, ProcessingEnvironment env) Creates a reference from a class declaration and its annotations. | |
| Reference | back to summary |
|---|---|
| public Reference(TypeMirror type, Element annotations) Creates a reference by providing two values independently. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) 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.
| |
| 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
| |