org.apache.beehive.netui.script.el.tokens
Class ExpressionToken

Object
  extended by ExpressionToken
Direct Known Subclasses:
ArrayIndexToken, ContextToken, IdentifierToken, MapKeyToken

public abstract class ExpressionToken
extends Object


Constructor Summary
ExpressionToken()
           
 
Method Summary
protected  Object arrayLookup(Object array, int index)
           
protected  void arrayUpdate(Object array, int index, Object value)
           
protected  Object beanLookup(Object bean, Object identifier)
           
protected  void beanUpdate(Object bean, Object identifier, Object value)
           
abstract  Object evaluate(Object value)
           
abstract  String getTokenString()
           
protected  Object listLookup(List list, int index)
           
protected  void listUpdate(List list, int index, Object value)
           
protected  Object mapLookup(Map map, Object identifier)
           
protected  void mapUpdate(Map map, Object identifier, Object value)
           
protected  int parseIndex(String identifier)
           
abstract  void update(Object root, Object newValue)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionToken

public ExpressionToken()
Method Detail

evaluate

public abstract Object evaluate(Object value)

update

public abstract void update(Object root,
                            Object newValue)

getTokenString

public abstract String getTokenString()

mapLookup

protected final Object mapLookup(Map map,
                                 Object identifier)

beanLookup

protected final Object beanLookup(Object bean,
                                  Object identifier)

listLookup

protected final Object listLookup(List list,
                                  int index)

arrayLookup

protected final Object arrayLookup(Object array,
                                   int index)

mapUpdate

protected final void mapUpdate(Map map,
                               Object identifier,
                               Object value)

arrayUpdate

protected final void arrayUpdate(Object array,
                                 int index,
                                 Object value)

listUpdate

protected final void listUpdate(List list,
                                int index,
                                Object value)

beanUpdate

protected final void beanUpdate(Object bean,
                                Object identifier,
                                Object value)

parseIndex

protected final int parseIndex(String identifier)