com.sun.xml.bind.v2.model.annotation
Class LocatableAnnotation
java.lang.Object
com.sun.xml.bind.v2.model.annotation.LocatableAnnotation
- All Implemented Interfaces:
- Locatable, Location, InvocationHandler
public class LocatableAnnotation
- extends Object
- implements InvocationHandler, Locatable, Location
Annotation that also implements Locatable.
- Author:
- Kohsuke Kawaguchi
create
public static <A extends Annotation> A create(A annotation,
Locatable parentSourcePos)
- Wraps the annotation into a proxy so that the returned object will also implement
Locatable.
getUpstream
public Locatable getUpstream()
- Specified by:
getUpstream in interface Locatable
getLocation
public Location getLocation()
- Specified by:
getLocation in interface Locatable
invoke
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
- Specified by:
invoke in interface InvocationHandler
- Throws:
Throwable
toString
public String toString()
- Specified by:
toString in interface Location- Overrides:
toString in class Object
Copyright © 2014 Oracle Corporation. All Rights Reserved.