public class Condition extends RuleElement
Modifier and Type | Field and Description |
---|---|
private Expression |
condition |
rule
Modifier | Constructor and Description |
---|---|
protected |
Condition(Rule rule) |
protected |
Condition(Rule rule,
ParseNode conditionTree) |
Modifier and Type | Method and Description |
---|---|
void |
compile(MethodVisitor mv,
CompileContext compileContext) |
static Condition |
create(Rule rule,
ParseNode conditionTree) |
static Condition |
create(Rule rule,
java.lang.String text) |
java.lang.Object |
interpret(HelperAdapter helper) |
Type |
typeCheck(Type expected) |
void |
writeTo(java.io.StringWriter stringWriter) |
compileBooleanConversion, compileBox, compileNumericConversion, compileObjectConversion, compilePrimitiveConversion, compileStringConversion, compileTypeConversion, compileUnbox, getBindings, getTypeGroup, toString
private Expression condition
protected Condition(Rule rule, ParseNode conditionTree) throws TypeException
TypeException
protected Condition(Rule rule)
public static Condition create(Rule rule, ParseNode conditionTree) throws TypeException
TypeException
public static Condition create(Rule rule, java.lang.String text) throws ParseException, TypeException
ParseException
TypeException
public Type typeCheck(Type expected) throws TypeException
typeCheck
in class RuleElement
TypeException
public void compile(MethodVisitor mv, CompileContext compileContext) throws CompileException
compile
in class RuleElement
CompileException
public java.lang.Object interpret(HelperAdapter helper) throws ExecuteException
interpret
in class RuleElement
ExecuteException
public void writeTo(java.io.StringWriter stringWriter)
writeTo
in class RuleElement