Revision 10627 trunk/libraries/libGDBMS/src/main/java/com/hardcode/gdbms/engine/instruction/FunctionAdapter.java
FunctionAdapter.java | ||
---|---|---|
31 | 31 |
public String getFunctionName(){ |
32 | 32 |
return getEntity().first_token.image; |
33 | 33 |
} |
34 |
|
|
34 |
|
|
35 | 35 |
public boolean isAggregated(){ |
36 | 36 |
return FunctionManager.getFunction(getFunctionName()).isAggregate(); |
37 | 37 |
} |
38 |
|
|
38 |
|
|
39 | 39 |
/** |
40 | 40 |
* @see com.hardcode.gdbms.engine.instruction.Expression#evaluate(long) |
41 | 41 |
*/ |
... | ... | |
58 | 58 |
try { |
59 | 59 |
return func.evaluate(paramValues); |
60 | 60 |
} catch (FunctionException e) { |
61 |
throw new EvaluationException("Function error", e);
|
|
61 |
throw new EvaluationException("Function error"); |
|
62 | 62 |
} |
63 | 63 |
} |
64 | 64 |
|
... | ... | |
68 | 68 |
private Function getFunction() { |
69 | 69 |
if (function == null) { |
70 | 70 |
function = FunctionManager.getFunction(getFunctionName()); |
71 |
|
|
71 |
|
|
72 | 72 |
} |
73 | 73 |
|
74 | 74 |
return function; |
Also available in: Unified diff