Class LocatableAnnotation
java.lang.Object
com.sun.xml.bind.v2.model.annotation.LocatableAnnotation
- All Implemented Interfaces:
Locatable
,Location
,InvocationHandler
Annotation
that also implements Locatable
.- Author:
- Kohsuke Kawaguchi
-
Method Summary
Modifier and TypeMethodDescriptionstatic <A extends Annotation>
AWraps the annotation into a proxy so that the returned object will also implementLocatable
.Gets the location object that this object points to.Gets the upstreamLocation
information.toString()
Returns a human-readable string that represents this position.
-
Method Details
-
create
Wraps the annotation into a proxy so that the returned object will also implementLocatable
. -
getUpstream
Description copied from interface:Locatable
Gets the upstreamLocation
information.- Specified by:
getUpstream
in interfaceLocatable
- Returns:
- can be null.
-
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
- Specified by:
invoke
in interfaceInvocationHandler
- Throws:
Throwable
-
toString
Description copied from interface:Location
Returns a human-readable string that represents this position.
-