public <V> Script getBoundKeyOrAssign(final boolean withParameters, final V value) {
        if (withParameters) {
            if (!parameters.containsKey(value)) {
                parameters.put(value, getNextBoundKey());
            }
            append(parameters.get(value));
        } else {
            append(value.toString());
        }
        return this;
    }
General representation of script

@author Stark Arya (sandszhou.zj@alibaba-inc.com)
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/Script.java