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, setMolecule
public static String[] CFNS
public String[] getContextFunctionNames()
getContextFunctionNames
in interface ChemContext
getContextFunctionNames
in class MolContext
public 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 ChemContext
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 interface ChemContext
clear
in class MolContext