Package org.jboss.byteman.rule
Class RuleElement
- java.lang.Object
-
- org.jboss.byteman.rule.RuleElement
-
- Direct Known Subclasses:
Action,Binding,Condition,Event,Expression
public abstract class RuleElement extends java.lang.Objectgeneric class implemented by rule events, conditions and actions which gives them access to the rule context and provides them with common behaviours
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRuleElement(Rule rule)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidcompile(org.objectweb.asm.MethodVisitor mv, CompileContext compileContext)protected BindingsgetBindings()protected TypeGroupgetTypeGroup()abstract java.lang.Objectinterpret(HelperAdapter helper)protected java.lang.Objectrebox(Type fromType, Type toType, java.lang.Object value)java.lang.StringtoString()abstract TypetypeCheck(Type expected)abstract voidwriteTo(java.io.StringWriter stringWriter)
-
-
-
Field Detail
-
rule
protected Rule rule
-
-
Constructor Detail
-
RuleElement
protected RuleElement(Rule rule)
-
-
Method Detail
-
getTypeGroup
protected TypeGroup getTypeGroup()
-
getBindings
protected Bindings getBindings()
-
typeCheck
public abstract Type typeCheck(Type expected) throws TypeException
- Throws:
TypeException
-
interpret
public abstract java.lang.Object interpret(HelperAdapter helper) throws ExecuteException
- Throws:
ExecuteException
-
compile
public abstract void compile(org.objectweb.asm.MethodVisitor mv, CompileContext compileContext) throws CompileException- Throws:
CompileException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
writeTo
public abstract void writeTo(java.io.StringWriter stringWriter)
-
-