Package rxpy :: Package engine :: Package simple :: Module engine :: Class State
[hide private]
[frames] | no frames]

Class State

source code


State for a particular position moment / graph position / text offset.
Instance Methods [hide private]
 
__init__(self, text, groups, previous=None, offset=0, loops=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
clone(self, offset=None)
Duplicate this state.
source code
 
advance(self)
Used in search to increment start point.
source code
 
string(self, text) source code
 
character(self, charset) source code
 
start_group(self, number) source code
 
end_group(self, number) source code
 
increment(self, node) source code
 
drop(self, node) source code
 
dot(self, multiline=True) source code
 
start_of_line(self, multiline) source code
 
end_of_line(self, multiline) source code
 
similar(self, other)
Is this state similar to the one given? In particular, are the groups and loops values identical (so we only differ by offset)?
source code
 
groups(self) source code
 
offset(self) source code
 
text(self) source code
 
previous(self) source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, text, groups, previous=None, offset=0, loops=None)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

clone(self, offset=None)

source code 
Duplicate this state. If offset is specified, it must be greater than or equal the existing offset; then the text and offset of the clone will be consistent with the new value.

groups(self)

source code 
Decorators:
  • @property

offset(self)

source code 
Decorators:
  • @property

text(self)

source code 
Decorators:
  • @property

previous(self)

source code 
Decorators:
  • @property