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

Class LocatableAnnotation

public class LocatableAnnotation extends Object implements InvocationHandler, Locatable, Location

Annotation that also implements Locatable.
Constructor Summary
LocatableAnnotation(Annotation core, Locatable upstream)
Method Summary
static <A extends Annotation> Acreate(A annotation, Locatable parentSourcePos)
Wraps the annotation into a proxy so that the returned object will also implement Locatable.
LocationgetLocation()
LocatablegetUpstream()
Objectinvoke(Object proxy, Method method, Object[] args)
StringtoString()

Constructor Detail

LocatableAnnotation

LocatableAnnotation(Annotation core, Locatable upstream)

Method Detail

create

public static <A extends Annotation> A create(A annotation, Locatable parentSourcePos)
Wraps the annotation into a proxy so that the returned object will also implement Locatable.

getLocation

public Location getLocation()

getUpstream

public Locatable getUpstream()

invoke

public Object invoke(Object proxy, Method method, Object[] args)

toString

public String toString()