public class Parser extends java.lang.Object implements IParser
IParser, supporting only simple operators
referring to the content of a single column.Format or Comparator is defined for the given type. For example, specifying the
text ">= 4" implies, for a column with integer types, that a
direct comparison between integers will be performed. These operators
are:
Format instance). Only two wildcard characters are defined: * and ?
In addition, providing no operator will behave as the operator ~
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Parser.ComparisonOperand
IOperand for comparison operations.
|
protected static class |
Parser.EqualOperand
IOperand for equal/unequal operations.
|
protected static interface |
Parser.IOperand
Internal interface, to be implemented by all operands.
|
protected static class |
Parser.REOperand
Operand for regular expressions.
|
protected static class |
Parser.WildcardOperand
Operand for wildcard expressions.
|
IParser.InstantFilter| Constructor and Description |
|---|
Parser(java.text.Format format,
java.util.Comparator classComparator,
java.util.Comparator<java.lang.String> stringComparator,
boolean ignoreCase,
int modelIndex) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
escape(java.lang.String expression)
IParser interface. |
Parser.IOperand |
getDefaultOperator(boolean instantMode)
Returns the default operator if none is specified by the user
|
protected java.lang.String |
getInstantAppliedExpression(java.lang.String expression) |
IParser.InstantFilter |
parseInstantText(java.lang.String expression)
IParser interface. |
javax.swing.RowFilter |
parseText(java.lang.String expression)
IParser interface. |
java.lang.String |
stripHtml(java.lang.String expression)
IParser interface. |
public Parser(java.text.Format format,
java.util.Comparator classComparator,
java.util.Comparator<java.lang.String> stringComparator,
boolean ignoreCase,
int modelIndex)
public javax.swing.RowFilter parseText(java.lang.String expression)
throws java.text.ParseException
IParser interface.public IParser.InstantFilter parseInstantText(java.lang.String expression) throws java.text.ParseException
IParser interface.parseInstantText in interface IParserexpression - the text to parsejava.text.ParseExceptionprotected java.lang.String getInstantAppliedExpression(java.lang.String expression)
public Parser.IOperand getDefaultOperator(boolean instantMode)
instantMode - true if called during instant parsingpublic java.lang.String stripHtml(java.lang.String expression)
IParser interface.Copyright © 2019 coderazzi. All Rights Reserved.