Package org.openscience.cdk.iupac.parser
Class MoleculeBuilder
- java.lang.Object
-
- org.openscience.cdk.iupac.parser.MoleculeBuilder
-
-
Constructor Summary
Constructors Constructor Description MoleculeBuilder()
Instantiates a builder using theDefaultChemObjectBuilder
.MoleculeBuilder(IChemObjectBuilder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IAtomContainer
buildMolecule(int mainChain, List<AttachedGroup> attachedSubstituents, List<AttachedGroup> attachedGroups, boolean isMainCyclic, String name)
Start of the process of building a molecule from the parsed data.
-
-
-
Constructor Detail
-
MoleculeBuilder
public MoleculeBuilder(IChemObjectBuilder builder)
-
MoleculeBuilder
public MoleculeBuilder()
Instantiates a builder using theDefaultChemObjectBuilder
.
-
-
Method Detail
-
buildMolecule
protected IAtomContainer buildMolecule(int mainChain, List<AttachedGroup> attachedSubstituents, List<AttachedGroup> attachedGroups, boolean isMainCyclic, String name) throws ParseException, CDKException
Start of the process of building a molecule from the parsed data. Passes the parsed tokens to other functions which build up the Molecule.- Parameters:
mainChain
- The string representation of the length of the main chain.attachedSubstituents
- A vector of AttachedGroup's representing substituents.attachedGroups
- A vector of AttachedGroup's representing functional groups.isMainCyclic
- An indication of if the main chain is cyclic.- Returns:
- The molecule as built from the parsed tokens.
- Throws:
ParseException
CDKException
-
-