Package org.jboss.byteman.contrib.dtest
Class RuleBuilder
- java.lang.Object
-
- org.jboss.byteman.contrib.dtest.RuleBuilder
-
@Deprecated public class RuleBuilder extends Object
Deprecated.useRuleConstructorProvides 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 RuleBuilderat(String at)Deprecated.RuleBuilderatEntry()Deprecated.RuleBuilderatExit()Deprecated.RuleBuilderatLine(int line)Deprecated.RuleBuilderdoAction(String action)Deprecated.RuleBuilderinMethod(String methodName)Deprecated.static voidmain(String[] args)Deprecated.RuleBuilderonClass(Class clazz)Deprecated.RuleBuilderonClass(String className)Deprecated.RuleBuilderonInterface(Class clazz)Deprecated.RuleBuilderonInterface(String className)Deprecated.StringtoString()Deprecated.RuleBuilderusingHelper(Class helperClass)Deprecated.RuleBuilderusingHelper(String helperName)Deprecated.RuleBuilderwhen(boolean when)Deprecated.RuleBuilderwhen(String condition)Deprecated.RuleBuilderwhenFalse()Deprecated.RuleBuilderwhenTrue()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.
-
-