Class ExtractorJson

Subclass to do specialization of the extractor strategy class.

This spesialization do casting into a string type. This class follows the pattern with inheritance from Lua classes.

Metamethods

ExtractorJson:__index (key) Lookup of missing class members.

Methods

ExtractorJson:create (...) Create a new instance.
ExtractorJson:_init () Initialize a new instance.
ExtractorJson:cast (str) Cast the string into the correct type for this strategy.
ExtractorJson:placeholder () Get the placeholder for this strategy


Metamethods

ExtractorJson:__index (key)
Lookup of missing class members.

Parameters:

Returns:

any

Raises:

on wrong arguments

Methods

ExtractorJson:create (...)
Create a new instance.

Parameters:

Returns:

self
ExtractorJson:_init ()
Initialize a new instance.

Returns:

self
ExtractorJson:cast (str)
Cast the string into the correct type for this strategy. There are no safeguards for erroneous casts.

Parameters:

  • str string used as the extraction source

Returns:

JSON

Raises:

on wrong arguments

See also:

ExtractorJson:placeholder ()
Get the placeholder for this strategy

Returns:

string
generated by LDoc 1.4.6