CommonTreeNodeStream
public interface PositionTrackingStream<T>
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 specified
element contains concrete position
information. |
T getKnownPositionElement(boolean allowApproximateLocation)
allowApproximateLocation
- if false
, this method returns
null
if an element containing exact information about the current
position is not availableboolean hasPositionInformation(T element)
element
contains concrete position
information.element
- the element to checktrue
if element
contains concrete position
information, otherwise false
Copyright © 1992–2018 ANTLR. All rights reserved.