Operator class abstract
This is the base class for semantic context "operators", which operate on a collection of semantic context "operands".
@since 4.3
- Inheritance
-
- Object
- SemanticContext
- Operator
- Implementers
Constructors
- Operator()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
operands
→ List<
SemanticContext> -
Gets the operands for the semantic context operator.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
eval(
Recognizer< ATNSimulator> parser, RuleContext? parserCallStack) → bool -
For context independent predicates, we evaluate them without a local
context (i.e., null context). That way, we can evaluate them without
having to create proper rule-specific context during prediction (as
opposed to the parser, which creates them naturally). In a practical
sense, this avoids a cast exception from RuleContext to myruleContext.
inherited
-
evalPrecedence(
Recognizer< ATNSimulator> parser, RuleContext? parserCallStack) → SemanticContext? -
Evaluate the precedence predicates for the context and reduce the result.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited