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.
|
queryIterator
as, 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, where
public 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.Provider
public void endQuery(QueryContext context) throws QueryException
Directive
endQuery
in class Directive
QueryException
public boolean startQuery(QueryContext context) throws QueryException
Directive
startQuery
in class Directive
QueryException
private ResultRow makeRow(ResultRow original, java.lang.String role, java.lang.String replacement)
public ResultRow processRow(QueryContext context, ResultRow input) throws QueryException
processRow
in class WhereDirective
QueryException
public boolean includeRow(QueryContext context, ResultRow input) throws QueryException
includeRow
in class WhereDirective
QueryException
Copyright 2004-2015 Wandora Team