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
.Location
getLocation()
Gets the location object that this object points to.Locatable
getUpstream()
Gets the upstreamLocation
information.java.lang.Object
invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
java.lang.String
toString()
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:Locatable
Gets the upstreamLocation
information.- Specified by:
getUpstream
in interfaceLocatable
- Returns:
- can be null.
-
getLocation
public Location getLocation()
Description copied from interface:Locatable
Gets the location object that this object points to. This operation could be inefficient and costly.- Specified by:
getLocation
in 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:
invoke
in interfacejava.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
-
-