Logo Search packages:      
Sourcecode: cdk version File versions  Download package

String org::openscience::cdk::isomorphism::matchers::smarts::OrderQueryBond::toString (  )  [inline]

Returns a one line string representation of this Container. This method is conform RFC #9.

Returns:
The string representation of this Container

Reimplemented from org::openscience::cdk::Bond.

Definition at line 51 of file OrderQueryBond.java.

References org::openscience::cdk::Bond::atoms(), and org::openscience::cdk::Bond::getOrder().

                             {
            StringBuffer s = new StringBuffer();
            s.append("OrderQueryBond(");
        s.append(this.hashCode() + ", ");
            s.append("#O:" + getOrder());
            s.append(", #A:" + atoms.length);
            for (int i = 0; i < atoms.length; i++) {
                  if (atoms[i] == null) {
                        s.append(", null");
                  } else {
                        s.append(", " + atoms[i].toString());
                  }
            }
            s.append(")");
            return s.toString();
    }


Generated by  Doxygen 1.6.0   Back to index