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.Object
generic 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 protected
RuleElement(Rule rule)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
compile(org.objectweb.asm.MethodVisitor mv, CompileContext compileContext)
protected Bindings
getBindings()
protected TypeGroup
getTypeGroup()
abstract java.lang.Object
interpret(HelperAdapter helper)
protected java.lang.Object
rebox(Type fromType, Type toType, java.lang.Object value)
java.lang.String
toString()
abstract Type
typeCheck(Type expected)
abstract void
writeTo(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:
toString
in classjava.lang.Object
-
writeTo
public abstract void writeTo(java.io.StringWriter stringWriter)
-
-