|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TokenGenerator
A generator of tokens.
A token isn't simply just an atom or a symbol. It has a type that is related to the way it is
used. Because the use of tokens differ, their value (the atom) cannot follow the same pattern and
therefore they have to be generated in the way that matches their use. It is why the tokens
differ by their type and each type of token has their own generator.
As a generator is mapped with a token type, it is expected that such generator is indicated by
the annotation Generator
with a token class declaration.
Method Summary | ||
---|---|---|
|
generate(TokenGenerationParameter... parameter)
Generates a new token by taking into account any of the specified generation parameters. |
|
|
renew(T token)
Renews the specified token. |
Method Detail |
---|
<T extends Token> T generate(TokenGenerationParameter... parameter)
T
- the concrete type of the token to generate.parameter
- the parameter of the token generation.
<T extends Token> T renew(T token)
T
- the concrete type of the token to renew.token
- the token to renew.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |