Class ExtractorString
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
ExtractorString:__index (key) | Lookup of missing class members. |
Methods
ExtractorString:create (...) | Create a new instance. |
ExtractorString:_init () | Initialize a new instance. |
ExtractorString:cast (str) | Cast the string into the correct type for this strategy. |
ExtractorString:placeholder () | Get the placeholder for this strategy. |
Metamethods
- ExtractorString:__index (key)
-
Lookup of missing class members.
Parameters:
- key string lookup of member
Returns:
anyRaises:
on wrong arguments
Methods
- ExtractorString:create (...)
-
Create a new instance.
Parameters:
- ... vararg forwarded to superclass create method
Returns:
self - ExtractorString:_init ()
-
Initialize a new instance.
Returns:
self - ExtractorString: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:
stringRaises:
on wrong argumentsSee also:
- ExtractorString:placeholder ()
-
Get the placeholder for this strategy.
Returns:
string