xtc.tree
Interface Locatable

All Known Implementing Classes:
Action, ActionBaseValue, AliasT, AlternativeAddition, AlternativeRemoval, AnnotatedT, Annotation, AnyChar, ArrayT, Attribute, Binding, BindingValue, BooleanT, CharCase, CharClass, CharLiteral, CharRange, CharSwitch, CharTerminal, ClassOrInterfaceT, ClassT, Comment, DerivedT, Element, EmptyListValue, EnumeratorT, EnumT, ErrorT, FloatT, FollowedBy, Formatting, FullProduction, FunctionOrMethodT, FunctionT, GenericActionValue, GenericNodeValue, GenericRecursionValue, GenericValue, GNode, Grammar, InstantiatedT, IntegerT, InterfaceT, InternalParameter, InternalT, LabelT, LineMarker, ListValue, Literal, MethodT, Module, ModuleDependency, ModuleImport, ModuleInstantiation, ModuleList, ModuleModification, ModuleName, Name, NamedParameter, Node, NodeMarker, NonTerminal, NotFollowedBy, NullLiteral, NullValue, NumberT, Option, OrderedChoice, PackageT, Parameter, ParameterizedT, ParserAction, ParseTreeNode, PartialProduction, PointerT, Pragma, Predicate, Production, ProductionOverride, ProperListValue, Quantification, Repetition, SemanticPredicate, Sequence, SequenceName, SourceIdentity, StringLiteral, StringMatch, StringValue, StructOrUnionT, StructT, Terminal, TextToken, Token, TokenValue, TupleT, Type, UnaryOperator, UnionT, UnitT, ValueElement, VariableT, VariantT, VoidedElement, VoidT, Wildcard, WrappedT

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.