|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchemaxon.jep.ChemContext
public class ChemContext
Common base class of expression evaluation contexts.
Provides function names for accessing context elements
through the CallbackIface
.
Constructor Summary | |
---|---|
ChemContext()
Constructor. |
Method Summary | |
---|---|
java.lang.Object |
callback(java.lang.String method,
java.lang.Object arg)
Implements CallbackIface . |
void |
clear()
Clears the context. |
java.lang.String[] |
getContextFunctionNames()
Returns context element accessor function names. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChemContext()
Method Detail |
---|
public java.lang.String[] getContextFunctionNames()
null
.
Subclasses override this method to add specific context elements accessors.
public java.lang.Object callback(java.lang.String method, java.lang.Object arg)
CallbackIface
.
The default implementation does nothing and returns null
.
Subclasses override this method to implement the specific
context elements accessors returned by getContextFunctionNames()
.
callback
in interface chemaxon.marvin.util.CallbackIface
method
- is the accessor method name (returned by getContextFunctionNames()
)arg
- is the accessor method argument (the JEP parameter stack as null
,
a single parameter object or a parameter object array depending on the number
of parameters on the stack)
public void clear()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |