Modifier and Type | Method | Description |
---|---|---|
static <A extends java.lang.annotation.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. |
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.
|
public static <A extends java.lang.annotation.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 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
invoke
in interface java.lang.reflect.InvocationHandler
java.lang.Throwable
Copyright © 2018 Oracle Corporation. All rights reserved.