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 Expressioncondition-
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 voidcompile(org.objectweb.asm.MethodVisitor mv, CompileContext compileContext)static Conditioncreate(Rule rule, java.lang.String text)static Conditioncreate(Rule rule, ParseNode conditionTree)java.lang.Objectinterpret(HelperAdapter helper)TypetypeCheck(Type expected)voidwriteTo(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:
ParseExceptionTypeException
-
typeCheck
public Type typeCheck(Type expected) throws TypeException
- Specified by:
typeCheckin classRuleElement- Throws:
TypeException
-
compile
public void compile(org.objectweb.asm.MethodVisitor mv, CompileContext compileContext) throws CompileException- Specified by:
compilein classRuleElement- Throws:
CompileException
-
interpret
public java.lang.Object interpret(HelperAdapter helper) throws ExecuteException
- Specified by:
interpretin classRuleElement- Throws:
ExecuteException
-
writeTo
public void writeTo(java.io.StringWriter stringWriter)
- Specified by:
writeToin classRuleElement
-
-