use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
#[deprecated]
pub struct DOMXPathExpression;
#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
unsafe impl ClassType for DOMXPathExpression {
#[inherits(WebScriptObject, NSObject)]
type Super = DOMObject;
type Mutability = InteriorMutable;
}
);
#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
unsafe impl NSCopying for DOMXPathExpression {}
#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
unsafe impl NSObjectProtocol for DOMXPathExpression {}
extern_methods!(
#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
unsafe impl DOMXPathExpression {
#[cfg(all(feature = "DOMNode", feature = "DOMXPathResult"))]
#[method_id(@__retain_semantics Other evaluate:type:inResult:)]
pub unsafe fn evaluate_type_inResult(
&self,
context_node: Option<&DOMNode>,
r#type: c_ushort,
in_result: Option<&DOMXPathResult>,
) -> Option<Retained<DOMXPathResult>>;
}
);
extern_methods!(
#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
unsafe impl DOMXPathExpression {
#[deprecated]
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
}
);
extern_methods!(
#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
unsafe impl DOMXPathExpression {
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern_methods!(
#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
unsafe impl DOMXPathExpression {
#[cfg(all(feature = "DOMNode", feature = "DOMXPathResult"))]
#[deprecated]
#[method_id(@__retain_semantics Other evaluate:::)]
pub unsafe fn evaluate(
&self,
context_node: Option<&DOMNode>,
r#type: c_ushort,
in_result: Option<&DOMXPathResult>,
) -> Option<Retained<DOMXPathResult>>;
}
);