gremlin
    Preparing search index...

    Anonymizes a Gremlin traversal by replacing literal values with type-based placeholders (e.g. string0, number1). Identical values within the same traversal reuse the same placeholder. Mirrors the Java AnonymizedTranslatorVisitor.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    anonymize appendAnonymousSpawn appendArgumentSeparator appendExplicitNaming appendStepClose appendStepOpen appendStepSeparator getCardinalityFunctionClass getParameters getTranslated handleStringLiteralText processGremlinSymbol visit visitBooleanArgument visitBooleanLiteral visitChildren visitDateLiteral visitErrorNode visitFloatLiteral visitGenericArgument visitGenericCollectionLiteral visitGenericLiteral visitGenericMapLiteral visitGenericMapNullableArgument visitGenericSetLiteral visitInfLiteral visitIntegerLiteral visitKeyword visitMapEntry visitMapKey visitNakedKey visitNanLiteral visitNestedTraversal visitNullLiteral visitP visitStringLiteral visitStringNullableLiteral visitTerminal visitTraversalBarrier visitTraversalCardinality visitTraversalColumn visitTraversalDirection visitTraversalDirectionLong visitTraversalDirectionShort visitTraversalDT visitTraversalGType visitTraversalMerge visitTraversalOperator visitTraversalOrder visitTraversalPick visitTraversalPop visitTraversalPredicate visitTraversalPredicate_between visitTraversalPredicate_containing visitTraversalPredicate_endingWith visitTraversalPredicate_eq visitTraversalPredicate_gt visitTraversalPredicate_gte visitTraversalPredicate_inside visitTraversalPredicate_lt visitTraversalPredicate_lte visitTraversalPredicate_neq visitTraversalPredicate_not visitTraversalPredicate_notContaining visitTraversalPredicate_notEndingWith visitTraversalPredicate_notRegex visitTraversalPredicate_notStartingWith visitTraversalPredicate_outside visitTraversalPredicate_regex visitTraversalPredicate_startingWith visitTraversalPredicate_typeOf visitTraversalPredicate_within visitTraversalPredicate_without visitTraversalScope visitTraversalSource visitTraversalSourceSelfMethod visitTraversalT visitTraversalTLong visitTraversalTShort visitUuidLiteral visitVariable removeFirstAndLastCharacters

    Constructors

    Properties

    graphTraversalSourceName: string
    parameters: Set<string> = ...
    sb: string[] = []

    Methods

    • Replaces the text of ctx with a type-tagged placeholder. The first unique value of each type gets index 0, the second index 1, etc. Repeated occurrences of the same text reuse the same placeholder.

      Parameters

      • ctx: any

        ANTLR parse-tree context whose getText() is used as the cache key

      • type: string

        Java simple class name (e.g. "String", "Integer", "Number")

      Returns void