1 /* Generated By:JJTree: Do not edit this line. ASTHybrdizationNumber.java */
2 
3 package org.openscience.cdk.smiles.smarts.parser;
4 
5 /**
6  * An AST node. Matches an atom with the specified hybridization.
7  *
8  * This is not specified in the original Daylight specification, but
9  * is supported by OpenEye. The hybridization is specified numerically
10  * ranging from 1 to 8, corresponding to SP1, SP2, SP3, SP3D1, SP3D2
11  * SP3D3, SP3D4 and SP3D5
12  *
13  * @author Rajarshi Guha
14  * @cdk.created 2008-10-14
15  * @cdk.module smarts
16  * @cdk.githash
17  * @cdk.keyword SMARTS AST
18  */
19 @Deprecated
20 class ASTHybrdizationNumber extends SimpleNode {
21 
22     int hybridizationNumber;
23 
ASTHybrdizationNumber(int id)24     public ASTHybrdizationNumber(int id) {
25         super(id);
26     }
27 
ASTHybrdizationNumber(SMARTSParser p, int id)28     public ASTHybrdizationNumber(SMARTSParser p, int id) {
29         super(p, id);
30     }
31 
getHybridizationNumber()32     public int getHybridizationNumber() {
33         return hybridizationNumber;
34     }
35 
setHybridizationNumber(int hybridizationNumber)36     public void setHybridizationNumber(int hybridizationNumber) {
37         this.hybridizationNumber = hybridizationNumber;
38     }
39 
40     /**
41      * Accept the visitor. *
42      */
43     @Override
jjtAccept(SMARTSParserVisitor visitor, Object data)44     public Object jjtAccept(SMARTSParserVisitor visitor, Object data) {
45         return visitor.visit(this, data);
46     }
47 }
48