org.jboss.byteman.rule
Class Action

java.lang.Object
  extended by org.jboss.byteman.rule.RuleElement
      extended by org.jboss.byteman.rule.Action

public class Action
extends RuleElement

class which represents a rule action comprising a void expression


Field Summary
private  java.util.List<Expression> action
           
 
Fields inherited from class org.jboss.byteman.rule.RuleElement
rule
 
Constructor Summary
protected Action(Rule rule)
           
protected Action(Rule rule, ParseNode actionTree)
           
 
Method Summary
 void compile(MethodVisitor mv, CompileContext compileContext)
           
static Action create(Rule rule, ParseNode actionTree)
           
static Action create(Rule rule, java.lang.String text)
           
 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
compileBooleanConversion, compileBox, compileNumericConversion, compileObjectConversion, compilePrimitiveConversion, compileStringConversion, compileTypeConversion, compileUnbox, getBindings, getTypeGroup, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 class RuleElement
Throws:
TypeException

compile

public void compile(MethodVisitor mv,
                    CompileContext compileContext)
             throws CompileException
Specified by:
compile in class RuleElement
Throws:
CompileException

interpret

public java.lang.Object interpret(HelperAdapter helper)
                           throws ExecuteException
Specified by:
interpret in class RuleElement
Throws:
ExecuteException

writeTo

public void writeTo(java.io.StringWriter stringWriter)
Specified by:
writeTo in class RuleElement