jfun.parsec.tokens

Class TypedToken<Type>

public class TypedToken<Type> extends NamedToken

Represents a token associated with a token type.

Since: version 1.1

Author: Ben Yu Apr 27, 2006 8:01:19 PM

Constructor Summary
TypedToken(String name, Type type)
Method Summary
booleanequals(TypedToken other)
booleanequals(Object obj)
StringgetText()
Get the text of the token.
TypegetType()
To get the data type of the token.
inthashCode()

Constructor Detail

TypedToken

public TypedToken(String name, Type type)

Method Detail

equals

public boolean equals(TypedToken other)

equals

public boolean equals(Object obj)

getText

public final String getText()
Get the text of the token. Equivalent to TypedToken.

Since: version 0.6

getType

public Type getType()
To get the data type of the token.

hashCode

public int hashCode()