com.bc.jexp.impl
Class AbstractSymbol

java.lang.Object
  extended by com.bc.jexp.impl.AbstractSymbol
All Implemented Interfaces:
Symbol
Direct Known Subclasses:
AbstractSymbol.B, AbstractSymbol.D, AbstractSymbol.I

public abstract class AbstractSymbol
extends Object
implements Symbol

Provides an abstract implementation of the Symbol interface. Subclassers must still implement the evalX method group.

Version:
$Revision$ $Date$
Author:
Norman Fomferra (norman.fomferra@brockmann-consult.de)
See Also:
Symbol.evalB(com.bc.jexp.EvalEnv), Symbol.evalI(com.bc.jexp.EvalEnv), Symbol.evalD(com.bc.jexp.EvalEnv)

Nested Class Summary
static class AbstractSymbol.B
           
static class AbstractSymbol.D
           
static class AbstractSymbol.I
           
 
Constructor Summary
protected AbstractSymbol(String name, int retType)
           
 
Method Summary
 String getName()
          Gets the symbol's name.
 int getRetType()
          Gets the symbol's return type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.bc.jexp.Symbol
evalB, evalD, evalI, evalS
 

Constructor Detail

AbstractSymbol

protected AbstractSymbol(String name,
                         int retType)
Method Detail

getName

public String getName()
Description copied from interface: Symbol
Gets the symbol's name.

Specified by:
getName in interface Symbol
Returns:
the name, should never be null

getRetType

public int getRetType()
Description copied from interface: Symbol
Gets the symbol's return type.

Specified by:
getRetType in interface Symbol
Returns:
the type, should always be one of the TYPE_X constants defined in the Term class.


Copyright © 2002-2013 Brockmann Consult GmbH. All Rights Reserved.