xtc.tree
Interface Locatable

All Known Implementing Classes:
Annotation, Formatting, GNode, Node, Token

public interface Locatable

The interface to objects with a source location.

Version:
$Revision: 1.2 $
Author:
Robert Grimm

Method Summary
 Location getLocation()
          Get this object's location.
 boolean hasLocation()
          Determine whether this object has a location.
 void setLocation(Locatable locatable)
          Set this object's location to the specified locatable's location.
 void setLocation(Location location)
          Set this object's location.
 

Method Detail

hasLocation

boolean hasLocation()
Determine whether this object has a location.

Returns:
true if this object has a location.

getLocation

Location getLocation()
Get this object's location.

Returns:
This object's location or null if it does not have a location.

setLocation

void setLocation(Location location)
Set this object's location.

Parameters:
location - This object's location.

setLocation

void setLocation(Locatable locatable)
Set this object's location to the specified locatable's location.

Parameters:
locatable - The locatable object.


Copyright © 2012. All Rights Reserved.