Package org.antlr.runtime.tree
Interface PositionTrackingStream<T>
- All Known Implementing Classes:
CommonTreeNodeStream
public interface PositionTrackingStream<T>
-
Method Summary
Modifier and TypeMethodDescriptiongetKnownPositionElement
(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 Details
-
getKnownPositionElement
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
Determines if the specifiedelement
contains concrete position information.- Parameters:
element
- the element to check- Returns:
true
ifelement
contains concrete position information, otherwisefalse
-