Package chemaxon.jep
Interface ChemContext
-
- All Superinterfaces:
chemaxon.marvin.util.CallbackIface
,Serializable
- All Known Implementing Classes:
AtomContext
,MolContext
,ReactionContext
@PublicAPI public interface ChemContext extends chemaxon.marvin.util.CallbackIface, Serializable
Interface of expression evaluation contexts. Provides function names for accessing context elements through theCallbackIface
.- Since:
- JChem 2.2, Marvin 5.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
callback(String method, Object arg)
ImplementsCallbackIface
.void
clear()
Clears the context.String[]
getContextFunctionNames()
Returns context element accessor function names.
-
-
-
Method Detail
-
getContextFunctionNames
String[] getContextFunctionNames()
Returns context element accessor function names. Implementations override this method to add specific context elements accessors.- Returns:
- the context element accessor function names
-
callback
Object callback(String method, Object arg)
ImplementsCallbackIface
. Implementations override this method to implement the specific context elements accessors returned bygetContextFunctionNames()
.- Specified by:
callback
in interfacechemaxon.marvin.util.CallbackIface
- Parameters:
method
- is the accessor method name (returned bygetContextFunctionNames()
)arg
- is the accessor method argument (the JEP parameter stack asnull
, a single parameter object or a parameter object array depending on the number of parameters on the stack)- Returns:
- the context element
-
clear
void clear()
Clears the context.
-
-