Revision 22512 trunk/extensions/extSymbology/src/org/gvsig/symbology/fmap/rendering/filter/operations/Expression.java
Expression.java | ||
---|---|---|
50 | 50 |
/** |
51 | 51 |
* Interface that all the operators of an expression to be parsed |
52 | 52 |
* has to implement |
53 |
*
|
|
53 |
* |
|
54 | 54 |
* @author Pepe Vidal Salvador - jose.vidal.salvador@iver.es |
55 | 55 |
*/ |
56 | 56 |
|
... | ... | |
60 | 60 |
/** |
61 | 61 |
* Returns true if the expression is correctly evaluated using the |
62 | 62 |
* HashTable for that |
63 |
*
|
|
63 |
* |
|
64 | 64 |
* @param symbol_table |
65 | 65 |
* @return |
66 | 66 |
* @throws ExpressionException |
... | ... | |
68 | 68 |
public Object evaluate() throws ExpressionException; |
69 | 69 |
/** |
70 | 70 |
* Returns an String containing the pattern for the operator. That is, the |
71 |
* type of its arguments and its solution
|
|
72 |
*
|
|
71 |
* type of its arguments and its solution |
|
72 |
* |
|
73 | 73 |
* @return String with the pattern |
74 | 74 |
*/ |
75 | 75 |
public String getPattern(); |
76 | 76 |
/** |
77 | 77 |
* Adds an argument (which is an Expression) to the operator in the |
78 | 78 |
* ith position. |
79 |
*
|
|
79 |
* |
|
80 | 80 |
* @param i position where the argument will be added |
81 | 81 |
* @param arg argument to be added |
82 | 82 |
*/ |
83 | 83 |
public void addArgument(int i, Expression arg); |
84 | 84 |
/** |
85 | 85 |
* Obtains the arguments of the Expression |
86 |
*
|
|
86 |
* |
|
87 | 87 |
* @return ArrayList with the arguments |
88 | 88 |
*/ |
89 | 89 |
public ArrayList<Expression> getArguments() ; |
90 | 90 |
/** |
91 | 91 |
* Sets the arguments of the Expression |
92 |
*
|
|
92 |
* |
|
93 | 93 |
* @param arguments |
94 | 94 |
*/ |
95 | 95 |
public void setArguments(ArrayList<Expression> arguments); |
96 | 96 |
/** |
97 | 97 |
* Checks if the semantic of the Expression is correct using for that |
98 | 98 |
* the values of the HashTable if it is necessary |
99 |
*
|
|
99 |
* |
|
100 | 100 |
* @param symbol_table which contains the symbols |
101 | 101 |
* @throws ExpressionException |
102 | 102 |
*/ |
103 |
public void check(Hashtable<String, Value> symbol_table) throws ExpressionException;
|
|
103 |
public void check() throws ExpressionException; |
|
104 | 104 |
} |
Also available in: Unified diff