public interface TokenParser
Modifier and Type | Method and Description |
---|---|
String |
getParseError()
When
parse method returns false
this method can be used to retrieve the specific error
message detailing why the parsing failed. |
boolean |
parse(String text)
Parses the given text string into a token value.
|
void |
setTarget(ScalarSettable target)
Sets the buffer for holding parsed values.
|
void setTarget(ScalarSettable target)
target
- the value buffer in which to store parsed
valuesboolean parse(String text)
getParseError
method.text
- text string to convert. Callers should not
assume it is safe to pass null
.true
if the parsing succeeded,
false
otherwise.String getParseError()
parse
method returns false
this method can be used to retrieve the specific error
message detailing why the parsing failed. If the last
parse was successful an empty string will be returnedparse
.Copyright © 2021 Actian Corporation. All rights reserved.