Module com.sun.xml.bind
Class LocatableAnnotation
- java.lang.Object
-
- org.glassfish.jaxb.runtime.v2.model.annotation.LocatableAnnotation
-
- All Implemented Interfaces:
InvocationHandler,Locatable,Location
public class LocatableAnnotation extends Object implements InvocationHandler, Locatable, Location
Annotationthat also implementsLocatable.- Author:
- Kohsuke Kawaguchi
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <A extends Annotation>
Acreate(A annotation, Locatable parentSourcePos)Wraps the annotation into a proxy so that the returned object will also implementLocatable.LocationgetLocation()LocatablegetUpstream()Objectinvoke(Object proxy, Method method, Object[] args)StringtoString()
-
-
-
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 implementLocatable.
-
getUpstream
public Locatable getUpstream()
- Specified by:
getUpstreamin interfaceLocatable
-
getLocation
public Location getLocation()
- Specified by:
getLocationin interfaceLocatable
-
invoke
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
- Specified by:
invokein interfaceInvocationHandler- Throws:
Throwable
-
-