Class DefaultImportCustomizer.Builder
java.lang.Object
org.apache.tinkerpop.gremlin.jsr223.DefaultImportCustomizer.Builder
- Enclosing class:
- DefaultImportCustomizer
-
Method Summary
Modifier and TypeMethodDescriptionaddClassImports(Class... clazz) Adds classes that will be imported to theScriptEngine.addClassImports(Collection<Class> classes) Overload toaddClassImports(Class[]).addEnumImports(Enum... e) Adds methods that are meant to be imported statically to the engine.addEnumImports(Collection<Enum> enums) Overload toaddEnumImports(Enum[]).addFieldImports(Field... field) Adds fields that are meant to be imported statically to the engine.addFieldImports(Collection<Field> fields) Overload toaddFieldImports(Field...).addMethodImports(Method... method) Adds methods that are meant to be imported statically to the engine.addMethodImports(Collection<Method> methods) Overload toaddMethodImports(Method...).create()
-
Method Details
-
addClassImports
Adds classes that will be imported to theScriptEngine. -
addClassImports
Overload toaddClassImports(Class[]). -
addMethodImports
Adds methods that are meant to be imported statically to the engine. When adding methods be sure that the classes of those methods are added to theaddClassImports(Class[])oraddClassImports(Collection). If they are not added then the certainScriptEngineinstances may have problems importing the methods (e.g. gremlin-python). -
addMethodImports
Overload toaddMethodImports(Method...). -
addFieldImports
Adds fields that are meant to be imported statically to the engine. When adding fields be sure that the classes of those fields are added to theaddClassImports(Class[])oraddClassImports(Collection). If they are not added then the certainScriptEngineinstances may have problems importing the methods (e.g. gremlin-python). -
addFieldImports
Overload toaddFieldImports(Field...). -
addEnumImports
Adds methods that are meant to be imported statically to the engine. When adding methods be sure that the classes of those methods are added to theaddClassImports(Class[])oraddClassImports(Collection). If they are not added then the certainScriptEngineinstances may have problems importing the methods (e.g. gremlin-python). -
addEnumImports
Overload toaddEnumImports(Enum[]). -
create
-