Sha256: 26bfbbf58a1bce2d29499963f0c97abdd908a1bb37e8b0c1ef41f97c08e46e86

Contents?: true

Size: 799 Bytes

Versions: 1

Compression:

Stored size: 799 Bytes

Contents

package toxTree.query;

import org.openscience.cdk.interfaces.IAtom;
import org.openscience.cdk.isomorphism.matchers.smarts.AnyAtom;

/**
 * To be used instead of org.openscience.cdk.isomorphism.matchers.smarts.AnyAtom until its matcher code is fixed
<pre>
    public boolean matches(IAtom atom) {
        if (atom.getSymbol().equals("H")) {
            Integer massNumber = atom.getMassNumber();
            return massNumber != null;
        }
        return true;
    }
</pre>
 * @author nina
 *
 */
public class ReallyAnyAtom extends AnyAtom {

	  /**
	 * 
	 */
	private static final long serialVersionUID = -2338751806424429161L;
	@Override
	public boolean matches(IAtom atom) {

		return true;
	}
	  public String toString() {
			return "AnyAtom()";
	    }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
toxtree-0.0.1 Toxtree-v2.6.13/src/toxTree/query/ReallyAnyAtom.java