com.sun.xml.bind.v2.model.annotation
Class LocatableAnnotation

java.lang.Object
  extended by com.sun.xml.bind.v2.model.annotation.LocatableAnnotation
All Implemented Interfaces:
com.sun.xml.bind.v2.model.annotation.Locatable, com.sun.xml.bind.v2.runtime.Location, java.lang.reflect.InvocationHandler

public class LocatableAnnotation
extends java.lang.Object
implements java.lang.reflect.InvocationHandler, com.sun.xml.bind.v2.model.annotation.Locatable, com.sun.xml.bind.v2.runtime.Location

Annotation that also implements Locatable.


Method Summary
static
<A extends java.lang.annotation.Annotation>
A
create(A annotation, com.sun.xml.bind.v2.model.annotation.Locatable parentSourcePos)
          Wraps the annotation into a proxy so that the returned object will also implement Locatable.
 com.sun.xml.bind.v2.runtime.Location getLocation()
           
 com.sun.xml.bind.v2.model.annotation.Locatable getUpstream()
           
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static <A extends java.lang.annotation.Annotation> A create(A annotation,
                                                                   com.sun.xml.bind.v2.model.annotation.Locatable parentSourcePos)
Wraps the annotation into a proxy so that the returned object will also implement Locatable.


getUpstream

public com.sun.xml.bind.v2.model.annotation.Locatable getUpstream()
Specified by:
getUpstream in interface com.sun.xml.bind.v2.model.annotation.Locatable

getLocation

public com.sun.xml.bind.v2.runtime.Location getLocation()
Specified by:
getLocation in interface com.sun.xml.bind.v2.model.annotation.Locatable

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable

toString

public java.lang.String toString()
Specified by:
toString in interface com.sun.xml.bind.v2.runtime.Location
Overrides:
toString in class java.lang.Object