Public Member Functions | Package Attributes

antlr.TokenWithIndex Class Reference

Inheritance diagram for antlr.TokenWithIndex:
antlr.CommonToken antlr.Token

List of all members.

Public Member Functions

 TokenWithIndex ()
 TokenWithIndex (int i, String t)
void setIndex (int i)
int getIndex ()
String toString ()

Package Attributes

int index

Detailed Description

This token knows what index 0..n-1 it is from beginning of stream. Designed to work with TokenStreamRewriteEngine.java


Constructor & Destructor Documentation

antlr.TokenWithIndex.TokenWithIndex (  ) 
antlr.TokenWithIndex.TokenWithIndex ( int  i,
String  t 
)

Member Function Documentation

int antlr.TokenWithIndex.getIndex (  ) 
void antlr.TokenWithIndex.setIndex ( int  i  ) 
String antlr.TokenWithIndex.toString (  ) 

Member Data Documentation

Index into token array indicating position in input stream

Referenced by antlr.TokenWithIndex.getIndex(), antlr.TokenWithIndex.setIndex(), and antlr.TokenWithIndex.toString().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties