|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jmol.smiles.SmilesParser
public class SmilesParser
Parses a SMILES String to create a SmilesMolecule. The SMILES specification has been found at http://www.daylight.com/smiles/. Currently this parser supports only parts of the SMILES specification. An example on how to use it:
try {
SmilesParser sp = new SmilesParser();
SmilesMolecule sm = sp.parseSmiles("CC(C)C(=O)O");
// Use the resulting molecule
} catch (InvalidSmilesException e) {
// Exception management
}
| Constructor Summary | |
|---|---|
SmilesParser()
SmilesParser constructor |
|
| Method Summary | |
|---|---|
SmilesMolecule |
parseSmiles(java.lang.String smiles)
Parse a SMILES String |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SmilesParser()
| Method Detail |
|---|
public SmilesMolecule parseSmiles(java.lang.String smiles)
throws InvalidSmilesException
smiles - SMILES String
InvalidSmilesException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||