public final class Reference extends 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 and Description |
---|---|
Element |
annotations
The declaration from which annotations for the
type is read. |
TypeMirror |
type
The JAXB type being referenced.
|
Constructor and Description |
---|
Reference(ExecutableElement method)
Creates a reference from the return type of the method
and annotations on the method.
|
Reference(TypeElement type,
ProcessingEnvironment env)
Creates a reference from a class declaration and its annotations.
|
Reference(TypeMirror type,
Element annotations)
Creates a reference by providing two values independently.
|
Reference(VariableElement param)
Creates a reference from the parameter type
and annotations on the parameter.
|
public final TypeMirror type
public Reference(ExecutableElement method)
public Reference(VariableElement param)
public Reference(TypeElement type, ProcessingEnvironment env)
public Reference(TypeMirror type, Element annotations)
Copyright © 2019 JBoss by Red Hat. All rights reserved.