Class RuleBuilder


  • @Deprecated
    public class RuleBuilder
    extends Object
    Deprecated.
    Provides a fluent API for creating Byteman rules without needing to mess around with String concatenation. Example: RuleBuilder rb = new RuleBuilder("myRule"); rb.onClass("org.jboss.byteman.ExampleClass") .inMethod("doInterestingStuff") .whenTrue().doAction("myAction()"); System.out.println(rb); will print: RULE myRule CLASS org.jboss.byteman.ExampleClass METHOD doInterestingStuff AT ENTRY IF true DO myAction() ENDRULE
    Author:
    Jonathan Halliday (jonathan.halliday@redhat.com) 2010-05