Top Description Fields Constructors Methods
org.glassfish.jaxb.runtime.v2.model.annotation

public Class LocatableAnnotation

extends Object
implements InvocationHandler, Locatable, Location
Class Inheritance
All Implemented Interfaces
org.glassfish.jaxb.core.v2.runtime.Location, org.glassfish.jaxb.core.v2.model.annotation.Locatable, java.lang.reflect.InvocationHandler
Imports
org.glassfish.jaxb.core.v2.model.annotation.Locatable, org.glassfish.jaxb.core.v2.runtime.Location, java.lang.annotation.Annotation, java.lang.reflect.*, java.util.HashMap, .Map

Annotation that also implements Locatable.
Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
private final Annotation
private static final Map<Class<T>, Quick>
quicks

List of Quick implementations keyed by their annotation type.

private final Locatable

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
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.

public Location
getLocation()

Implements org.glassfish.jaxb.core.v2.model.annotation.Locatable.getLocation.

Gets the location object that this object points to.

public Locatable
public Object
invoke(Object proxy, Method method, Object[] args)

Implements java.lang.reflect.InvocationHandler.invoke.

Processes a method invocation on a proxy instance and returns the result.

public String
toString()

Overrides java.lang.Object.toString.

Implements org.glassfish.jaxb.core.v2.runtime.Location.toString.

Returns a human-readable string that represents this position.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

coreback to summary
private final Annotation core
quicksback to summary
private static final Map<Class<T>, Quick> quicks

List of Quick implementations keyed by their annotation type.

upstreamback to summary
private final Locatable upstream

Constructor Detail

LocatableAnnotationback to summary
pack-priv LocatableAnnotation(Annotation core, Locatable upstream)

Method Detail

createback to summary
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.

Annotations
@SuppressWarnings:unchecked
getLocationback to summary
public Location getLocation()

Implements org.glassfish.jaxb.core.v2.model.annotation.Locatable.getLocation.

Doc from org.glassfish.jaxb.core.v2.model.annotation.Locatable.getLocation.

Gets the location object that this object points to. This operation could be inefficient and costly.

Annotations
@Override
getUpstreamback to summary
public Locatable getUpstream()

Implements org.glassfish.jaxb.core.v2.model.annotation.Locatable.getUpstream.

Doc from org.glassfish.jaxb.core.v2.model.annotation.Locatable.getUpstream.

Gets the upstream Location information.

Annotations
@Override
invokeback to summary
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable

Implements java.lang.reflect.InvocationHandler.invoke.

Doc from java.lang.reflect.InvocationHandler.invoke.

Processes a method invocation on a proxy instance and returns the result. This method will be invoked on an invocation handler when a method is invoked on a proxy instance that it is associated with.

Annotations
@Override
Exceptions
Throwable:
the exception to throw from the method invocation on the proxy instance. The exception's type must be assignable either to any of the exception types declared in the throws clause of the invoked method or to the unchecked exception types java.lang.RuntimeException or java.lang.Error. If a checked exception is thrown by this method that is not assignable to any of the exception types declared in the throws clause of the invoked method, then an UndeclaredThrowableException containing the exception that was thrown by this method will be thrown by the method invocation on the proxy instance.
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Implements org.glassfish.jaxb.core.v2.runtime.Location.toString.

Doc from org.glassfish.jaxb.core.v2.runtime.Location.toString.

Returns a human-readable string that represents this position.

Annotations
@Override