Package org.jboss.byteman.rule
Class Event
- java.lang.Object
-
- org.jboss.byteman.rule.RuleElement
-
- org.jboss.byteman.rule.Event
-
public class Event extends RuleElement
class which represents a rule event comprising of a set of abstract bindings of event variables to evaluable expressions.
-
-
Field Summary
-
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 Eventcreate(Rule rule, String text)static Eventcreate(Rule rule, ParseNode eventTree)BindingcreateBinding(ParseNode varTree)BindingsgetBindings()Objectinterpret(HelperAdapter helper)TypetypeCheck(Type expected)voidwriteTo(StringWriter stringWriter)-
Methods inherited from class org.jboss.byteman.rule.RuleElement
getTypeGroup, rebox, toString
-
-
-
-
Constructor Detail
-
Event
protected Event(Rule rule, ParseNode eventTree) throws TypeException
- Throws:
TypeException
-
Event
protected Event(Rule rule)
-
-
Method Detail
-
create
public static Event create(Rule rule, ParseNode eventTree) throws TypeException
- Throws:
TypeException
-
create
public static Event create(Rule rule, String text) throws ParseException, TypeException
- Throws:
ParseExceptionTypeException
-
getBindings
public Bindings getBindings()
- Overrides:
getBindingsin classRuleElement
-
typeCheck
public Type typeCheck(Type expected) throws TypeException
- Specified by:
typeCheckin classRuleElement- Throws:
TypeException
-
createBinding
public Binding createBinding(ParseNode varTree) throws TypeException
- Throws:
TypeException
-
interpret
public Object interpret(HelperAdapter helper) throws ExecuteException
- Specified by:
interpretin classRuleElement- Throws:
ExecuteException
-
compile
public void compile(org.objectweb.asm.MethodVisitor mv, CompileContext compileContext) throws CompileException- Specified by:
compilein classRuleElement- Throws:
CompileException
-
writeTo
public void writeTo(StringWriter stringWriter)
- Specified by:
writeToin classRuleElement
-
-