Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
docutils.utils.math.mathml_elements.MathToken Class Reference
Inheritance diagram for docutils.utils.math.mathml_elements.MathToken:
Inheritance graph
[legend]
Collaboration diagram for docutils.utils.math.mathml_elements.MathToken:
Collaboration graph
[legend]

Public Member Functions

 __init__ (self, text, **attributes)
 
- Public Member Functions inherited from docutils.utils.math.mathml_elements.MathElement
 __repr__ (self)
 
 __str__ (self)
 
 set (self, key, value)
 
 __setitem__ (self, key, value)
 
 is_full (self)
 
 close (self)
 
 append (self, element)
 
 extend (self, elements)
 
 pop (self, index=-1)
 
 in_block (self)
 
 indent_xml (self, space=' ', level=0)
 
 unindent_xml (self)
 
 toxml (self, encoding=None)
 

Public Attributes

 text
 
- Public Attributes inherited from docutils.utils.math.mathml_elements.MathElement
 text
 

Static Public Attributes

int nchildren = 0
 
- Static Public Attributes inherited from docutils.utils.math.mathml_elements.MathElement
 nchildren = None
 
 parent = None
 

Additional Inherited Members

- Static Public Member Functions inherited from docutils.utils.math.mathml_elements.MathElement
 a_str (v)
 

Detailed Description

Token Element: contains textual data instead of children.

Expect text data on initialisation.

Constructor & Destructor Documentation

◆ __init__()

docutils.utils.math.mathml_elements.MathToken.__init__ (   self,
  children,
**  attributes 
)
Set up node with `children` and `attributes`.

Attribute names are normalised to lowercase.
You may use "CLASS" to set a "class" attribute.
Attribute values are converted to strings
(with True -> "true" and False -> "false").

>>> math(CLASS='test', level=3, split=True)
math(class='test', level='3', split='true')
>>> math(CLASS='test', level=3, split=True).toxml()
'<math class="test" level="3" split="true"></math>'

Reimplemented from docutils.utils.math.mathml_elements.MathElement.


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