Package com.sun.tools.xjc.api
Class Reference
java.lang.Object
com.sun.tools.xjc.api.Reference
Reference to a JAXB type (from JAX-RPC.)
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.
- Author:
- Kohsuke Kawaguchi
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ElementThe declaration from which annotations for thetypeis read.final TypeMirrorThe JAXB type being referenced. -
Constructor Summary
ConstructorsConstructorDescriptionReference(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(VariableElement param) Creates a reference from the parameter type and annotations on the parameter.Reference(TypeMirror type, Element annotations) Creates a reference by providing two values independently. -
Method Summary
-
Field Details
-
type
The JAXB type being referenced. Must not be null. -
annotations
The declaration from which annotations for thetypeis read. Must not be null.
-
-
Constructor Details
-
Reference
Creates a reference from the return type of the method and annotations on the method. -
Reference
Creates a reference from the parameter type and annotations on the parameter. -
Reference
Creates a reference from a class declaration and its annotations. -
Reference
Creates a reference by providing two values independently.
-
-
Method Details