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.CDKExceptionpublic 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.CDKExceptionpublic final void completeChemicalName()
throws ParseException
ParseExceptionpublic final void prefixConstruct()
throws ParseException
ParseExceptionpublic final void prefixType()
throws ParseException
ParseExceptionpublic final void subChain()
throws ParseException
ParseExceptionpublic final void attachLocationSpecified()
throws ParseException
ParseExceptionpublic final void oneAttachLocation()
throws ParseException
ParseExceptionpublic final void twoOrThreeAttachLocations()
throws ParseException
ParseExceptionpublic final void chainPrefix()
throws ParseException
ParseExceptionpublic final void specialCase()
throws ParseException
ParseExceptionpublic final void allBaseNumbers()
throws ParseException
ParseExceptionpublic final void tensNoUnits()
throws ParseException
ParseExceptionpublic final void tensWithUnits()
throws ParseException
ParseExceptionpublic final void functionalGroupPrefix()
throws ParseException
ParseExceptionpublic final void mainChainConstruct()
throws ParseException
ParseExceptionpublic final void cycle()
throws ParseException
ParseExceptionpublic final void mainChainPrefix()
throws ParseException
ParseExceptionpublic final void bondType()
throws ParseException
ParseExceptionpublic final void mainChainSuffix()
throws ParseException
ParseExceptionpublic final void endFunctionalGroups()
throws ParseException
ParseExceptionpublic final void connectingFunctionalGroupsConstruct()
throws ParseException
ParseExceptionpublic final void connectingFunctionalGroupSuffix()
throws ParseException
ParseExceptionpublic final void prefixFunctionalGroups()
throws ParseException
ParseExceptionpublic final void prioritySubstituentsFunGroups()
throws ParseException
ParseExceptionpublic final void prioritySubstituents()
throws ParseException
ParseExceptionpublic final void groupOneMetals()
throws ParseException
ParseExceptionpublic final void groupTwoMetals()
throws ParseException
ParseExceptionpublic final void dBlockMetals()
throws ParseException
ParseExceptionpublic final void pBlockMetals()
throws ParseException
ParseExceptionpublic final void fBlockMetals()
throws ParseException
ParseExceptionpublic 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.