-
@Deprecated(since="11", forRemoval=true) public interface ClassFilter
Deprecated, for removal: This API element is subject to removal in a future version.Nashorn JavaScript script engine and APIs, and the jjs tool are deprecated with the intent to remove them in a future release.nashorn脚本引擎使用的类过滤器(可选)。 jsr-223程序嵌入nashorn脚本可以设置在创建引擎实例时使用的ClassFilter实例。- 从以下版本开始:
- 1.8u40
-
-
方法摘要
所有方法 实例方法 抽象方法 弃用的方法 变量和类型 方法 描述 boolean
exposeToScripts(String className)
不推荐使用,要删除:此API元素将在以后的版本中删除。是否应将指定名称的Java类公开给脚本?
-
-
-
方法详细信息
-
exposeToScripts
boolean exposeToScripts(String className)
Deprecated, for removal: This API element is subject to removal in a future version.是否应将指定名称的Java类公开给脚本?- 参数
-
className
- 是要检查的java类的完全限定名称。 这不会为空。 只传递非数组类名。 - 结果
- true if the java class can be exposed to scripts false otherwise
-
-