mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
REPO-484: Code formatting.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130645 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -76,7 +76,6 @@ public abstract class QueryHelper
|
|||||||
*/
|
*/
|
||||||
void in(String property, boolean negated, String... propertyValues);
|
void in(String property, boolean negated, String... propertyValues);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called any time a MATCHES clause is encountered.
|
* Called any time a MATCHES clause is encountered.
|
||||||
* @param property Name of the property
|
* @param property Name of the property
|
||||||
@@ -127,7 +126,6 @@ public abstract class QueryHelper
|
|||||||
*/
|
*/
|
||||||
public static void walk(Query query, WalkerCallback callback)
|
public static void walk(Query query, WalkerCallback callback)
|
||||||
{
|
{
|
||||||
|
|
||||||
CommonTree tree = query.getTree();
|
CommonTree tree = query.getTree();
|
||||||
if (tree != null)
|
if (tree != null)
|
||||||
{
|
{
|
||||||
@@ -168,7 +166,8 @@ public abstract class QueryHelper
|
|||||||
List<Tree> children = getChildren(tree);
|
List<Tree> children = getChildren(tree);
|
||||||
//Don't need the first item because its the property name
|
//Don't need the first item because its the property name
|
||||||
String[] inVals = new String[children.size()-1];
|
String[] inVals = new String[children.size()-1];
|
||||||
for (int i = 1; i < children.size(); i++) {
|
for (int i = 1; i < children.size(); i++)
|
||||||
|
{
|
||||||
inVals[i-1] = stripQuotes(children.get(i).getText());
|
inVals[i-1] = stripQuotes(children.get(i).getText());
|
||||||
}
|
}
|
||||||
callback.in(tree.getChild(0).getText(), negated, inVals);
|
callback.in(tree.getChild(0).getText(), negated, inVals);
|
||||||
@@ -201,14 +200,16 @@ public abstract class QueryHelper
|
|||||||
case WhereClauseParser.OR:
|
case WhereClauseParser.OR:
|
||||||
callback.or();
|
callback.or();
|
||||||
List<Tree> children = getChildren(tree);
|
List<Tree> children = getChildren(tree);
|
||||||
for (Tree child : children) {
|
for (Tree child : children)
|
||||||
|
{
|
||||||
callbackTree(child, callback, negated);
|
callbackTree(child, callback, negated);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
case WhereClauseParser.AND:
|
case WhereClauseParser.AND:
|
||||||
callback.and();
|
callback.and();
|
||||||
List<Tree> childrenOfAnd = getChildren(tree);
|
List<Tree> childrenOfAnd = getChildren(tree);
|
||||||
for (Tree child : childrenOfAnd) {
|
for (Tree child : childrenOfAnd)
|
||||||
|
{
|
||||||
callbackTree(child, callback, negated);
|
callbackTree(child, callback, negated);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user