1 /* Copyright (C) 2004-2007  The Chemistry Development Kit (CDK) project
2  *
3  * This library is free software; you can redistribute it and/or
4  * modify it under the terms of the GNU Lesser General Public
5  * License as published by the Free Software Foundation; either
6  * version 2.1 of the License, or (at your option) any later version.
7  *
8  * This library is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11  * Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public
14  * License along with this library; if not, write to the Free Software
15  * Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
16  * (or see http://www.gnu.org/copyleft/lesser.html)
17  */
18 package org.openscience.cdk.smiles.smarts.parser;
19 
20 /**
21  * An AST node. It represents a recursive smarts string in smarts.
22  *
23  * @author Dazhi Jiao
24  * @cdk.created 2007-04-24
25  * @cdk.module smarts
26  * @cdk.githash
27  * @cdk.keyword SMARTS AST
28  */
29 @Deprecated
30 class ASTRecursiveSmartsExpression extends SimpleNode {
31 
32     /**
33      * Creates a new instance.
34      */
ASTRecursiveSmartsExpression(int id)35     public ASTRecursiveSmartsExpression(int id) {
36         super(id);
37     }
38 
39     /**
40      * Creates a new instance.
41      */
ASTRecursiveSmartsExpression(SMARTSParser p, int id)42     public ASTRecursiveSmartsExpression(SMARTSParser p, int id) {
43         super(p, id);
44     }
45 
46     /*
47      * (non-Javadoc)
48      * @see
49      * org.openscience.cdk.smiles.smarts.parser.SimpleNode#jjtAccept(org.openscience
50      * .cdk.smiles.smarts.parser.SMARTSParserVisitor, java.lang.Object)
51      */
52     @Override
jjtAccept(SMARTSParserVisitor visitor, Object data)53     public Object jjtAccept(SMARTSParserVisitor visitor, Object data) {
54         return visitor.visit(this, data);
55     }
56 }
57