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()
Locatable
Location
information.getUpstream
in interface Locatable
public Location getLocation()
Locatable
getLocation
in interface Locatable
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
Throwable
Copyright © 2019 JBoss by Red Hat. All rights reserved.