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.booleanhasPositionInformation(T element) Determines if the specifiedelementcontains concrete position information.
-
Method Details
-
getKnownPositionElement
Returns an element containing concrete information about the current position in the stream.- Parameters:
allowApproximateLocation- iffalse, this method returnsnullif an element containing exact information about the current position is not available
-
hasPositionInformation
Determines if the specifiedelementcontains concrete position information.- Parameters:
element- the element to check- Returns:
trueifelementcontains concrete position information, otherwisefalse
-