org.jboss.byteman.rule
Class Condition

java.lang.Object
  extended by org.jboss.byteman.rule.RuleElement
      extended by org.jboss.byteman.rule.Condition

public class Condition
extends RuleElement

class which represents a rule condition comprising a boolean expression


Field Summary
private  Expression condition
           
 
Fields inherited from class org.jboss.byteman.rule.RuleElement
rule
 
Constructor Summary
protected Condition(Rule rule)
           
protected Condition(Rule rule, ParseNode conditionTree)
           
 
Method Summary
 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)
           
 
Methods inherited from class org.jboss.byteman.rule.RuleElement
compileBooleanConversion, compileBox, compileNumericConversion, compileObjectConversion, compilePrimitiveConversion, compileStringConversion, compileTypeConversion, compileUnbox, getBindings, getTypeGroup, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 class RuleElement
Throws:
TypeException

compile

public void compile(MethodVisitor mv,
                    CompileContext compileContext)
             throws CompileException
Specified by:
compile in class RuleElement
Throws:
CompileException

interpret

public java.lang.Object interpret(HelperAdapter helper)
                           throws ExecuteException
Specified by:
interpret in class RuleElement
Throws:
ExecuteException

writeTo

public void writeTo(java.io.StringWriter stringWriter)
Specified by:
writeTo in class RuleElement