API reference
python:astx:astx.literals.LiteralUTF8String
class LiteralUTF8String
LiteralUTF8String(value: str, loc: SourceLocation = NO_SOURCE_LOCATION)
Source: packages/astx/src/astx/literals/string.py:76
Declared as: python:astx:astx.literals.string.LiteralUTF8String
Literal class for UTF-8 strings.
Attributes
-
loc — Type: SourceLocation
-
type_ — Type: UTF8String
-
value — Type: str
Methods
-
__init__ — Initialize the UTF-8 string literal.
-
__str__ — Return a string representation of the object.
-
get_struct — Return the structure of the object in a simplified.