|
||||||||||
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 |
contentExpressionFactory
The store specific IBasicExpressionFactory for content expressions to use (if one exists). |
protected IBasicExpressionFactory |
genericExpressionFactory
The default IBasicExpressionFactory to use. |
protected IBasicExpressionFactory |
propertiesExpressionFactory
The store specific IBasicExpressionFactory for property expressions to use (if one exists). |
protected PropertyProvider |
propertyProvider
The PropertyProvider to use (if set). |
protected IBasicQuery |
query
The IBasicQuery that provides some general information about the query. |
Constructor Summary | |
BasicExpressionCompiler(IBasicQuery query,
PropertyProvider propertyProvider)
Creates the BasicExpressionCompiler, loads and inits the expression factories. |
Method Summary | |
IBasicExpression |
compile(org.jdom.Element expressionElement)
Compiles an IBasicExpression (-tree) from the given expressionElement . |
static boolean |
isContentExpression(org.jdom.Element expressionElement)
Checks, if an expression is a contains expression. |
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 genericExpressionFactory
protected IBasicExpressionFactory propertiesExpressionFactory
protected IBasicExpressionFactory contentExpressionFactory
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
).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.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.public static boolean isContentExpression(org.jdom.Element expressionElement)
expressionElement
- an Element
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |