public abstract class QueryHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
QueryHelper.WalkerCallback
An interface used when walking a query tree.
|
static class |
QueryHelper.WalkerCallbackAdapter
Default implementation.
|
| Constructor and Description |
|---|
QueryHelper() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
callbackTree(org.antlr.runtime.tree.Tree tree,
QueryHelper.WalkerCallback callback,
boolean negated)
Processes a tree type and calls the corresponding callback method.
|
static List<org.antlr.runtime.tree.Tree> |
getChildren(org.antlr.runtime.tree.Tree tree)
Gets the children as a List
|
static String |
stripQuotes(String toBeStripped)
Strips off any leading or trailing single quotes.
|
static void |
walk(Query query,
QueryHelper.WalkerCallback callback)
Walks a query with a callback for each operation
|
public static void walk(Query query, QueryHelper.WalkerCallback callback)
query - the querycallback - a callbackprotected static void callbackTree(org.antlr.runtime.tree.Tree tree,
QueryHelper.WalkerCallback callback,
boolean negated)
tree - Treecallback - WalkerCallbacknegated - booleanpublic static List<org.antlr.runtime.tree.Tree> getChildren(org.antlr.runtime.tree.Tree tree)
tree - TreeCopyright © 2005–2018 Alfresco Software. All rights reserved.