public abstract class MultiaryFieldExpression extends FieldExpression
FieldExpression that takes an arbitrary number of FieldExpressions as arguments.| Modifier and Type | Class and Description |
|---|---|
static class |
MultiaryFieldExpression.Method |
FieldExpression.StringMode| Modifier and Type | Field and Description |
|---|---|
protected FieldExpression[] |
args |
alias, EMPTY_ARRAY| Constructor and Description |
|---|
MultiaryFieldExpression(FieldExpression... args) |
MultiaryFieldExpression(FieldExpression[] args,
String alias) |
MultiaryFieldExpression(List<? extends FieldExpression> args,
String alias) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract FieldExpression |
clone(FieldExpression... x)
Create a new instance of this FieldExpression, with different arguments.
|
boolean |
equalsIgnoreAlias(FieldExpression other)
Returns
true if other is the same as this, with the exception of alias. |
FieldExpression |
getArgument(int index)
Get argument at
index. |
int |
getArgumentCount()
Get the number of arguments.
|
FieldExpression[] |
getArguments()
Get the arguments.
|
boolean |
hasChildren()
Returns
true if this field expression has any sub FieldExpressions. |
int |
hashCode() |
boolean |
isConstant()
Returns
true if this field expression evaluates to a constant value. |
protected abstract boolean |
parametersEqual(FieldExpression other)
Returns
true if other's parameters are the same as this. |
void |
rewrite(QueryHandler handler,
boolean recursive)
Rewrite any query objects in this FieldExpression using
handler. |
FieldExpression |
rewriteChildren(FieldExpressionHandler handler)
Traverse this FieldExpression using
handler to visit/rewrite direct child elements if this expression. |
void |
setArguments(FieldExpression... value)
Set the arguments.
|
as, clone, containsAlias, copyOf, equals, equalsIgnoreAlias, getAlias, getDefaultAlias, getFieldName, getType, handleFieldExpression, isConstant, quote, rewrite, setAlias, toString, toString, toStringprotected FieldExpression[] args
public MultiaryFieldExpression(List<? extends FieldExpression> args, String alias)
public MultiaryFieldExpression(FieldExpression... args)
public MultiaryFieldExpression(FieldExpression[] args, String alias)
public boolean isConstant()
true if this field expression evaluates to a constant value.isConstant in class FieldExpressionpublic int getArgumentCount()
public FieldExpression getArgument(int index)
index.public FieldExpression[] getArguments()
public void setArguments(FieldExpression... value)
public boolean hasChildren()
true if this field expression has any sub FieldExpressions.hasChildren in class FieldExpressionpublic void rewrite(QueryHandler handler, boolean recursive)
handler.rewrite in class FieldExpressionpublic FieldExpression rewriteChildren(FieldExpressionHandler handler)
handler to visit/rewrite direct child elements if this expression.
NOTE: this method traverses direct child expressions (if any) only.
rewriteChildren in class FieldExpressionpublic final boolean equalsIgnoreAlias(FieldExpression other)
true if other is the same as this, with the exception of alias.equalsIgnoreAlias in class FieldExpressionprotected abstract boolean parametersEqual(FieldExpression other)
true if other's parameters are the same as this.public int hashCode()
hashCode in class FieldExpressionprotected abstract FieldExpression clone(FieldExpression... x)
Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.