Package com.sun.tools.xjc.api
Class Reference
- java.lang.Object
-
- com.sun.tools.xjc.api.Reference
-
public final class Reference extends java.lang.Object
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 aElement
). 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
Fields Modifier and Type Field Description javax.lang.model.element.Element
annotations
The declaration from which annotations for thetype
is read.javax.lang.model.type.TypeMirror
type
The JAXB type being referenced.
-
Constructor Summary
Constructors 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
hashCode()
-
-
-
Field Detail
-
type
public final javax.lang.model.type.TypeMirror type
The JAXB type being referenced. Must not be null.
-
annotations
public final javax.lang.model.element.Element annotations
The declaration from which annotations for thetype
is read. Must not be null.
-
-
Constructor Detail
-
Reference
public Reference(javax.lang.model.element.ExecutableElement method)
Creates a reference from the return type of the method and annotations on the method.
-
Reference
public Reference(javax.lang.model.element.VariableElement param)
Creates a reference from the parameter type and annotations on the parameter.
-
Reference
public Reference(javax.lang.model.element.TypeElement type, javax.annotation.processing.ProcessingEnvironment env)
Creates a reference from a class declaration and its annotations.
-
Reference
public Reference(javax.lang.model.type.TypeMirror type, javax.lang.model.element.Element annotations)
Creates a reference by providing two values independently.
-
-