|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchemaxon.jep.ChemContext
chemaxon.jep.context.MolContext
chemaxon.jep.context.AtomContext
public class AtomContext
Expression evaluation context containing an input molecule
and an input atom.
Provides function names for accessing context elements
through the CallbackIface
.
Field Summary | |
---|---|
static java.lang.String[] |
CFNS
The context function names. |
Constructor Summary | |
---|---|
AtomContext()
Constructor. |
Method Summary | |
---|---|
java.lang.Object |
callback(java.lang.String method,
java.lang.Object arg)
Implements CallbackIface . |
void |
clear()
Clears the context. |
int |
getAtom()
Returns the input atom index. |
java.lang.String[] |
getContextFunctionNames()
Returns {"mol", "fingerprint", "atom"}. |
void |
setAtom(int atom)
Sets the input atom. |
Methods inherited from class chemaxon.jep.context.MolContext |
---|
getFingerprint, getFingerprint, getMolecule, setFingerprint, setMolecule |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String[] CFNS
Constructor Detail |
---|
public AtomContext()
Method Detail |
---|
public java.lang.String[] getContextFunctionNames()
getContextFunctionNames
in class MolContext
public java.lang.Object callback(java.lang.String method, java.lang.Object arg)
CallbackIface
.
Returns null
for unimplemented callbacks.
Implemented callbacks:
method | arg | return value |
---|---|---|
"mol" | null | the input molecule |
"fingerprint" | null | the input molecule fingerprint |
"atom" | null | the input atom |
callback
in interface chemaxon.marvin.util.CallbackIface
callback
in class MolContext
method
- is the accessor method namearg
- 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 setAtom(int atom)
atom
- is the input atom indexpublic int getAtom()
public void clear()
clear
in class MolContext
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |