Utilities

PyAntlr4

Third-party Python package module — antlr4. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.PredictionContext.PredictionContextFromRuleContext()Neutral
#
Signature
PredictionContext.PredictionContextFromRuleContext(atn, outerContext)

PredictionContext.PredictionContextFromRuleContext function.

.PredictionContext.calculateHashCode()Neutral
#
Signature
PredictionContext.calculateHashCode(parent, returnState)

PredictionContext.calculateHashCode function.

.PredictionContext.calculateListsHashCode()Neutral
#
Signature
PredictionContext.calculateListsHashCode(parents, returnStates)

PredictionContext.calculateListsHashCode function.

.PredictionContext.combineCommonParents()Neutral
#
Signature
PredictionContext.combineCommonParents(parents)

PredictionContext.combineCommonParents function.

.PredictionContext.getAllContextNodes()Neutral
#
Signature
PredictionContext.getAllContextNodes(context, nodes, visited)

PredictionContext.getAllContextNodes function.

.PredictionContext.getCachedPredictionContext()Neutral
#
Signature
PredictionContext.getCachedPredictionContext(context, contextCache, visited)

PredictionContext.getCachedPredictionContext function.

.PredictionContext.merge()Neutral
#
Signature
PredictionContext.merge(a, b, rootIsWildcard, mergeCache)

PredictionContext.merge function.

.PredictionContext.mergeArrays()Neutral
#
Signature
PredictionContext.mergeArrays(a, b, rootIsWildcard, mergeCache)

PredictionContext.mergeArrays function.

.PredictionContext.mergeRoot()Neutral
#
Signature
PredictionContext.mergeRoot(a, b, rootIsWildcard)

PredictionContext.mergeRoot function.

.PredictionContext.mergeSingletons()Neutral
#
Signature
PredictionContext.mergeSingletons(a, b, rootIsWildcard, mergeCache)

PredictionContext.mergeSingletons function.

Fully-Qualified Names

FQNField
antlr4fqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

rule.py
import antlr4