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 upstreamLocationinformation.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:LocatableGets the upstreamLocationinformation.- Specified by:
getUpstreamin interfaceLocatable- Returns:
- can be null.
-
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
- Specified by:
invokein interfaceInvocationHandler- Throws:
Throwable
-
toString
Description copied from interface:LocationReturns a human-readable string that represents this position.
-