ImplementJavaInterface
ImplementJavaInterface[interfaces,mappings]
uses the Dynamic Proxy facility of Java to create a new Java class and return an object of that class that implements the named interface or list of interfaces by calling back into the Wolfram Language. In short, it lets you create a Java object that implements a given Java interface entirely in Wolfram Language code.
更多信息和选项
- To use ImplementJavaInterface, you first need to load J/Link using Needs["JLink`"].
- mappings is a list of rules that specify the name of the Java method and the name of the method that will be called in the Wolfram Language to implement the body of that method, as in "intfMeth1"->"mathHandlerMethod1". The arguments passed to the Wolfram Language method will be exactly the arguments originally passed to the Java method.
文本
Wolfram Research (2007),ImplementJavaInterface,Wolfram 语言函数,https://reference.wolfram.com/language/JLink/ref/ImplementJavaInterface.html.
CMS
Wolfram 语言. 2007. "ImplementJavaInterface." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/JLink/ref/ImplementJavaInterface.html.
APA
Wolfram 语言. (2007). ImplementJavaInterface. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/JLink/ref/ImplementJavaInterface.html 年