public class AtomContext extends MolContext
CallbackIface.| Modifier and Type | Field and Description |
|---|---|
static String[] |
CFNS
The context function names.
|
| Constructor and Description |
|---|
AtomContext()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
callback(String method,
Object arg)
Implements
CallbackIface. |
void |
clear()
Clears the context.
|
int |
getAtom()
Returns the input atom index.
|
String[] |
getContextFunctionNames()
Returns {"mol", "fingerprint", "atom"}.
|
void |
setAtom(int atom)
Sets the input atom.
|
getFingerprint, getFingerprint, getMolecule, setFingerprint, setMoleculepublic static String[] CFNS
public String[] getContextFunctionNames()
getContextFunctionNames in interface ChemContextgetContextFunctionNames in class MolContextpublic Object callback(String method, 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 ChemContextcallback in interface chemaxon.marvin.util.CallbackIfacecallback in class MolContextmethod - 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 interface ChemContextclear in class MolContext