Class LocatableAnnotation
- java.lang.Object
-
- com.sun.xml.bind.v2.model.annotation.LocatableAnnotation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <A extends java.lang.annotation.Annotation>
Acreate(A annotation, Locatable parentSourcePos)Wraps the annotation into a proxy so that the returned object will also implementLocatable.LocationgetLocation()Gets the location object that this object points to.LocatablegetUpstream()Gets the upstreamLocationinformation.java.lang.Objectinvoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)java.lang.StringtoString()Returns a human-readable string that represents this position.
-
-
-
Method Detail
-
create
public static <A extends java.lang.annotation.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()
Description copied from interface:LocatableGets the upstreamLocationinformation.- Specified by:
getUpstreamin interfaceLocatable- Returns:
- can be null.
-
getLocation
public Location getLocation()
Description copied from interface:LocatableGets the location object that this object points to. This operation could be inefficient and costly.- Specified by:
getLocationin interfaceLocatable
-
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:
invokein interfacejava.lang.reflect.InvocationHandler- Throws:
java.lang.Throwable
-
-