net.sf.doolin.util.expression
Class TokenList

java.lang.Object
  extended by net.sf.doolin.util.expression.AbstractToken
      extended by net.sf.doolin.util.expression.TokenList
All Implemented Interfaces:
Token
Direct Known Subclasses:
KeyToken, SequenceToken

public abstract class TokenList
extends AbstractToken

List of Tokens.

Author:
Damien Coraboeuf

Constructor Summary
TokenList(net.sf.doolin.util.expression.TokenType tokenType)
          Constructor.
 
Method Summary
 void add(Token add)
          Adds the.
 Token addText(char c)
          Adds the text.
protected  List<Token> getTokens()
           
 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
 
Methods inherited from interface net.sf.doolin.util.expression.Token
evaluate
 

Constructor Detail

TokenList

public TokenList(net.sf.doolin.util.expression.TokenType tokenType)
Constructor.

Method Detail

add

public void add(Token add)
Description copied from interface: Token
Adds the.

Parameters:
add - the add

addText

public Token addText(char c)
Description copied from interface: Token
Adds the text.

Parameters:
c - the c
Returns:
the token

getTokens

protected List<Token> getTokens()

isVariable

public boolean isVariable()
Description copied from interface: Token
Checks if the expression contains parts which can vary according to the model.

Returns:
true if some parts of the expression are dependent on the model.

supportAdd

public boolean supportAdd()
Description copied from interface: Token
Support add.

Returns:
true, if successful

visitTokensWith

public void visitTokensWith(TokenVisitor visitor)
Description copied from interface: Token
Visits a the whole token tree with a visitor.

Parameters:
visitor - Visitor to apply for this token and each token underneath.


Copyright © 2011. All Rights Reserved.