public static class DefaultImportCustomizer.Builder extends Object
Modifier and Type | Method and Description |
---|---|
DefaultImportCustomizer.Builder |
addClassImports(Class... clazz)
Adds classes that will be imported to the
ScriptEngine . |
DefaultImportCustomizer.Builder |
addClassImports(Collection<Class> classes)
Overload to
addClassImports(Class[]) . |
DefaultImportCustomizer.Builder |
addEnumImports(Collection<Enum> enums)
Overload to
addEnumImports(Enum[]) . |
DefaultImportCustomizer.Builder |
addEnumImports(Enum... e)
Adds methods that are meant to be imported statically to the engine.
|
DefaultImportCustomizer.Builder |
addMethodImports(Collection<Method> methods)
Overload to
addMethodImports(Method...) . |
DefaultImportCustomizer.Builder |
addMethodImports(Method... method)
Adds methods that are meant to be imported statically to the engine.
|
DefaultImportCustomizer |
create() |
public DefaultImportCustomizer.Builder addClassImports(Class... clazz)
ScriptEngine
.public DefaultImportCustomizer.Builder addClassImports(Collection<Class> classes)
addClassImports(Class[])
.public DefaultImportCustomizer.Builder addMethodImports(Method... method)
addClassImports(Class[])
or
addClassImports(Collection)
. If they are not added then the certain ScriptEngine
instances
may have problems importing the methods (e.g. gremlin-python).public DefaultImportCustomizer.Builder addMethodImports(Collection<Method> methods)
addMethodImports(Method...)
.public DefaultImportCustomizer.Builder addEnumImports(Enum... e)
addClassImports(Class[])
or
addClassImports(Collection)
. If they are not added then the certain ScriptEngine
instances
may have problems importing the methods (e.g. gremlin-python).public DefaultImportCustomizer.Builder addEnumImports(Collection<Enum> enums)
addEnumImports(Enum[])
.public DefaultImportCustomizer create()
Copyright © 2013–2019 Apache Software Foundation. All rights reserved.