org.openscience.cdk.smiles.smarts.parser
Class ASTExplicitConnectivity

java.lang.Object
  extended by org.openscience.cdk.smiles.smarts.parser.SimpleNode
      extended by org.openscience.cdk.smiles.smarts.parser.ASTExplicitConnectivity
All Implemented Interfaces:
Cloneable, Node

public class ASTExplicitConnectivity
extends SimpleNode

An AST node. It represents the explicit connectivity (D) in smarts.

Author:
Dazhi Jiao
Keywords:
SMARTS AST
Created on:
2007-05-10
Belongs to CDK module:
smarts
Source code:
HEAD

Constructor Summary
ASTExplicitConnectivity(int id)
          Creates a new instance.
ASTExplicitConnectivity(SMARTSParser p, int id)
          Creates a new instance.
 
Method Summary
 int getNumOfConnection()
          Returns the number of explicit connections.
 Object jjtAccept(SMARTSParserVisitor visitor, Object data)
          Accept the visitor.
 void setNumOfConnection(int degree)
          Sets the number of explicit connections.
 
Methods inherited from class org.openscience.cdk.smiles.smarts.parser.SimpleNode
childrenAccept, clone, dump, getId, getParser, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtRemoveChild, jjtSetParent, setId, setParser, toString, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ASTExplicitConnectivity

public ASTExplicitConnectivity(int id)
Creates a new instance.


ASTExplicitConnectivity

public ASTExplicitConnectivity(SMARTSParser p,
                               int id)
Creates a new instance.

Method Detail

getNumOfConnection

public int getNumOfConnection()
Returns the number of explicit connections.


jjtAccept

public Object jjtAccept(SMARTSParserVisitor visitor,
                        Object data)
Description copied from class: SimpleNode
Accept the visitor. *

Specified by:
jjtAccept in interface Node
Overrides:
jjtAccept in class SimpleNode

setNumOfConnection

public void setNumOfConnection(int degree)
Sets the number of explicit connections.