Selfie
Loading...
Searching...
No Matches
selfie_lib.Literals.LiteralFormat Class Reference
Inheritance diagram for selfie_lib.Literals.LiteralFormat:
selfie_lib.Literals.LiteralRepr selfie_lib.Literals.LiteralString selfie_lib.Literals.LiteralTodoStub

Public Member Functions

str encode (self, T value, Language language, "EscapeLeadingWhitespace" encoding_policy)
 
T parse (self, str string, Language language)
 

Detailed Description

Definition at line 31 of file Literals.py.

Member Function Documentation

◆ encode()

str selfie_lib.Literals.LiteralFormat.encode (   self,
T  value,
Language  language,
"EscapeLeadingWhitespace"   encoding_policy 
)

Reimplemented in selfie_lib.Literals.LiteralRepr, selfie_lib.Literals.LiteralString, and selfie_lib.Literals.LiteralTodoStub.

Definition at line 33 of file Literals.py.

35 ) -> str:
36 raise NotImplementedError("Subclasses must implement the encode method")
37

◆ parse()

T selfie_lib.Literals.LiteralFormat.parse (   self,
str  string,
Language  language 
)

Reimplemented in selfie_lib.Literals.LiteralString, selfie_lib.Literals.LiteralRepr, and selfie_lib.Literals.LiteralTodoStub.

Definition at line 39 of file Literals.py.

39 def parse(self, string: str, language: Language) -> T:
40 raise NotImplementedError("Subclasses must implement the parse method")
41
42

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