|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.slide.search.basic.BasicExpressionCompiler
The implementation of the IBasicExpressionCompiler
interface.
Field Summary | |
protected boolean |
alreadyTriedToInstantiate
Inidicates if it has already been tried to instantiate the storeSpecificExpressionFactory . |
protected IBasicExpressionFactory |
defaultExpressionFactory
The default IBasicExpressionFactory to use. |
protected PropertyProvider |
propertyProvider
The PropertyProvider to use (if set). |
protected IBasicQuery |
query
The IBasicQuery that provides some general information about the query. |
protected IBasicExpressionFactory |
storeSpecificExpressionFactory
The store specific IBasicExpressionFactory to use (if one exists). |
Constructor Summary | |
BasicExpressionCompiler(IBasicQuery query,
PropertyProvider propertyProvider)
Creates the BasicExpressionCompiler. |
|
BasicExpressionCompiler(IBasicQuery query,
PropertyProvider propertyProvider,
IBasicExpressionFactory defaultExpressionFactory)
Creates the BasicExpressionCompiler. |
Method Summary | |
IBasicExpression |
compile(org.jdom.Element expressionElement)
Compiles an IBasicExpression (-tree) from the given expressionElement . |
(package private) IBasicExpression |
createExpression(org.jdom.Element expressionElement)
Creates a (non-merge) expression (compare...) for the given Element. |
(package private) IBasicExpression |
createMergeExpression(java.lang.String name,
java.lang.String namespace,
java.util.List expressionsToMerge)
Creates a MergeExpression for the given element (AND, OR). |
IBasicExpressionFactory |
getDefaultExpressionFactory()
Returns the default expression factory to use. |
IBasicExpressionFactory |
getStoreSpecificExpressionFactory()
Returns the store specific expression factory to use. |
static boolean |
isMergeExpression(org.jdom.Element expressionElement)
Returns true if the given expressionElement
describes a merge expression. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected IBasicQuery query
protected PropertyProvider propertyProvider
protected IBasicExpressionFactory defaultExpressionFactory
protected IBasicExpressionFactory storeSpecificExpressionFactory
protected boolean alreadyTriedToInstantiate
storeSpecificExpressionFactory
.
Constructor Detail |
public BasicExpressionCompiler(IBasicQuery query, PropertyProvider propertyProvider) throws BadQueryException
query
- the IBasicQuery.propertyProvider
- the PropertyProvider to use (may be
null
).public BasicExpressionCompiler(IBasicQuery query, PropertyProvider propertyProvider, IBasicExpressionFactory defaultExpressionFactory) throws BadQueryException
query
- the IBasicQuery.propertyProvider
- the PropertyProvider to use (may be
null
).defaultExpressionFactory
- the default IBasicExpressionFactory to use.Method Detail |
public IBasicExpression compile(org.jdom.Element expressionElement) throws BadQueryException
expressionElement
.
compile
in interface IBasicExpressionCompiler
expressionElement
- the (root) expression Element to compile
into an IBasicExpression.
BadQueryException
- if compiling the expression failed.IBasicExpression createMergeExpression(java.lang.String name, java.lang.String namespace, java.util.List expressionsToMerge) throws BadQueryException
name
- the name of the Element describing the merge expression.namespace
- the namespace of the Element describing the merge expression.expressionsToMerge
- the expressions to merge.
BadQueryException
IBasicExpression createExpression(org.jdom.Element expressionElement) throws BadQueryException
expressionElement
- an Element describing the expression.
BadQueryException
public IBasicExpressionFactory getDefaultExpressionFactory() throws BadQueryException
BasicExpressionFactory
will be created and initialized.
BadQueryException
public IBasicExpressionFactory getStoreSpecificExpressionFactory() throws BadQueryException
BadQueryException
public static boolean isMergeExpression(org.jdom.Element expressionElement)
true
if the given expressionElement
describes a merge expression.
expressionElement
- the Element that describes the expression.
true
if the given expressionElement
describes a merge expression.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |