JLink`
JLink`
InstanceOf
InstanceOf[javaobject,javaclass]
gives True if javaobject is an instance of the class or interface javaclass, or a subclass. Otherwise, it returns False.
InstanceOf[javaobject,"classname"]
gives True if javaobject is an instance of the named class or interface, or a subclass.
更多信息和选项
- To use InstanceOf, you first need to load J/Link using Needs["JLink`"].
- InstanceOf mimics the behavior of the Java language's instanceof operator.
Wolfram Research (2007),InstanceOf,Wolfram 语言函数,https://reference.wolfram.com/language/JLink/ref/InstanceOf.html.
文本
Wolfram Research (2007),InstanceOf,Wolfram 语言函数,https://reference.wolfram.com/language/JLink/ref/InstanceOf.html.
CMS
Wolfram 语言. 2007. "InstanceOf." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/JLink/ref/InstanceOf.html.
APA
Wolfram 语言. (2007). InstanceOf. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/JLink/ref/InstanceOf.html 年