Simple class for attribute data for each rule. More...
Public Member Functions | |
def | __init__ (self, name='dummy', type=id.ATTR_N, group=-1) |
Attr constructor. More... | |
def | reset (self) |
Reset all attributes to false. More... | |
def | dup (self) |
Create a duplicate attribute object from the present one. More... | |
def | copy (self, cpy) |
Copy a given attribute into the present attribute. More... | |
Public Attributes | |
left | |
nested | |
right | |
empty | |
finite | |
cyclic | |
leaf | |
is_open | |
is_complete | |
name | |
lower | |
type | |
group | |
Simple class for attribute data for each rule.
Definition at line 10 of file rule_attributes.py.
def apg_py.api.rule_attributes.Attr.__init__ | ( | self, | |
name = 'dummy' , |
|||
type = id.ATTR_N , |
|||
group = -1 |
|||
) |
Attr constructor.
name | The name of the rule this attribute applies to. |
type | The identifier of the rule's recursive type. |
group | The group number if the type is mutually-recursive (ATTR_MR), otherwise, -1. |
Definition at line 13 of file rule_attributes.py.
def apg_py.api.rule_attributes.Attr.copy | ( | self, | |
cpy | |||
) |
Copy a given attribute into the present attribute.
cpy | The attribute to copy. |
Definition at line 67 of file rule_attributes.py.
def apg_py.api.rule_attributes.Attr.dup | ( | self | ) |
Create a duplicate attribute object from the present one.
Definition at line 47 of file rule_attributes.py.
def apg_py.api.rule_attributes.Attr.reset | ( | self | ) |
Reset all attributes to false.
Definition at line 35 of file rule_attributes.py.
apg_py.api.rule_attributes.Attr.cyclic |
Definition at line 26 of file rule_attributes.py.
apg_py.api.rule_attributes.Attr.empty |
Definition at line 24 of file rule_attributes.py.
apg_py.api.rule_attributes.Attr.finite |
Definition at line 25 of file rule_attributes.py.
apg_py.api.rule_attributes.Attr.group |
Definition at line 33 of file rule_attributes.py.
apg_py.api.rule_attributes.Attr.is_complete |
Definition at line 29 of file rule_attributes.py.
apg_py.api.rule_attributes.Attr.is_open |
Definition at line 28 of file rule_attributes.py.
apg_py.api.rule_attributes.Attr.leaf |
Definition at line 27 of file rule_attributes.py.
apg_py.api.rule_attributes.Attr.left |
Definition at line 21 of file rule_attributes.py.
apg_py.api.rule_attributes.Attr.lower |
Definition at line 31 of file rule_attributes.py.
apg_py.api.rule_attributes.Attr.name |
Definition at line 30 of file rule_attributes.py.
apg_py.api.rule_attributes.Attr.nested |
Definition at line 22 of file rule_attributes.py.
apg_py.api.rule_attributes.Attr.right |
Definition at line 23 of file rule_attributes.py.
apg_py.api.rule_attributes.Attr.type |
Definition at line 32 of file rule_attributes.py.