Public Member Functions | Public Attributes | Static Public Attributes | List of all members
gtwrap.interface_parser.classes.DunderMethod Class Reference

Public Member Functions

def __init__ (self, str name, ArgumentList args)
 
str __repr__ (self)
 

Public Attributes

 args
 
 name
 

Static Public Attributes

tuple rule
 

Detailed Description

Special Python double-underscore (dunder) methods, e.g. __iter__, __contains__

Definition at line 216 of file interface_parser/classes.py.

Constructor & Destructor Documentation

◆ __init__()

def gtwrap.interface_parser.classes.DunderMethod.__init__ (   self,
str  name,
ArgumentList  args 
)

Definition at line 228 of file interface_parser/classes.py.

Member Function Documentation

◆ __repr__()

str gtwrap.interface_parser.classes.DunderMethod.__repr__ (   self)

Definition at line 232 of file interface_parser/classes.py.

Member Data Documentation

◆ args

gtwrap.interface_parser.classes.DunderMethod.args

Definition at line 230 of file interface_parser/classes.py.

◆ name

gtwrap.interface_parser.classes.DunderMethod.name

Definition at line 229 of file interface_parser/classes.py.

◆ rule

tuple gtwrap.interface_parser.classes.DunderMethod.rule
static
Initial value:
= (
DUNDER #
+ (Word(alphas))("name") #
+ DUNDER #
+ LPAREN #
+ ArgumentList.rule("args_list") #
+ RPAREN #
+ SEMI_COLON # BR
).setParseAction(lambda t: DunderMethod(t.name, t.args_list))

Definition at line 218 of file interface_parser/classes.py.


The documentation for this class was generated from the following file:


gtsam
Author(s):
autogenerated on Fri Nov 1 2024 03:53:08