aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/com/healthmarketscience/jackcess/impl/expr
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2018-06-27 03:57:06 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2018-06-27 03:57:06 +0000
commit08d2cf2b83b6af3ac056055c8faa049007825eab (patch)
tree8b6991d4bbe183f98916ab01778dc021885b8de2 /src/main/java/com/healthmarketscience/jackcess/impl/expr
parenta6f33b99a6df0a70305e6e24b1770b3a9b818962 (diff)
downloadjackcess-08d2cf2b83b6af3ac056055c8faa049007825eab.tar.gz
jackcess-08d2cf2b83b6af3ac056055c8faa049007825eab.zip
use common method pattern between ParseContext and EvalConfig
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1176 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/main/java/com/healthmarketscience/jackcess/impl/expr')
-rw-r--r--src/main/java/com/healthmarketscience/jackcess/impl/expr/Expressionator.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/com/healthmarketscience/jackcess/impl/expr/Expressionator.java b/src/main/java/com/healthmarketscience/jackcess/impl/expr/Expressionator.java
index 993f47d..2a5627d 100644
--- a/src/main/java/com/healthmarketscience/jackcess/impl/expr/Expressionator.java
+++ b/src/main/java/com/healthmarketscience/jackcess/impl/expr/Expressionator.java
@@ -39,6 +39,7 @@ import com.healthmarketscience.jackcess.expr.EvalContext;
import com.healthmarketscience.jackcess.expr.EvalException;
import com.healthmarketscience.jackcess.expr.Expression;
import com.healthmarketscience.jackcess.expr.Function;
+import com.healthmarketscience.jackcess.expr.FunctionLookup;
import com.healthmarketscience.jackcess.expr.Identifier;
import com.healthmarketscience.jackcess.expr.ParseException;
import com.healthmarketscience.jackcess.expr.TemporalConfig;
@@ -67,7 +68,7 @@ public class Expressionator
public interface ParseContext {
public TemporalConfig getTemporalConfig();
public SimpleDateFormat createDateFormat(String formatStr);
- public Function getExpressionFunction(String name);
+ public FunctionLookup getFunctionLookup();
}
private enum WordType {
@@ -1109,7 +1110,7 @@ public class Expressionator
}
public Function getFunction(String funcName) {
- return _context.getExpressionFunction(funcName);
+ return _context.getFunctionLookup().getFunction(funcName);
}
@Override