MatcherGenerator<E extends Matcher<Expression>> class

Implementers

Constructors

MatcherGenerator(E matcher)

Properties

allocator ↔ VariableAllocator?
getter/setter pair
fail ↔ CodeBlock?
getter/setter pair
generate ↔ void Function(CodeBlock block, MatcherGeneratorAccept accept)
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isVariableDeclared bool
getter/setter pair
matcher → E
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stored Map<String, String>
getter/setter pair
success ↔ CodeBlock?
getter/setter pair
variable String?
getter/setter pair
variables Map<String, String>
getter/setter pair

Methods

acceptChild(MatcherVisitor<MatcherGenerator<Matcher<Expression>>> visitor, Matcher<Expression> matcher, MatcherGenerator<Matcher<Expression>> parent) MatcherGenerator<Matcher<Expression>>
addVariables(MatcherGenerator<Matcher<Expression>> other) → void
allocate() String
allocateVariable() String?
declareVariable(CodeBlock block, [String? type]) String?
generatePostCode(MatcherGenerator<Matcher<Expression>> generator, CodeBlock block, void success(CodeBlock block)?, void fail(CodeBlock block)?) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
restore(CodeBlock block, String name) → void
restoreAll(CodeBlock block) → void
store(CodeBlock block, String name) String
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited