Package dap4.core.ce
Class CECompiler
- java.lang.Object
-
- dap4.core.ce.CECompiler
-
public class CECompiler extends Object
Given an AST, compile it into a CEConstraint instance Eventually this will go away and the constraint parser will directly create the constraint.
-
-
Field Summary
Fields Modifier and Type Field Description protected CEConstraintceprotected DapDatasetdatasetprotected CEASTrootprotected Deque<DapVariable>scopestack
-
Constructor Summary
Constructors Constructor Description CECompiler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CEConstraintcompile(DapDataset template, CEAST root)protected voidcompileAST(CEAST ast)voidcompilefilter(DapVariable var, DapSequence seq, CEAST expr)Convert field references in a filterprotected DapVariablecompilesegment(CEAST ast)protected voidcompileselection(CEAST ast)protected voiddimredef(CEAST node)protected DapVariablegetParent()protected static booleanisFQN(String s)
-
-
-
Field Detail
-
scopestack
protected Deque<DapVariable> scopestack
-
dataset
protected DapDataset dataset
-
ce
protected CEConstraint ce
-
root
protected CEAST root
-
-
Method Detail
-
compile
public CEConstraint compile(DapDataset template, CEAST root) throws DapException
- Throws:
DapException
-
compileAST
protected void compileAST(CEAST ast) throws DapException
- Throws:
DapException
-
compileselection
protected void compileselection(CEAST ast) throws DapException
- Throws:
DapException
-
compilesegment
protected DapVariable compilesegment(CEAST ast) throws DapException
- Throws:
DapException
-
compilefilter
public void compilefilter(DapVariable var, DapSequence seq, CEAST expr) throws DapException
Convert field references in a filter- Throws:
DapException
-
dimredef
protected void dimredef(CEAST node) throws DapException
- Throws:
DapException
-
getParent
protected DapVariable getParent()
-
isFQN
protected static boolean isFQN(String s)
-
-