net.sf.doolin.util.expression
Class AbstractToken

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

public abstract class AbstractToken
extends Object
implements Token

Utility ancestor for the Token classes.

Author:
Damien Coraboeuf

Constructor Summary
AbstractToken(net.sf.doolin.util.expression.TokenType type)
          Constructor.
 
Method Summary
 void close()
          Close.
 net.sf.doolin.util.expression.TokenType getType()
          Gets the type.
 boolean isClosed()
          Checks if is closed.
 
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
add, addText, evaluate, isVariable, supportAdd, visitTokensWith
 

Constructor Detail

AbstractToken

public AbstractToken(net.sf.doolin.util.expression.TokenType type)
Constructor.

Parameters:
type - Type of token.
Method Detail

close

public void close()
Description copied from interface: Token
Close.

Specified by:
close in interface Token

isClosed

public boolean isClosed()
Description copied from interface: Token
Checks if is closed.

Specified by:
isClosed in interface Token
Returns:
true, if is closed

getType

public net.sf.doolin.util.expression.TokenType getType()
Description copied from interface: Token
Gets the type.

Specified by:
getType in interface Token
Returns:
the type


Copyright © 2011. All Rights Reserved.