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 theImportCustomizerwhich 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 classDefaultImportCustomizer.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultImportCustomizer.Builderbuild()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:ImportCustomizerGets the set of classes to be imported to theGremlinScriptEngine.- Specified by:
getClassImportsin interfaceImportCustomizer
-
getMethodImports
public Set<Method> getMethodImports()
Description copied from interface:ImportCustomizerGets the set of static methods to be imported to theGremlinScriptEngine.- Specified by:
getMethodImportsin interfaceImportCustomizer
-
getEnumImports
public Set<Enum> getEnumImports()
Description copied from interface:ImportCustomizerGets the set of enums to be imported to theGremlinScriptEngine.- Specified by:
getEnumImportsin interfaceImportCustomizer
-
getFieldImports
public Set<Field> getFieldImports()
Description copied from interface:ImportCustomizerGets the set of fields to be imported to theGremlinScriptEngine.- Specified by:
getFieldImportsin interfaceImportCustomizer
-
build
public static DefaultImportCustomizer.Builder build()
-
-