|
||||||||||
| 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.TextToken
public class TextToken
Fixed text token.
| Constructor Summary | |
|---|---|
TextToken()
Constructor. |
|
TextToken(String text)
Constructor. |
|
| Method Summary | |
|---|---|
void |
add(Token add)
Adds the. |
Token |
addText(char c)
Adds the text. |
Object |
evaluate(Locale locale,
Object context)
Evaluate. |
boolean |
isVariable()
Checks if the expression contains parts which can vary according to the model. |
boolean |
supportAdd()
Support add. |
void |
visitTokensWith(TokenVisitor visitor)
Visits a the whole token tree with a visitor. |
| 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 TextToken()
public TextToken(String text)
text - Initial text| Method Detail |
|---|
public void add(Token add)
Token
add - the addpublic Token addText(char c)
Token
c - the c
public Object evaluate(Locale locale,
Object context)
Token
locale - Locale used for the evaluationcontext - Context for the evaluation
public boolean isVariable()
Token
true if some parts of the expression are dependent
on the model.public boolean supportAdd()
Token
public void visitTokensWith(TokenVisitor visitor)
Token
visitor - 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 | |||||||||