Package org.jboss.byteman.rule
Class Action
- java.lang.Object
-
- org.jboss.byteman.rule.RuleElement
-
- org.jboss.byteman.rule.Action
-
public class Action extends RuleElement
class which represents a rule action comprising a void expression
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<Expression>action-
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 Actioncreate(Rule rule, java.lang.String text)static Actioncreate(Rule rule, ParseNode actionTree)java.lang.Objectinterpret(HelperAdapter helper)TypetypeCheck(Type expected)voidwriteTo(java.io.StringWriter stringWriter)-
Methods inherited from class org.jboss.byteman.rule.RuleElement
getBindings, getTypeGroup, rebox, toString
-
-
-
-
Field Detail
-
action
private java.util.List<Expression> action
-
-
Constructor Detail
-
Action
protected Action(Rule rule, ParseNode actionTree) throws TypeException
- Throws:
TypeException
-
Action
protected Action(Rule rule)
-
-
Method Detail
-
create
public static Action create(Rule rule, ParseNode actionTree) throws TypeException
- Throws:
TypeException
-
create
public static Action create(Rule rule, java.lang.String text) throws ParseException, TypeException
- Throws:
ParseExceptionTypeException
-
typeCheck
public Type typeCheck(Type expected) throws TypeException
- Specified by:
typeCheckin classRuleElement- Throws:
TypeException
-
compile
public void compile(org.objectweb.asm.MethodVisitor mv, CompileContext compileContext) throws CompileException- Specified by:
compilein classRuleElement- Throws:
CompileException
-
interpret
public java.lang.Object interpret(HelperAdapter helper) throws ExecuteException
- Specified by:
interpretin classRuleElement- Throws:
ExecuteException
-
writeTo
public void writeTo(java.io.StringWriter stringWriter)
- Specified by:
writeToin classRuleElement
-
-