public class LogicalFormatParser
extends java.lang.Object
Constructor and Description |
---|
LogicalFormatParser() |
Modifier and Type | Method and Description |
---|---|
void |
parse(java.lang.String fmt)
Parse a format string suitable to format
logical values. |
protected void |
visitFalse(int startIdx,
int endIdx)
The "false" section of format spec was parsed.
|
protected void |
visitTrue(int startIdx,
int endIdx)
The "true" section of format spec was parsed.
|
protected void visitTrue(int startIdx, int endIdx)
The default implementation of this method does nothing.
startIdx
- the section start index in format string, zero-based, inclusiveendIdx
- the section end index in format string, zero-based, exclusiveprotected void visitFalse(int startIdx, int endIdx)
The default implementation of this method does nothing.
startIdx
- the section start index in format string, zero-based, inclusiveendIdx
- the section end index in format string, zero-based, exclusivepublic void parse(java.lang.String fmt) throws ErrorConditionException
logical
values.
Call the visitTrue(int, int)
and visitFalse(int, int)
after the corresponding format component is parsed.fmt
- the format string to parseErrorConditionException
- if the provided string is not a valid logical format.