public class LocatableAnnotation extends Object implements InvocationHandler, Locatable, Location
Annotation that also implements Locatable.| Modifier and Type | Method and Description |
|---|---|
static <A extends Annotation> |
create(A annotation,
Locatable parentSourcePos)
Wraps the annotation into a proxy so that the returned object will also implement
Locatable. |
Location |
getLocation()
Gets the location object that this object points to.
|
Locatable |
getUpstream()
Gets the upstream
Location information. |
Object |
invoke(Object proxy,
Method method,
Object[] args) |
String |
toString()
Returns a human-readable string that represents this position.
|
public static <A extends Annotation> A create(A annotation, Locatable parentSourcePos)
Locatable.public Locatable getUpstream()
LocatableLocation information.getUpstream in interface Locatablepublic Location getLocation()
LocatablegetLocation in interface Locatablepublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke in interface InvocationHandlerThrowableCopyright © 2018 JBoss by Red Hat. All rights reserved.