public class Condition extends RuleElement
rule
Modifier | Constructor | Description |
---|---|---|
protected |
Condition(Rule rule) |
|
protected |
Condition(Rule rule,
ParseNode conditionTree) |
Modifier and Type | Method | Description |
---|---|---|
void |
compile(org.objectweb.asm.MethodVisitor mv,
CompileContext compileContext) |
|
static Condition |
create(Rule rule,
String text) |
|
static Condition |
create(Rule rule,
ParseNode conditionTree) |
|
Object |
interpret(HelperAdapter helper) |
|
Type |
typeCheck(Type expected) |
|
void |
writeTo(StringWriter stringWriter) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBindings, getTypeGroup, rebox, toString
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, String text) throws ParseException, TypeException
ParseException
TypeException
public Type typeCheck(Type expected) throws TypeException
typeCheck
in class RuleElement
TypeException
public void compile(org.objectweb.asm.MethodVisitor mv, CompileContext compileContext) throws CompileException
compile
in class RuleElement
CompileException
public Object interpret(HelperAdapter helper) throws ExecuteException
interpret
in class RuleElement
ExecuteException
public void writeTo(StringWriter stringWriter)
writeTo
in class RuleElement
Copyright © 2018. All rights reserved.