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
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 |
condition
private Expression condition
Condition
protected Condition(Rule rule,
ParseNode conditionTree)
throws TypeException
- Throws:
TypeException
Condition
protected Condition(Rule rule)
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