public final class ConcourseCompiler
extends Compiler
Compiler for Concourse.| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(ConditionTree tree,
Association data)
Return
true if the data is described by the condition
encapsulated in the tree. |
boolean |
evaluate(ConditionTree tree,
Multimap<String,Object> data)
Return
true if the data is described by the condition
encapsulated in the tree. |
static ConcourseCompiler |
get()
Return a
ConcourseCompiler. |
AbstractSyntaxTree |
parse(Criteria criteria)
Parse the criteria. |
AbstractSyntaxTree |
parse(Criteria criteria,
Multimap<String,Object> data)
Parse the criteria and bind the local
data. |
AbstractSyntaxTree |
parse(String ccl,
Multimap<String,Object> data) |
AbstractSyntaxTree |
parse(TCriteria criteria)
Parse the criteria. |
AbstractSyntaxTree |
parse(TCriteria criteria,
Multimap<String,Object> data)
Parse the criteria and bind the local
data. |
public static ConcourseCompiler get()
ConcourseCompiler.ConcourseCompilerpublic final boolean evaluate(ConditionTree tree,
Association data)
true if the data is described by the condition
encapsulated in the tree.tree - the ConditionTree that represents the conditiondata - the data to test for adherences to the conditiontrue if the data is described by the criteria that has
been parsedpublic final boolean evaluate(ConditionTree tree,
Multimap<String,Object> data)
true if the data is described by the condition
encapsulated in the tree.tree - the ConditionTree that represents the conditiondata - the data to test for adherences to the conditiontrue if the data is described by the criteria that has
been parsedpublic final AbstractSyntaxTree parse(Criteria criteria)
Parse the criteria.criteria - AbstractSyntaxTree representing the criteriapublic final AbstractSyntaxTree parse(Criteria criteria, Multimap<String,Object> data)
Parse the criteria and bind the local
data.criteria - AbstractSyntaxTree representing the criteriapublic AbstractSyntaxTree parse(String ccl, Multimap<String,Object> data)
parse in class Compilerpublic final AbstractSyntaxTree parse(TCriteria criteria)
Parse the criteria.criteria - AbstractSyntaxTree representing the criteria