|
com.im.df.api 5.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.im.df.api.dml.DFTerm
com.im.df.api.dml.DFTermExpression
public final class DFTermExpression
This object represents a complex expression. It consists of operator and zero to more operands. In addition it can contain some options which are specific parameters to this expression. These options are not standardized.
The object is immutable, the value cannot be changed once the object is created. Currently it
doesn't have public constructor nor create method. If you want to use this object you can create
using DFTermsFactory static methods.
| Field Summary | |
|---|---|
static DFTermExpression |
ALL_DATA
The constant which represents all data. |
| Method Summary | |
|---|---|
void |
accept(DFTermVisitor visitor)
|
DFTermExpression |
changeOperator(DFOperator newOperator)
Change the operator for this expression and return new changed instance of this expression. |
DFTermExpression |
changeOptions(Map<String,Object> newOptions)
Change the options of this expression. |
boolean |
equals(Object obj)
|
int |
getIndexOfOperand(DFTerm operand)
Get index of the operand. |
List<DFTerm> |
getOperands()
Gets the list of operands. |
DFOperator |
getOperator()
Gets the operator. |
Map<String,Object> |
getOptions()
Gets the options of the expression. |
Class<? extends DFFieldDataTypeCapability> |
getTermReturnType()
Compute the return type of the term. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class com.im.df.api.dml.DFTerm |
|---|
validate |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final DFTermExpression ALL_DATA
| Method Detail |
|---|
public DFTermExpression changeOperator(DFOperator newOperator)
newOperator - New operator must be only in the same group of operators. If the previous operator
was logical (AND/OR), the new one must be from the same category otherwise the method will throw an exception.
The same for structural operators.
public DFTermExpression changeOptions(Map<String,Object> newOptions)
newOptions - New options
public DFOperator getOperator()
public List<DFTerm> getOperands()
public int getIndexOfOperand(DFTerm operand)
operand - The operand which you are looking for
public Map<String,Object> getOptions()
public Class<? extends DFFieldDataTypeCapability> getTermReturnType()
getTermReturnType in class DFTermDFFieldDataTypeCapability or nullpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic void accept(DFTermVisitor visitor)
accept in class DFTerm
|
com.im.df.api 5.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||