Package com.attivio.sdk.search.fields
Class BooleanExpression
- java.lang.Object
-
- com.attivio.sdk.search.fields.FieldExpression
-
- com.attivio.sdk.search.fields.MultiaryFieldExpression
-
- com.attivio.sdk.search.fields.BooleanExpression
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class BooleanExpression extends MultiaryFieldExpression
Boolean Logic Expression.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BooleanExpression.Operator
Boolean Operator.-
Nested classes/interfaces inherited from class com.attivio.sdk.search.fields.MultiaryFieldExpression
MultiaryFieldExpression.Method
-
Nested classes/interfaces inherited from class com.attivio.sdk.search.fields.FieldExpression
FieldExpression.StringMode
-
-
Field Summary
-
Fields inherited from class com.attivio.sdk.search.fields.MultiaryFieldExpression
args
-
Fields inherited from class com.attivio.sdk.search.fields.FieldExpression
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description BooleanExpression(BooleanExpression.Operator op)
BooleanExpression(BooleanExpression.Operator op, FieldExpression... args)
BooleanExpression(BooleanExpression.Operator op, java.util.List<FieldExpression> args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanExpression
clone()
protected BooleanExpression
clone(FieldExpression... x)
Create a new instance of this FieldExpression, with different arguments.boolean
equals(java.lang.Object other)
BooleanExpression.Operator
getOperator()
Get the comparison operator.SchemaField.Type
getType(Schema schema)
Resolve the type for this expression.int
hashCode()
void
setOperator(BooleanExpression.Operator value)
Set the comparison operator.protected void
toString(java.lang.StringBuilder buffer, FieldExpression.StringMode mode)
Writes the string representation of this field expression tobuffer
.-
Methods inherited from class com.attivio.sdk.search.fields.MultiaryFieldExpression
forEachField, getArgument, getArgumentCount, getArguments, hasChildren, isConstant, rewrite, setArguments, setArguments, setArguments
-
Methods inherited from class com.attivio.sdk.search.fields.FieldExpression
apply, copyOf, forEachPhrase, forEachQuery, getDefaultName, getFieldName, isConstant, parse, quote, rewrite, rewriteChildren, toString, toString, valueOf
-
-
-
-
Constructor Detail
-
BooleanExpression
public BooleanExpression(BooleanExpression.Operator op)
-
BooleanExpression
public BooleanExpression(BooleanExpression.Operator op, java.util.List<FieldExpression> args)
-
BooleanExpression
public BooleanExpression(BooleanExpression.Operator op, FieldExpression... args)
-
-
Method Detail
-
getType
public SchemaField.Type getType(Schema schema)
Resolve the type for this expression.- Specified by:
getType
in classFieldExpression
-
getOperator
public BooleanExpression.Operator getOperator()
Get the comparison operator.
-
setOperator
public void setOperator(BooleanExpression.Operator value)
Set the comparison operator.
-
toString
protected void toString(java.lang.StringBuilder buffer, FieldExpression.StringMode mode)
Writes the string representation of this field expression tobuffer
.- Specified by:
toString
in classFieldExpression
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classMultiaryFieldExpression
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classMultiaryFieldExpression
-
clone
public BooleanExpression clone()
- Overrides:
clone
in classFieldExpression
-
clone
protected BooleanExpression clone(FieldExpression... x)
Create a new instance of this FieldExpression, with different arguments.- Specified by:
clone
in classMultiaryFieldExpression
-
-