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 TgetKnownPositionElement(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 Detail
-
getKnownPositionElement
T getKnownPositionElement(boolean allowApproximateLocation)
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
boolean hasPositionInformation(T element)
Determines if the specifiedelementcontains concrete position information.- Parameters:
element- the element to check- Returns:
trueifelementcontains concrete position information, otherwisefalse
-
-