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
AbstractFieldExpressionthat takes an arbitrary number ofFieldExpressions as arguments.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMultiaryFieldExpression.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 FieldExpressionclone(FieldExpression... x)Create a new instance of this FieldExpression, with different arguments.booleanequals(java.lang.Object other)FieldExpressionforEachField(java.util.function.Function<FieldExpression,FieldExpression> handler)Applieshandlerfor eachFieldExpressionargument.FieldExpressiongetArgument(int index)Get argument atindex.intgetArgumentCount()Get the number of arguments.FieldExpression[]getArguments()Get the arguments.booleanhasChildren()Returnstrueif this field expression has any sub FieldExpressions.inthashCode()booleanisConstant()Returnstrueif this field expression evaluates to a constant value.voidrewrite(QueryHandler handler, boolean recursive)Rewrite any query objects in this FieldExpression usinghandler.voidsetArguments(FieldExpression... value)Set the arguments.protected voidsetArguments(StringParser parser)voidsetArguments(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()
Returnstrueif this field expression evaluates to a constant value.- Specified by:
isConstantin 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()
Returnstrueif this field expression has any sub FieldExpressions.- Specified by:
hasChildrenin classFieldExpression
-
rewrite
public void rewrite(QueryHandler handler, boolean recursive)
Rewrite any query objects in this FieldExpression usinghandler.- Overrides:
rewritein classFieldExpression
-
forEachField
public FieldExpression forEachField(java.util.function.Function<FieldExpression,FieldExpression> handler)
- Overrides:
forEachFieldin classFieldExpression
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classFieldExpression
-
clone
protected abstract FieldExpression clone(FieldExpression... x)
Create a new instance of this FieldExpression, with different arguments.
-
-