|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectprovided.token.TokenFactory
public class TokenFactory
Concrete factory to create tokens
| Field Summary | |
|---|---|
static TokenFactory |
Singleton
Singleton instance of this class |
| Constructor Summary | |
|---|---|
private |
TokenFactory()
private constructor needed for singleton |
| Method Summary | |
|---|---|
Token |
makeToken(java.lang.String name,
java.lang.String lexeme)
Creates Tokens from the given name and lexeme. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final TokenFactory Singleton
| Constructor Detail |
|---|
private TokenFactory()
| Method Detail |
|---|
public Token makeToken(java.lang.String name,
java.lang.String lexeme)
makeToken in interface ITokenFactoryname - The name of the tokenlexeme - The lexeme value for the token
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||