|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ter.API.AdvancedEngineSearch.AdvancedEngineSearch
Title: AdvancedEngineSearch.
Description: This class gives an advanced Search. This search is based on a expression ( a string ). The expression has to be parse by a parser. The grammar is describe in the AdvSearchParser class documentation.
Copyright: Copyright (c) 2003
Company: UNICE
AdvSearchParser
Constructor Summary | |
AdvancedEngineSearch(ClassifierAnalyser classifier)
Construct a new Advanced search with the classifier |
|
AdvancedEngineSearch(Inspector inspector)
Construct a new Advanced search with the inspector |
Method Summary | |
void |
addCriterion(Criterion c)
Add a criterion to the search If a problem occur, the criterion is not added and a message is printed on std err. |
boolean |
checkCriterion(Criterion c)
Check if the criterion c is present in the Advanced Search. |
boolean |
checkCriterion(java.lang.String criterionName)
Check if the criterion name is present in the Advanced Search. |
boolean |
evaluateTree(Tree t,
java.lang.reflect.Member m)
this evaluate the tree t for a member m. |
java.util.Hashtable |
getCriterion()
This HashTable represent the list of all criterion that are present in this advanced search. |
java.util.ArrayList |
search()
This function execute the search on the classifier or on the inspector( it depends on the constructor call at the instanciation of this object.). |
void |
setClassifierAnalyser(ClassifierAnalyser ca)
To change the classifier analyser if necessary. |
void |
setExpression(java.lang.String expr)
Set the expression to parse. |
void |
setExpressionTree(Tree t)
Set the Tree of expression for this advenced Search. |
void |
setInspector(Inspector inspector)
To change the inspector if necessary |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AdvancedEngineSearch(Inspector inspector)
inspector
- the inspector to use for making some search.Inspector
public AdvancedEngineSearch(ClassifierAnalyser classifier)
classifier
- the classifier to use for making some search.ClassifierAnalyser
Method Detail |
public void setInspector(Inspector inspector)
inspector
- the new inspectorpublic void setClassifierAnalyser(ClassifierAnalyser ca)
ca
- the new classifier analyserpublic void addCriterion(Criterion c)
c
- the criterion to add.public java.util.Hashtable getCriterion()
public boolean checkCriterion(Criterion c)
c
- the criterion to check.
public boolean checkCriterion(java.lang.String criterionName)
criterionName
- the criterionName to check.
public void setExpressionTree(Tree t) throws java.lang.Exception
t
- the tree to set.
java.lang.Exception
Tree
public void setExpression(java.lang.String expr) throws ParseException
expr
- the expression to parse.
ParseException
public boolean evaluateTree(Tree t, java.lang.reflect.Member m) throws java.lang.NullPointerException, java.lang.Exception
t
- the expression tree.m
- the member to evaluate
java.lang.NullPointerException
java.lang.Exception
setExpressionTree
,
AdvSearchParser
public java.util.ArrayList search()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |