|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.util.expression.AbstractToken
net.sf.doolin.util.expression.TokenList
net.sf.doolin.util.expression.KeyToken
public class KeyToken
Token for a #{...} token.
| Constructor Summary | |
|---|---|
KeyToken()
Constructor. |
|
| Method Summary | |
|---|---|
void |
add(Token add)
Adds the. |
Token |
addText(char c)
Adds the text. |
Object |
evaluate(Locale locale,
Object context)
Evaluate. |
boolean |
hasSwitchedToParams()
Checks if the token is currently evaluating its parameters. |
void |
switchToParams()
Switch to the evaluation of the parameters, after the : character. |
void |
visitTokensWith(TokenVisitor visitor)
Visits a the whole token tree with a visitor. |
| Methods inherited from class net.sf.doolin.util.expression.TokenList |
|---|
getTokens, isVariable, supportAdd |
| Methods inherited from class net.sf.doolin.util.expression.AbstractToken |
|---|
close, getType, isClosed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KeyToken()
| Method Detail |
|---|
public void add(Token add)
Token
add in interface Tokenadd in class TokenListadd - the addpublic Token addText(char c)
Token
addText in interface TokenaddText in class TokenListc - the c
public Object evaluate(Locale locale,
Object context)
Token
locale - Locale used for the evaluationcontext - Context for the evaluation
public boolean hasSwitchedToParams()
true if the token is currently evaluating its
parameters.public void switchToParams()
hasSwitchedToParams()public void visitTokensWith(TokenVisitor visitor)
Token
visitTokensWith in interface TokenvisitTokensWith in class TokenListvisitor - Visitor to apply for this token and each token underneath.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||