public class Regex extends WhereDirective implements DirectiveUIHints.Provider
| Modifier and Type | Field and Description |
|---|---|
private boolean |
global |
private boolean |
icase |
private boolean |
match |
static int |
MODE_GLOBAL |
static int |
MODE_ICASE |
static int |
MODE_MATCH |
private java.util.regex.Pattern |
pattern |
private Operand |
regex |
private Operand |
replace |
DEFAULT_COL, DEFAULT_NS| Constructor and Description |
|---|
Regex() |
Regex(java.lang.Object regex,
java.lang.Object replace,
int mode) |
Regex(java.lang.String regex) |
Regex(java.lang.String regex,
int mode) |
Regex(java.lang.String regex,
java.lang.String replace) |
| Modifier and Type | Method and Description |
|---|---|
void |
endQuery(QueryContext context)
Signals end of query and performs any cleanup that may be needed.
|
DirectiveUIHints |
getUIHints() |
boolean |
includeRow(QueryContext context,
ResultRow input) |
private ResultRow |
makeRow(ResultRow original,
java.lang.String role,
java.lang.String replacement) |
ResultRow |
processRow(QueryContext context,
ResultRow input) |
boolean |
startQuery(QueryContext context)
Prepares the query for execution.
|
queryIteratoras, as, debugString, debugString, debugStringInner, debugStringInner, debugStringInner, debugStringParams, debugStringParams, doQuery, from, from, from, from, from, from, from, from, from, from, getStandardAddonHints, getStandardAddonHints, isStatic, join, main, of, query, to, to, to, to, to, where, wherepublic static final int MODE_MATCH
public static final int MODE_GLOBAL
public static final int MODE_ICASE
private Operand regex
private Operand replace
private boolean match
private boolean global
private boolean icase
private java.util.regex.Pattern pattern
public Regex()
public Regex(java.lang.Object regex,
java.lang.Object replace,
int mode)
public Regex(java.lang.String regex,
java.lang.String replace)
public Regex(java.lang.String regex)
public Regex(java.lang.String regex,
int mode)
public DirectiveUIHints getUIHints()
getUIHints in interface DirectiveUIHints.Providerpublic void endQuery(QueryContext context) throws QueryException
DirectiveendQuery in class DirectiveQueryExceptionpublic boolean startQuery(QueryContext context) throws QueryException
DirectivestartQuery in class DirectiveQueryExceptionprivate ResultRow makeRow(ResultRow original, java.lang.String role, java.lang.String replacement)
public ResultRow processRow(QueryContext context, ResultRow input) throws QueryException
processRow in class WhereDirectiveQueryExceptionpublic boolean includeRow(QueryContext context, ResultRow input) throws QueryException
includeRow in class WhereDirectiveQueryExceptionCopyright 2004-2015 Wandora Team