Class: OrdinalFormatParser
Parsers are used to parse a tag and return a value based on the tag.
Hierarchy
-
↳
OrdinalFormatParser
Implements
Constructors
constructor
• new OrdinalFormatParser()
Overrides
Properties
acceptedNames
• Protected acceptedNames: string[]
Inherited from
requiredParameter
• Protected requiredParameter: boolean
Inherited from
requiredPayload
• Protected requiredPayload: boolean
Inherited from
Methods
parse
▸ parse(ctx): null | string
Parses the given tag.
Parameters
| Name | Type | Description |
|---|---|---|
ctx | Context | The context of the tag. |
Returns
null | string
Implementation of
willAccept
▸ willAccept(ctx): boolean
Whether the parser can handle the given tag.
Parameters
| Name | Type | Description |
|---|---|---|
ctx | Context | The context of the tag. |
Returns
boolean