Class Reference

java.lang.Object
com.sun.tools.xjc.api.Reference

@Deprecated(since="4.0", forRemoval=true) public final class Reference extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Use com.sun.tools.jxc.api.Reference instead.
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

    Fields
    Modifier and Type
    Field
    Description
    final Element
    Deprecated, for removal: This API element is subject to removal in a future version.
    The declaration from which annotations for the type is read.
    Deprecated, for removal: This API element is subject to removal in a future version.
    The JAXB type being referenced.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a reference from the return type of the method and annotations on the method.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a reference from a class declaration and its annotations.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a reference from the parameter type and annotations on the parameter.
    Reference(TypeMirror type, Element annotations)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a reference by providing two values independently.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • type

      public final TypeMirror type
      Deprecated, for removal: This API element is subject to removal in a future version.
      The JAXB type being referenced. Must not be null.
    • annotations

      public final Element annotations
      Deprecated, for removal: This API element is subject to removal in a future version.
      The declaration from which annotations for the type is read. Must not be null.
  • Constructor Details

    • Reference

      public Reference(ExecutableElement method)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a reference from the return type of the method and annotations on the method.
    • Reference

      public Reference(VariableElement param)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a reference from the parameter type and annotations on the parameter.
    • Reference

      public Reference(TypeElement type, ProcessingEnvironment env)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a reference from a class declaration and its annotations.
    • Reference

      public Reference(TypeMirror type, Element annotations)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a reference by providing two values independently.
  • Method Details

    • equals

      public boolean equals(Object o)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      hashCode in class Object