Class RuleBuilder

java.lang.Object
org.jboss.byteman.contrib.dtest.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
  • Field Details

    • ruleName

      private String ruleName
      Deprecated.
    • className

      private String className
      Deprecated.
    • isInterface

      private boolean isInterface
      Deprecated.
    • methodName

      private String methodName
      Deprecated.
    • helperName

      private String helperName
      Deprecated.
    • atClause

      private String atClause
      Deprecated.
    • ifClause

      private String ifClause
      Deprecated.
    • doClause

      private String doClause
      Deprecated.
    • LINEBREAK

      private static String LINEBREAK
      Deprecated.
  • Constructor Details

    • RuleBuilder

      public RuleBuilder(String ruleName)
      Deprecated.
  • Method Details