Module com.sun.xml.bind.core
Interface Locatable
-
- All Known Subinterfaces:
ArrayInfo<T,C>,BuiltinLeafInfo<T,C>,ClassInfo<T,C>,Element<T,C>,ElementInfo<T,C>,EnumLeafInfo<T,C>,LeafInfo<T,C>,MaybeElement<T,C>,NonElement<T,C>,TypeInfo<T,C>,WildcardTypeInfo<T,C>
public interface LocatableLocationthat is chained.Locatableforms a tree structure, where eachLocatablepoints back to the upstreamLocatable. For example, imagineLocatableX that points to a particular annotation, whose upstream isLocatableY, which points to a particular method (on which the annotation is put), whose upstream isLocatableZ, which points to a particular class (in which the method is defined), whose upstream isLocatableW, which points to another class (which refers to the class Z), and so on.This chain will be turned into a list when we report the error to users. This allows them to know where the error happened and why that place became relevant.
- Author:
- Kohsuke Kawaguchi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LocationgetLocation()Gets the location object that this object points to.LocatablegetUpstream()Gets the upstreamLocationinformation.
-