DSMLiteralValue

class dsviper.DSMLiteralValue

Bases: DSMLiteral

A single literal written in a declaration: which kind it is, and its text. A field that declares no default answers one too, of domain ‘None’ and value ‘’.

Note: Not directly instantiable.

domain() → str

Return which kind of literal this is: ‘Boolean’, ‘Integer’, ‘Float’, ‘Double’, ‘String’, ‘UUId’, ‘EnumerationCase’, or ‘None’ for the literal of a field that declares no default.

value() → str

Return the literal exactly as written in the source.