class ExplicitSemanticType(SemanticType):
Known subclasses: bootstraparse.modules.syntax.CodeToken, bootstraparse.modules.syntax.EtCustomSpanToken, bootstraparse.modules.syntax.EtEmToken, bootstraparse.modules.syntax.EtStrikethroughToken, bootstraparse.modules.syntax.EtStrongToken, bootstraparse.modules.syntax.EtUnderlineToken, bootstraparse.modules.syntax.Linebreak
Explicit semantic type, the label is the only information we need.
| Method | counterpart |
Function called by the context manager to know how to deal with the encapsulation of the token. Will return the counterpart of the token (the previous token to look for). :return: The counterpart of the token... |
| Method | to |
Check if we are trying to encapsulate this very token, don't do anything |
| Method | to |
Function used for testing and readability purposes. Replaces matched markup with html-like tags. :return: The markup of the token. :rtype: str |
Inherited from SemanticType:
| Method | __eq__ |
Undocumented |
| Method | __init__ |
Initialises the token. :param content: The content of the token. :type content: list[pp.ParseResults] |
| Method | __ne__ |
Undocumented |
| Method | __repr__ |
Undocumented |
| Method | __str__ |
Undocumented |
| Method | to |
Return the original string of the token. :return: The original string of the token. :rtype: str |
| Class Variable | label |
Undocumented |
| Instance Variable | content |
Undocumented |
| Instance Variable | file |
Undocumented |
| Instance Variable | label |
Undocumented |
| Instance Variable | line |
Undocumented |
Function called by the context manager to know how to deal with the encapsulation of the token. Will return the counterpart of the token (the previous token to look for). :return: The counterpart of the token. :rtype: str | None
bootstraparse.modules.syntax.LinebreakCheck if we are trying to encapsulate this very token, don't do anything