sleep.parser

Class Token


public class Token
extends Object

as much as possible this is a String with a line number associate with it (aka hint)

Field Summary

protected int
hint
protected int
marker
protected String
term

Constructor Summary

Token(String term, int hint)
Token(String _term, int _hint, int _marker)

Method Summary

Token
copy(String text)
Token
copy(int _hint)
int
getHint()
String
getMarker()
int
getMarkerIndex()
String
toString()

Field Details

hint

protected int hint

marker

protected int marker

term

protected String term

Constructor Details

Token

public Token(String term,
             int hint)

Token

public Token(String _term,
             int _hint,
             int _marker)

Method Details

copy

public Token copy(String text)

copy

public Token copy(int _hint)

getHint

public int getHint()

getMarker

public String getMarker()

getMarkerIndex

public int getMarkerIndex()

toString

public String toString()