using System; using System.Reflection; using ChemAxon.JNI; namespace chemaxon.struc { /// /// Chemical bond. /// public class QueryBond : chemaxon.struc.MolBondExt, java.io.Serializable { /// /// Construct an any bond between two atoms. /// /// /// public QueryBond(MolAtom a1, MolAtom a2) : base(a1, a2) { } /// /// Construct an any bond between two atoms. /// /// /// /// public QueryBond​(MolAtom a1, MolAtom a2, int flags) : base(a1, a2, flags) { } /// /// Construct a query bond between two atoms. /// /// /// /// public QueryBond​(MolAtom a1, MolAtom a2, string s) : base() { MethodBase methodBase = MethodBase.GetCurrentMethod(); string javaClassName = JavaNativeInterface.GetJavaClassName(methodBase.DeclaringType); string signature = JavaNativeInterface.GetSignature(methodBase, a1, a2, s); InitializeJavaClass(javaClassName); InitializeJavaObject(signature, a1, a2, s); } /// /// Copy constructor. /// /// public QueryBond​(QueryBond b) : base(b) { } /// /// Sets the query string. /// /// public void setQuerystr​(string s) { this.CallVoidMethod(MethodBase.GetCurrentMethod(), s); } /// /// Checks if two bonds have the same properties. /// /// /// public bool haveEqualProperties​(MolBond e) { return this.CallMethod(MethodBase.GetCurrentMethod(), e); } /// /// Gets the query properties. /// /// public string getQuerystr() { return this.CallMethod(MethodBase.GetCurrentMethod()); } } }