Package org.jboss.byteman.contrib.dtest
Class RuleBuilder
java.lang.Object
org.jboss.byteman.contrib.dtest.RuleBuilder
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.atEntry()Deprecated.atExit()Deprecated.atLine(int line) Deprecated.Deprecated.Deprecated.static voidDeprecated.Deprecated.Deprecated.onInterface(Class clazz) Deprecated.onInterface(String className) Deprecated.private RuleBuilderonSpecifier(String className, boolean isInterface) Deprecated.toString()Deprecated.usingHelper(Class helperClass) Deprecated.usingHelper(String helperName) Deprecated.when(boolean when) Deprecated.Deprecated.Deprecated.whenTrue()Deprecated.
-
Field Details
-
ruleName
Deprecated. -
className
Deprecated. -
isInterface
private boolean isInterfaceDeprecated. -
methodName
Deprecated. -
helperName
Deprecated. -
atClause
Deprecated. -
ifClause
Deprecated. -
doClause
Deprecated. -
LINEBREAK
Deprecated.
-
-
Constructor Details
-
RuleBuilder
Deprecated.
-
-
Method Details
-
main
Deprecated. -
onClass
Deprecated. -
onClass
Deprecated. -
onInterface
Deprecated. -
onInterface
Deprecated. -
onSpecifier
Deprecated. -
inMethod
Deprecated. -
usingHelper
Deprecated. -
usingHelper
Deprecated. -
at
Deprecated. -
atEntry
Deprecated. -
atExit
Deprecated. -
atLine
Deprecated. -
when
Deprecated. -
whenTrue
Deprecated. -
whenFalse
Deprecated. -
when
Deprecated. -
doAction
Deprecated. -
toString
Deprecated.
-
RuleConstructor