Class DefaultImportCustomizer.Builder
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.jsr223.DefaultImportCustomizer.Builder
-
- Enclosing class:
- DefaultImportCustomizer
public static class DefaultImportCustomizer.Builder extends Object
-
-
Method Summary
-
-
-
Method Detail
-
addClassImports
public DefaultImportCustomizer.Builder addClassImports(Class... clazz)
Adds classes that will be imported to theScriptEngine
.
-
addClassImports
public DefaultImportCustomizer.Builder addClassImports(Collection<Class> classes)
Overload toaddClassImports(Class[])
.
-
addMethodImports
public DefaultImportCustomizer.Builder addMethodImports(Method... method)
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 certainScriptEngine
instances may have problems importing the methods (e.g. gremlin-python).
-
addMethodImports
public DefaultImportCustomizer.Builder addMethodImports(Collection<Method> methods)
Overload toaddMethodImports(Method...)
.
-
addFieldImports
public DefaultImportCustomizer.Builder addFieldImports(Field... field)
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 certainScriptEngine
instances may have problems importing the methods (e.g. gremlin-python).
-
addFieldImports
public DefaultImportCustomizer.Builder addFieldImports(Collection<Field> fields)
Overload toaddFieldImports(Field...)
.
-
addEnumImports
public DefaultImportCustomizer.Builder addEnumImports(Enum... e)
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 certainScriptEngine
instances may have problems importing the methods (e.g. gremlin-python).
-
addEnumImports
public DefaultImportCustomizer.Builder addEnumImports(Collection<Enum> enums)
Overload toaddEnumImports(Enum[])
.
-
create
public DefaultImportCustomizer create()
-
-