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

Public Member Functions

def __init__ (self, str name, ArgumentList args, Union[Template, Any] template, Union["Class", Any] parent='')
 
str __repr__ (self)
 

Public Attributes

 args
 
 name
 
 parent
 
 template
 

Static Public Attributes

tuple rule
 

Detailed Description

Rule to parse the class constructor.
Can have 0 or more arguments.

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

Constructor & Destructor Documentation

◆ __init__()

def gtwrap.interface_parser.classes.Constructor.__init__ (   self,
str  name,
ArgumentList  args,
Union[Template, Any]  template,
Union["Class", Any]   parent = '' 
)

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

Member Function Documentation

◆ __repr__()

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

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

Member Data Documentation

◆ args

gtwrap.interface_parser.classes.Constructor.args

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

◆ name

gtwrap.interface_parser.classes.Constructor.name

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

◆ parent

gtwrap.interface_parser.classes.Constructor.parent

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

◆ rule

tuple gtwrap.interface_parser.classes.Constructor.rule
static
Initial value:
= (
Optional(Template.rule("template")) #
+ IDENT("name") #
+ LPAREN #
+ ArgumentList.rule("args_list") #
+ RPAREN #
+ SEMI_COLON # BR
).setParseAction(lambda t: Constructor(t.name, t.args_list, t.template))

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

◆ template

gtwrap.interface_parser.classes.Constructor.template

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


The documentation for this class was generated from the following file:
gtwrap.interface_parser.tokens.IDENT
IDENT
Definition: tokens.py:19
Optional
Definition: typing.h:78


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:16:45