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 void
compile(org.objectweb.asm.MethodVisitor mv, CompileContext compileContext)
static Action
create(Rule rule, java.lang.String text)
static Action
create(Rule rule, ParseNode actionTree)
java.lang.Object
interpret(HelperAdapter helper)
Type
typeCheck(Type expected)
void
writeTo(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:
ParseException
TypeException
-
typeCheck
public Type typeCheck(Type expected) throws TypeException
- Specified by:
typeCheck
in classRuleElement
- Throws:
TypeException
-
compile
public void compile(org.objectweb.asm.MethodVisitor mv, CompileContext compileContext) throws CompileException
- Specified by:
compile
in classRuleElement
- Throws:
CompileException
-
interpret
public java.lang.Object interpret(HelperAdapter helper) throws ExecuteException
- Specified by:
interpret
in classRuleElement
- Throws:
ExecuteException
-
writeTo
public void writeTo(java.io.StringWriter stringWriter)
- Specified by:
writeTo
in classRuleElement
-
-