public final class Reference
extends java.lang.Object
A reference is a Java type (represented as a TypeMirror)
and a set of annotations (represented as a Element).
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 | Description |
|---|---|---|
javax.lang.model.element.Element |
annotations |
The declaration from which annotations for the
type is read. |
javax.lang.model.type.TypeMirror |
type |
The JAXB type being referenced.
|
| Constructor | Description |
|---|---|
Reference(javax.lang.model.element.ExecutableElement method) |
Creates a reference from the return type of the method
and annotations on the method.
|
Reference(javax.lang.model.element.TypeElement type,
javax.annotation.processing.ProcessingEnvironment env) |
Creates a reference from a class declaration and its annotations.
|
Reference(javax.lang.model.element.VariableElement param) |
Creates a reference from the parameter type
and annotations on the parameter.
|
Reference(javax.lang.model.type.TypeMirror type,
javax.lang.model.element.Element annotations) |
Creates a reference by providing two values independently.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object o) |
|
int |
hashCode() |
public final javax.lang.model.type.TypeMirror type
public final javax.lang.model.element.Element annotations
type is read.
Must not be null.public Reference(javax.lang.model.element.ExecutableElement method)
public Reference(javax.lang.model.element.VariableElement param)
public Reference(javax.lang.model.element.TypeElement type,
javax.annotation.processing.ProcessingEnvironment env)
public Reference(javax.lang.model.type.TypeMirror type,
javax.lang.model.element.Element annotations)
Copyright © 2017 Oracle Corporation. All rights reserved.