Class GremlinScriptChecker
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.groovy.jsr223.GremlinScriptChecker
-
public class GremlinScriptChecker extends Object
Processes Gremlin strings using regex to try to detect certain properties from the script without actual having to execute aeval()
on it.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GremlinScriptChecker.Result
A result returned from aparse(String)
of a Gremlin string.
-
Field Summary
Fields Modifier and Type Field Description static GremlinScriptChecker.Result
EMPTY_RESULT
An empty result whose properties return as empty.
-
Constructor Summary
Constructors Constructor Description GremlinScriptChecker()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GremlinScriptChecker.Result
parse(String gremlin)
Parses a Gremlin script and extracts aResult
containing properties that are relevant to the checker.
-
-
-
Field Detail
-
EMPTY_RESULT
public static final GremlinScriptChecker.Result EMPTY_RESULT
An empty result whose properties return as empty.
-
-
Method Detail
-
parse
public static GremlinScriptChecker.Result parse(String gremlin)
Parses a Gremlin script and extracts aResult
containing properties that are relevant to the checker.
-
-