Class DefaultImportCustomizer
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.jsr223.DefaultImportCustomizer
-
- All Implemented Interfaces:
Customizer
,ImportCustomizer
public class DefaultImportCustomizer extends Object implements ImportCustomizer
Simple implementation of theImportCustomizer
which allows direct setting of all the different import types.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefaultImportCustomizer.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultImportCustomizer.Builder
build()
Set<Class>
getClassImports()
Gets the set of classes to be imported to theGremlinScriptEngine
.Set<Enum>
getEnumImports()
Gets the set of enums to be imported to theGremlinScriptEngine
.Set<Field>
getFieldImports()
Gets the set of fields to be imported to theGremlinScriptEngine
.Set<Method>
getMethodImports()
Gets the set of static methods to be imported to theGremlinScriptEngine
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.tinkerpop.gremlin.jsr223.ImportCustomizer
getClassPackages, getEnumClasses, getFieldClasses, getMethodClasses
-
-
-
-
Method Detail
-
getClassImports
public Set<Class> getClassImports()
Description copied from interface:ImportCustomizer
Gets the set of classes to be imported to theGremlinScriptEngine
.- Specified by:
getClassImports
in interfaceImportCustomizer
-
getMethodImports
public Set<Method> getMethodImports()
Description copied from interface:ImportCustomizer
Gets the set of static methods to be imported to theGremlinScriptEngine
.- Specified by:
getMethodImports
in interfaceImportCustomizer
-
getEnumImports
public Set<Enum> getEnumImports()
Description copied from interface:ImportCustomizer
Gets the set of enums to be imported to theGremlinScriptEngine
.- Specified by:
getEnumImports
in interfaceImportCustomizer
-
getFieldImports
public Set<Field> getFieldImports()
Description copied from interface:ImportCustomizer
Gets the set of fields to be imported to theGremlinScriptEngine
.- Specified by:
getFieldImports
in interfaceImportCustomizer
-
build
public static DefaultImportCustomizer.Builder build()
-
-