Top Methods
org.antlr.runtime.tree

public Interface PositionTrackingStream<T>

Known Direct Implementers
org.antlr.runtime.tree.CommonTreeNodeStream

Author
Sam Harwell

Method Summary

Modifier and TypeMethod and Description
public T
getKnownPositionElement(boolean
if false, this method returns null if an element containing exact information about the current position is not available
allowApproximateLocation
)

Returns an element containing concrete information about the current position in the stream.

public boolean

Returns:

true if element contains concrete position information, otherwise false
hasPositionInformation
(T
the element to check
element
)

Determines if the specified element contains concrete position information.

Method Detail

getKnownPositionElementback to summary
public T getKnownPositionElement(boolean allowApproximateLocation)

Returns an element containing concrete information about the current position in the stream.

Parameters
allowApproximateLocation:boolean

if false, this method returns null if an element containing exact information about the current position is not available

hasPositionInformationback to summary
public boolean hasPositionInformation(T element)

Determines if the specified element contains concrete position information.

Parameters
element:T

the element to check

Returns:boolean

true if element contains concrete position information, otherwise false