Package org.jboss.byteman.rule
Class Condition
- java.lang.Object
-
- org.jboss.byteman.rule.RuleElement
-
- org.jboss.byteman.rule.Condition
-
public class Condition extends RuleElement
class which represents a rule condition comprising a boolean expression
-
-
Field Summary
Fields Modifier and Type Field Description private Expression
condition
-
Fields inherited from class org.jboss.byteman.rule.RuleElement
rule
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
compile(org.objectweb.asm.MethodVisitor mv, CompileContext compileContext)
static Condition
create(Rule rule, java.lang.String text)
static Condition
create(Rule rule, ParseNode conditionTree)
java.lang.Object
interpret(HelperAdapter helper)
Type
typeCheck(Type expected)
void
writeTo(java.io.StringWriter stringWriter)
-
Methods inherited from class org.jboss.byteman.rule.RuleElement
getBindings, getTypeGroup, rebox, toString
-
-
-
-
Field Detail
-
condition
private Expression condition
-
-
Constructor Detail
-
Condition
protected Condition(Rule rule, ParseNode conditionTree) throws TypeException
- Throws:
TypeException
-
Condition
protected Condition(Rule rule)
-
-
Method Detail
-
create
public static Condition create(Rule rule, ParseNode conditionTree) throws TypeException
- Throws:
TypeException
-
create
public static Condition create(Rule rule, java.lang.String text) throws ParseException, TypeException
- Throws:
ParseException
TypeException
-
typeCheck
public Type typeCheck(Type expected) throws TypeException
- Specified by:
typeCheck
in classRuleElement
- Throws:
TypeException
-
compile
public void compile(org.objectweb.asm.MethodVisitor mv, CompileContext compileContext) throws CompileException
- Specified by:
compile
in classRuleElement
- Throws:
CompileException
-
interpret
public java.lang.Object interpret(HelperAdapter helper) throws ExecuteException
- Specified by:
interpret
in classRuleElement
- Throws:
ExecuteException
-
writeTo
public void writeTo(java.io.StringWriter stringWriter)
- Specified by:
writeTo
in classRuleElement
-
-