scanner
Interface PositionableInCharStream

All Known Implementing Classes:
InvalidCharacterEvent, PositionableMultiNote, PositionableNote, Token, TokenEvent

public interface PositionableInCharStream

Interface that should be implemented by any object that has a position in a char stream.


Method Summary
 int getLength()
          Returns the length of this positionable object.
 CharStreamPosition getPosition()
          Returns the start position.
 

Method Detail

getPosition

public CharStreamPosition getPosition()
Returns the start position.

Returns:
The start position.

getLength

public int getLength()
Returns the length of this positionable object.

Returns:
The length of this positionable object.