public class NomParser extends Object implements NomParserConstants
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt
Deprecated.
Next token.
|
Token |
token
Deprecated.
Current token.
|
NomParserTokenManager |
token_source
Deprecated.
Generated Token Manager.
|
A, ACTINIUM, AL, ALUMINIUM, ALUMINO, AMERCIUM, AMIDE, AMINE, AMINO, AN, ANTIMONY, ARSENIC, BARIUM, BERKELIUM, BERYLLIUM, BISMUTH, BOHRIUM, BROMO, BUT, CADMIUM, CALCIUM, CALIFORNIUM, CERIUM, CESIUM, CHLORO, CHROMIUM, COBALT, COMMA, CONSTANT, CONT, COPPER, COS, CURIUM, CYCLO, DASH, DEC, DEFAULT, DI, DIGIT, DO, DUBNIUM, DYSPROSIUM, E, EICOS, EINSTEINIUM, EN, EOF, EOL, ERBIUM, ETH, EUROPIUM, FERMIUM, FLUORO, FRANCIUM, GADOLINIUM, GALLIUM, GERMAINIUM, GOLD, HAFNIUM, HASSIUM, HEN, HENICOS, HEPT, HEX, HOLMIUM, HYDROXY, INDIUM, IODO, IRIDIUM, IRON, LANTHANUM, LAWRENCIUM, LEAD, LITHIUM, LITHO, LUTETIUM, MAGNESIUM, MANGANESE, MECURY, MEITMERIUM, MENDELEVIUM, METH, MOLYBDENUM, NEODYMIUM, NEPTUNIUM, NICKEL, NIOBIUM, NITRILE, NITRO, NOBELIUM, NON, OATE, OCT, OICACID, OL, ONE, OSMIUM, OXO, OYLCHLORIDE, PALLADIUM, PENT, PHENYL, PLATINUM, PLUTONIUM, POLONIUM, POTASSIUM, PRASEODYMIUM, PROMETHIUM, PROP, PROTACTINIUM, RADIUM, RHENIUM, RHODIUM, RUBIDIUM, RUTHENIUM, RUTHERFORDIUM, SANARIUM, SCANDIUM, SEABORGIUM, SELENIUM, SILVER, SODIUM, SPACE, STRONTIUM, TANTALUM, TECHNETIUM, TELLURIUM, TERBIUM, TETR, THALLIUM, THORIUM, THULIUM, TIN, TITANIUM, tokenImage, TRI, TUNGSTEN, UNDEC, URANIUM, VANADIUM, YL, YN, YTTERBIUM, YTTRIUM, ZINC, ZIRCONIUM
Constructor and Description |
---|
NomParser(InputStream stream)
Deprecated.
Constructor with InputStream.
|
NomParser(InputStream stream,
String encoding)
Deprecated.
Constructor with InputStream and supplied encoding
|
NomParser(NomParserTokenManager tm)
Deprecated.
Constructor with generated Token Manager.
|
NomParser(Reader stream)
Deprecated.
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
allBaseNumbers()
Deprecated.
The usual numbers .
|
void |
attachLocationSpecified()
Deprecated.
An attach position has been specified using a
comma seperated list followed by a dash
|
void |
bondType()
Deprecated.
Tokens which affect the bond order of the first bond.
|
void |
chainPrefix()
Deprecated.
A list of known tokens denoting a chain's length.
|
void |
completeChemicalName()
Deprecated.
The general form all chemical names must follow.
|
void |
connectingFunctionalGroupsConstruct()
Deprecated.
The layout of a functional group(s) which can connect anywhere.
|
void |
connectingFunctionalGroupSuffix()
Deprecated.
Functional groups suffixs for groups which can be connected anywhere
along the main chain.
|
void |
cycle()
Deprecated.
Deals with cyclic main chains.
|
void |
dBlockMetals()
Deprecated.
|
void |
disable_tracing()
Deprecated.
Disable tracing.
|
void |
enable_tracing()
Deprecated.
Enable tracing.
|
void |
endFunctionalGroups()
Deprecated.
Functional groups which occur at the end of the main chain and need
a connecting "an".
|
void |
fBlockMetals()
Deprecated.
|
void |
functionalGroupPrefix()
Deprecated.
The functional group part of the prefix
|
static IAtomContainer |
generate(String stringToParse)
Deprecated.
Parses the chemical name and returns the built molecule.
|
static IAtomContainer |
generate(String stringToParse,
IChemObjectBuilder builder)
Deprecated.
Parses the chemical name and returns the built molecule.
|
ParseException |
generateParseException()
Deprecated.
Generate ParseException.
|
Token |
getNextToken()
Deprecated.
Get the next Token.
|
Token |
getToken(int index)
Deprecated.
Get the specific Token.
|
void |
groupOneMetals()
Deprecated.
|
void |
groupTwoMetals()
Deprecated.
|
void |
mainChainConstruct()
Deprecated.
Main chains are compulsary and consist of an optional "cyclo", a length prefix and
a posfix denoting functional groups.
|
void |
mainChainPrefix()
Deprecated.
Deal with the main chain's length.
|
void |
mainChainSuffix()
Deprecated.
Figure out the functional group by the main chain's suffix.
|
void |
oneAttachLocation()
Deprecated.
Only one attach location specified, should be followed by a dash.
|
void |
pBlockMetals()
Deprecated.
|
void |
prefixConstruct()
Deprecated.
Allows 1 or more prefixes
|
void |
prefixFunctionalGroups()
Deprecated.
|
void |
prefixType()
Deprecated.
|
void |
prioritySubstituents()
Deprecated.
Things which have sub chains branching off them but the molecule has no main chain.
|
void |
prioritySubstituentsFunGroups()
Deprecated.
Things which have sub chains branching off them and the molecule does have a main chain.
|
void |
ReInit(InputStream stream)
Deprecated.
Reinitialise.
|
void |
ReInit(InputStream stream,
String encoding)
Deprecated.
Reinitialise.
|
void |
ReInit(NomParserTokenManager tm)
Deprecated.
Reinitialise.
|
void |
ReInit(Reader stream)
Deprecated.
Reinitialise.
|
void |
specialCase()
Deprecated.
Deal with special cases where the rules don't apply.
|
void |
subChain()
Deprecated.
The substituent part of the prefix
|
void |
tensNoUnits()
Deprecated.
Deal with fragments refering to the positioning of the base numbers (denoting their magnitude)
|
void |
tensWithUnits()
Deprecated.
Deals with numbers above 30 where the base numbers set appear twice.
|
void |
twoOrThreeAttachLocations()
Deprecated.
Two or three attach locations specidied, handle the second and if needed, the third one here.
|
public NomParserTokenManager token_source
public Token token
public Token jj_nt
public NomParser(InputStream stream)
public NomParser(InputStream stream, String encoding)
public NomParser(Reader stream)
public NomParser(NomParserTokenManager tm)
public static IAtomContainer generate(String stringToParse) throws ParseException, CDKException
DefaultChemObjectBuilder
to create a data model.stringToParse
- A case-insensitive name of the chemical to build.ParseException
- Any error which occur in the parsing get wrapped
up in a ParseException and thrown.CDKException
public static IAtomContainer generate(String stringToParse, IChemObjectBuilder builder) throws ParseException, CDKException
IChemObjectBuilder
to create a data model.stringToParse
- A case-insensitive name of the chemical to build.ParseException
- Any error which occur in the parsing get wrapped
up in a ParseException and thrown.CDKException
public final void completeChemicalName() throws ParseException
ParseException
public final void prefixConstruct() throws ParseException
ParseException
public final void prefixType() throws ParseException
ParseException
public final void subChain() throws ParseException
ParseException
public final void attachLocationSpecified() throws ParseException
ParseException
public final void oneAttachLocation() throws ParseException
ParseException
public final void twoOrThreeAttachLocations() throws ParseException
ParseException
public final void chainPrefix() throws ParseException
ParseException
public final void specialCase() throws ParseException
ParseException
public final void allBaseNumbers() throws ParseException
ParseException
public final void tensNoUnits() throws ParseException
ParseException
public final void tensWithUnits() throws ParseException
ParseException
public final void functionalGroupPrefix() throws ParseException
ParseException
public final void mainChainConstruct() throws ParseException
ParseException
public final void cycle() throws ParseException
ParseException
public final void mainChainPrefix() throws ParseException
ParseException
public final void bondType() throws ParseException
ParseException
public final void mainChainSuffix() throws ParseException
ParseException
public final void endFunctionalGroups() throws ParseException
ParseException
public final void connectingFunctionalGroupsConstruct() throws ParseException
ParseException
public final void connectingFunctionalGroupSuffix() throws ParseException
ParseException
public final void prefixFunctionalGroups() throws ParseException
ParseException
public final void prioritySubstituentsFunGroups() throws ParseException
ParseException
public final void prioritySubstituents() throws ParseException
ParseException
public final void groupOneMetals() throws ParseException
ParseException
public final void groupTwoMetals() throws ParseException
ParseException
public final void dBlockMetals() throws ParseException
ParseException
public final void pBlockMetals() throws ParseException
ParseException
public final void fBlockMetals() throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(NomParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2017. All Rights Reserved.