Package com.attivio.sdk.search.fields
Class MultiaryFieldExpression
- java.lang.Object
-
- com.attivio.sdk.search.fields.FieldExpression
-
- com.attivio.sdk.search.fields.MultiaryFieldExpression
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
- Direct Known Subclasses:
BooleanExpression
,Coalesce
,Concat
,Union
public abstract class MultiaryFieldExpression extends FieldExpression
AbstractFieldExpression
that takes an arbitrary number ofFieldExpression
s as arguments.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MultiaryFieldExpression.Method
-
Nested classes/interfaces inherited from class com.attivio.sdk.search.fields.FieldExpression
FieldExpression.StringMode
-
-
Field Summary
Fields Modifier and Type Field Description protected FieldExpression[]
args
-
Fields inherited from class com.attivio.sdk.search.fields.FieldExpression
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description MultiaryFieldExpression(FieldExpression... args)
MultiaryFieldExpression(java.util.List<? extends FieldExpression> args)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract FieldExpression
clone(FieldExpression... x)
Create a new instance of this FieldExpression, with different arguments.boolean
equals(java.lang.Object other)
FieldExpression
forEachField(java.util.function.Function<FieldExpression,FieldExpression> handler)
Applieshandler
for eachFieldExpression
argument.FieldExpression
getArgument(int index)
Get argument atindex
.int
getArgumentCount()
Get the number of arguments.FieldExpression[]
getArguments()
Get the arguments.boolean
hasChildren()
Returnstrue
if this field expression has any sub FieldExpressions.int
hashCode()
boolean
isConstant()
Returnstrue
if this field expression evaluates to a constant value.void
rewrite(QueryHandler handler, boolean recursive)
Rewrite any query objects in this FieldExpression usinghandler
.void
setArguments(FieldExpression... value)
Set the arguments.protected void
setArguments(StringParser parser)
void
setArguments(java.util.Collection<? extends FieldExpression> value)
Set the arguments.-
Methods inherited from class com.attivio.sdk.search.fields.FieldExpression
apply, clone, copyOf, forEachPhrase, forEachQuery, getDefaultName, getFieldName, getType, isConstant, parse, quote, rewrite, rewriteChildren, toString, toString, toString, valueOf
-
-
-
-
Field Detail
-
args
protected FieldExpression[] args
-
-
Constructor Detail
-
MultiaryFieldExpression
public MultiaryFieldExpression(java.util.List<? extends FieldExpression> args)
-
MultiaryFieldExpression
public MultiaryFieldExpression(FieldExpression... args)
-
-
Method Detail
-
isConstant
public boolean isConstant()
Returnstrue
if this field expression evaluates to a constant value.- Specified by:
isConstant
in classFieldExpression
-
setArguments
protected void setArguments(StringParser parser)
-
getArgumentCount
public int getArgumentCount()
Get the number of arguments.
-
getArgument
public FieldExpression getArgument(int index)
Get argument atindex
.
-
getArguments
public FieldExpression[] getArguments()
Get the arguments.
-
setArguments
public void setArguments(FieldExpression... value)
Set the arguments.
-
setArguments
public void setArguments(java.util.Collection<? extends FieldExpression> value)
Set the arguments.
-
hasChildren
public boolean hasChildren()
Returnstrue
if this field expression has any sub FieldExpressions.- Specified by:
hasChildren
in classFieldExpression
-
rewrite
public void rewrite(QueryHandler handler, boolean recursive)
Rewrite any query objects in this FieldExpression usinghandler
.- Overrides:
rewrite
in classFieldExpression
-
forEachField
public FieldExpression forEachField(java.util.function.Function<FieldExpression,FieldExpression> handler)
- Overrides:
forEachField
in classFieldExpression
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classFieldExpression
-
clone
protected abstract FieldExpression clone(FieldExpression... x)
Create a new instance of this FieldExpression, with different arguments.
-
-