Package rxpy :: Package graph :: Module opcode :: Class GroupConditional
[hide private]
[frames] | no frames]

Class GroupConditional

source code


Branch the graph, depending on the existence of a group.

Instance Methods [hide private]
 
__init__(self, number, label, lazy=True)
Subclasses should pay attention to the relationship between constructor kargs and attributes assumed in .clone.
source code
 
__str__(self)
Subclasses must implement something useful here, which will be displayed in the graphviz node (see repr).
source code
 
size(self, groups)
The number of characters matched by this and subsequence nodes, if known, otherwise None.
source code
 
visit(self, visitor, state=None)
The visitor pattern - used to evaluate the graph by an interpreter, for example.
source code

Inherited from support.BaseSplitNode: concatenate

Inherited from support.BaseNode: __repr__, clone, consumer, deep_eq, start

Inherited from support.BaseNode (private): _kargs, _node_eq

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, number, label, lazy=True)
(Constructor)

source code 
Subclasses should pay attention to the relationship between constructor kargs and attributes assumed in .clone.
Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 
Subclasses must implement something useful here, which will be displayed in the graphviz node (see repr).
Overrides: object.__str__
(inherited documentation)

size(self, groups)

source code 
The number of characters matched by this and subsequence nodes, if known, otherwise None. Nodes must give a single, fixed number or None, so any loops should return None.
Overrides: support.BaseNode.size
(inherited documentation)

visit(self, visitor, state=None)

source code 
The visitor pattern - used to evaluate the graph by an interpreter, for example. Calls back to the visitor via the interface described in rxpy.parser.visitor.Visitor.
Overrides: support.BaseNode.visit
(inherited documentation)