FileDocCategorySizeDatePackage
TokenManager.javaAPI DocGlassfish v2 API1527Wed Aug 30 15:34:10 BST 2006persistence.antlr

TokenManager

public interface TokenManager
Interface that describes the set of defined tokens

Fields Summary
Constructors Summary
Methods Summary
public java.lang.Objectclone()

public voiddefine(persistence.antlr.TokenSymbol ts)
define a token symbol

public java.lang.StringgetName()
Get the name of the token manager

public java.lang.StringgetTokenStringAt(int idx)
Get a token string by index

public persistence.antlr.TokenSymbolgetTokenSymbol(java.lang.String sym)
Get the TokenSymbol for a string

public persistence.antlr.TokenSymbolgetTokenSymbolAt(int idx)

public java.util.EnumerationgetTokenSymbolElements()
Get an enumerator over the symbol table

public java.util.EnumerationgetTokenSymbolKeys()

public persistence.antlr.collections.impl.VectorgetVocabulary()
Get the token vocabulary (read-only).

return
A Vector of Strings indexed by token type

public booleanisReadOnly()
Is this token manager read-only?

public voidmapToTokenSymbol(java.lang.String name, persistence.antlr.TokenSymbol sym)

public intmaxTokenType()
Get the highest token type in use

public intnextTokenType()
Get the next unused token type

public voidsetName(java.lang.String n)

public voidsetReadOnly(boolean ro)

public booleantokenDefined(java.lang.String symbol)
Is a token symbol defined?