Package org.antlr.runtime.tree
Interface PositionTrackingStream<T>
-
- All Known Implementing Classes:
CommonTreeNodeStream
public interface PositionTrackingStream<T>
- Author:
- Sam Harwell
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
getKnownPositionElement(boolean allowApproximateLocation)
Returns an element containing concrete information about the current position in the stream.boolean
hasPositionInformation(T element)
Determines if the specifiedelement
contains concrete position information.
-
-
-
Method Detail
-
getKnownPositionElement
T getKnownPositionElement(boolean allowApproximateLocation)
Returns an element containing concrete information about the current position in the stream.- Parameters:
allowApproximateLocation
- iffalse
, this method returnsnull
if an element containing exact information about the current position is not available
-
hasPositionInformation
boolean hasPositionInformation(T element)
Determines if the specifiedelement
contains concrete position information.- Parameters:
element
- the element to check- Returns:
true
ifelement
contains concrete position information, otherwisefalse
-
-