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 CEConstraint
ce
protected DapDataset
dataset
protected CEAST
root
protected Deque<DapVariable>
scopestack
-
Constructor Summary
Constructors Constructor Description CECompiler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CEConstraint
compile(DapDataset template, CEAST root)
protected void
compileAST(CEAST ast)
void
compilefilter(DapVariable var, DapSequence seq, CEAST expr)
Convert field references in a filterprotected DapVariable
compilesegment(CEAST ast)
protected void
compileselection(CEAST ast)
protected void
dimredef(CEAST node)
protected DapVariable
getParent()
protected static boolean
isFQN(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)
-
-