Package org.jboss.byteman.contrib.dtest
Class RuleBuilder
- java.lang.Object
-
- org.jboss.byteman.contrib.dtest.RuleBuilder
-
@Deprecated public class RuleBuilder extends Object
Deprecated.useRuleConstructor
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
-
-
Constructor Summary
Constructors Constructor Description RuleBuilder(String ruleName)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RuleBuilder
at(String at)
Deprecated.RuleBuilder
atEntry()
Deprecated.RuleBuilder
atExit()
Deprecated.RuleBuilder
atLine(int line)
Deprecated.RuleBuilder
doAction(String action)
Deprecated.RuleBuilder
inMethod(String methodName)
Deprecated.static void
main(String[] args)
Deprecated.RuleBuilder
onClass(Class clazz)
Deprecated.RuleBuilder
onClass(String className)
Deprecated.RuleBuilder
onInterface(Class clazz)
Deprecated.RuleBuilder
onInterface(String className)
Deprecated.String
toString()
Deprecated.RuleBuilder
usingHelper(Class helperClass)
Deprecated.RuleBuilder
usingHelper(String helperName)
Deprecated.RuleBuilder
when(boolean when)
Deprecated.RuleBuilder
when(String condition)
Deprecated.RuleBuilder
whenFalse()
Deprecated.RuleBuilder
whenTrue()
Deprecated.
-
-
-
Constructor Detail
-
RuleBuilder
public RuleBuilder(String ruleName)
Deprecated.
-
-
Method Detail
-
main
public static void main(String[] args)
Deprecated.
-
onClass
public RuleBuilder onClass(Class clazz)
Deprecated.
-
onClass
public RuleBuilder onClass(String className)
Deprecated.
-
onInterface
public RuleBuilder onInterface(Class clazz)
Deprecated.
-
onInterface
public RuleBuilder onInterface(String className)
Deprecated.
-
inMethod
public RuleBuilder inMethod(String methodName)
Deprecated.
-
usingHelper
public RuleBuilder usingHelper(Class helperClass)
Deprecated.
-
usingHelper
public RuleBuilder usingHelper(String helperName)
Deprecated.
-
at
public RuleBuilder at(String at)
Deprecated.
-
atEntry
public RuleBuilder atEntry()
Deprecated.
-
atExit
public RuleBuilder atExit()
Deprecated.
-
atLine
public RuleBuilder atLine(int line)
Deprecated.
-
when
public RuleBuilder when(String condition)
Deprecated.
-
whenTrue
public RuleBuilder whenTrue()
Deprecated.
-
whenFalse
public RuleBuilder whenFalse()
Deprecated.
-
when
public RuleBuilder when(boolean when)
Deprecated.
-
doAction
public RuleBuilder doAction(String action)
Deprecated.
-
-