com.sun.xml.bind.v2.model.annotation
Class MethodLocatable<M>

java.lang.Object
  extended by com.sun.xml.bind.v2.model.annotation.MethodLocatable<M>
All Implemented Interfaces:
Locatable

public class MethodLocatable<M>
extends Object
implements Locatable

Locatable implementation for a method.


Constructor Summary
MethodLocatable(Locatable upstream, M method, Navigator<?,?,?,M> nav)
           
 
Method Summary
 Location getLocation()
          Gets the location object that this object points to.
 Locatable getUpstream()
          Gets the upstream Location information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodLocatable

public MethodLocatable(Locatable upstream,
                       M method,
                       Navigator<?,?,?,M> nav)
Method Detail

getUpstream

public Locatable getUpstream()
Description copied from interface: Locatable
Gets the upstream Location information.

Specified by:
getUpstream in interface Locatable
Returns:
can be null.

getLocation

public Location getLocation()
Description copied from interface: Locatable
Gets the location object that this object points to. This operation could be inefficient and costly.

Specified by:
getLocation in interface Locatable