Interface Locatable

All Known Subinterfaces:
Traceable, TraceableComponent
All Known Implementing Classes:
AdjacentTextNodeMerger, AnalyzeString, AncestorQualifiedPattern, AnchorPattern, AndExpression, ApplyImports, ApplyNextMatchingTemplate, ApplyTemplates, ArithmeticExpression, ArithmeticExpression10, Assignation, AtomicSequenceConverter, Atomizer, AttributeCreator, AttributeGetter, AxisExpression, BasePatternWithPredicate, BinaryExpression, Block, BooleanExpression, BooleanExpressionPattern, BreakInstr, CallTemplate, CardinalityChecker, CastableExpression, CastExpression, CastingExpression, Choose, ClauseInfo, Comment, CompareToConstant, CompareToIntegerConstant, CompareToStringConstant, ComponentTracer, ComputedAttribute, ComputedElement, ConditionalBlock, ConditionalSorter, ConsumingOperand, ContextItemExpression, Copy, CopyOf, CurrentGroupCall, CurrentGroupingKeyCall, CurrentItemExpression, Doctype, DocumentInstr, DocumentSorter, EagerLetExpression, ElementCreator, EmptyTextNodeRemover, EquivalenceComparison, ErrorExpression, EvaluateInstr, ExceptPattern, Expression, FilterExpression, FirstItemExpression, FixedAttribute, FixedElement, FLWORExpression, ForEach, ForEachGroup, ForExpression, Fork, ForMemberExpression, FunctionCall, FunctionLiteral, FunctionSequenceCoercer, GeneralComparison, GeneralComparison10, GeneralComparison20, GeneralNodePattern, GeneralPositionalPattern, GlobalParam, GlobalVariable, GlobalVariableReference, HomogeneityChecker, IdentityComparison, InstanceOfExpression, Instruction, IntegerRangeTest, IntegratedFunctionCall, IntersectPattern, IsLastExpression, ItemChecker, ItemTypePattern, IterateInstr, JAXPVariableReference, LastItemExpression, LetExpression, Literal, LocalParam, LocalParamBlock, LocalVariableReference, LookupAllExpression, LookupExpression, MemoFunction, MergeInstr, MessageInstr, NamedTemplate, NamespaceConstructor, NegateExpression, NextIteration, NextMatch, NodeSetPattern, NodeTestPattern, NumberInstruction, NumberSequenceFormatter, OnEmptyExpr, OnNonEmptyExpr, OrExpression, OuterForExpression, ParentNodeConstructor, PartialApply, Pattern, PatternMatchExpression, PatternThatSetsCurrent, ProcessingInstruction, PseudoExpression, QuantifiedExpression, RangeExpression, ResultDocument, RootExpression, SequenceInstr, SimpleExpression, SimpleNodeConstructor, SimplePositionalPattern, SimpleStepExpression, SingleItemFilter, SingletonAtomizer, SingletonIntersectExpression, SlashExpression, SortExpression, SortKeyDefinition, SortKeyDefinitionList, SourceDocument, SquareArrayConstructor, StaticFunctionCall, StreamingFunctionArgumentPattern, StringLiteral, SubscriptExpression, SuppliedParameterReference, SystemFunctionCall, SystemFunctionCall.Optimized, TailCallLoop, TailExpression, TemplateRule, Trace, TraceExpression, TryCatch, TupleExpression, UnaryExpression, UndeclaredVariable, UnionPattern, UniversalPattern, UntypedSequenceConverter, UseAttributeSet, UserFunction, UserFunctionCall, UserFunctionReference, ValueComparison, ValueOf, VariableReference, VennExpression, VennPattern, WherePopulated, XPathFunctionCall, XQueryExpression

public interface Locatable
Represents a construct that has a meaningful location for use in diagnostics
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the location of the construct
  • Method Details

    • getLocation

      Location getLocation()
      Get the location of the construct
      Returns:
      the location. If no location information is available, the method should return Loc.NONE rather than returning null. However, callers would be well advised to check for the result being null.