com.bc.jexp.impl
Class AbstractSymbol
java.lang.Object
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)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSymbol
protected AbstractSymbol(String name,
int retType)
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.