Package chemaxon.jep.context
Class AtomContext
java.lang.Object
chemaxon.jep.context.MolContext
chemaxon.jep.context.AtomContext
- All Implemented Interfaces:
- ChemContext,- chemaxon.marvin.util.CallbackIface,- Serializable
@PublicApi
@ProvidesFunction(minParameterCount=0,maxParameterCount=0,names={"atom","mol"}) @ProvidesFunction(minParameterCount=1,maxParameterCount=1,names="fingerprint")
public class AtomContext
extends MolContext
Expression evaluation context containing an input molecule
 and an input atom.
- Since:
- JChem 2.2, Marvin 5.1
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface chemaxon.jep.ChemContextChemContext.ProvidesFunction, ChemContext.ProvidesFunctionContainer
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringstatic final String[]The context function names.Fields inherited from class chemaxon.jep.context.MolContextFINGERPRINT, MOLFields inherited from interface chemaxon.jep.ChemContextVARARG
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncallContextFunction(String name, List<Object> params) Executes the specified context function with the given parameters.voidclear()Clears the context.intgetAtom()Returns the input atom index.String[]Deprecated, for removal: This API element is subject to removal in a future version.voidsetAtom(int atom) Sets the input atom.Methods inherited from class chemaxon.jep.context.MolContextgetFingerprint, getFingerprint, getMolecule, setFingerprint, setMolecule, setSupplierMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface chemaxon.jep.ChemContextcallback, getVariable
- 
Field Details- 
ATOM- See Also:
 
- 
CFNSThe context function names.
 
- 
- 
Constructor Details- 
AtomContextpublic AtomContext()Constructor.
 
- 
- 
Method Details- 
getContextFunctionNames@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public String[] getContextFunctionNames()Deprecated, for removal: This API element is subject to removal in a future version.Use theChemContext.ProvidesFunctionannotation instead.Returns {"mol", "fingerprint", "atom"}. This is the accessor function name for getting the molecule.- Specified by:
- getContextFunctionNamesin interface- ChemContext
- Overrides:
- getContextFunctionNamesin class- MolContext
- Returns:
- {"mol", "fingerprint", "atom"}
 
- 
callContextFunctionExecutes the specified context function with the given parameters.Implemented functions: name parameter return value "mol" the input molecule "fingerprint" the input molecule fingerprint "atom" the input atom - Specified by:
- callContextFunctionin interface- ChemContext
- Overrides:
- callContextFunctionin class- MolContext
- Parameters:
- name- the context function name (as specified by- ChemContext.ProvidesFunction.names())
- params- the context function parameters. The size of this list must be between the- minimumand- maximumallowed.
- Returns:
- the context element, or null if the given function is not supported
- Throws:
- JepException- on error
 
- 
setAtompublic void setAtom(int atom) Sets the input atom.- Parameters:
- atom- is the input atom index
 
- 
getAtompublic int getAtom()Returns the input atom index.- Returns:
- the input atom index
 
- 
clearpublic void clear()Clears the context.- Specified by:
- clearin interface- ChemContext
- Overrides:
- clearin class- MolContext
 
 
- 
ChemContext.ProvidesFunctionannotation instead.