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 chirality (@, @@, etc) in smarts. 22 * 23 * @author Dazhi Jiao 24 * @cdk.created 2007-04-24 25 * @cdk.module smarts 26 * @cdk.githash 27 * @cdk.keyword SMARTS 28 */ 29 @Deprecated 30 class ASTChirality extends SimpleNode { 31 32 private boolean unspecified = false; 33 private boolean clockwise = true; 34 35 /** 36 * Creates a new instance 37 * 38 * @param id 39 */ ASTChirality(int id)40 public ASTChirality(int id) { 41 super(id); 42 } 43 44 /** 45 * Creates a new instance 46 * 47 * @param p 48 * @param id 49 */ ASTChirality(SMARTSParser p, int id)50 public ASTChirality(SMARTSParser p, int id) { 51 super(p, id); 52 } 53 54 /* 55 * (non-Javadoc) 56 * @see 57 * org.openscience.cdk.smiles.smarts.parser.SimpleNode#jjtAccept(org.openscience 58 * .cdk.smiles.smarts.parser.SMARTSParserVisitor, java.lang.Object) 59 */ 60 @Override jjtAccept(SMARTSParserVisitor visitor, Object data)61 public Object jjtAccept(SMARTSParserVisitor visitor, Object data) { 62 return visitor.visit(this, data); 63 } 64 isUnspecified()65 public boolean isUnspecified() { 66 return unspecified; 67 } 68 setUnspecified(boolean unspecified)69 public void setUnspecified(boolean unspecified) { 70 this.unspecified = unspecified; 71 } 72 isClockwise()73 public boolean isClockwise() { 74 return clockwise; 75 } 76 setClockwise(boolean clockwise)77 public void setClockwise(boolean clockwise) { 78 this.clockwise = clockwise; 79 } 80 } 81