protected final class AbstractMainMockTransformer.PowerMockExpressionEditor
extends javassist.expr.ExprEditor
Modifier and Type | Field and Description |
---|---|
private javassist.CtClass |
clazz |
Modifier | Constructor and Description |
---|---|
protected |
PowerMockExpressionEditor(javassist.CtClass clazz) |
Modifier and Type | Method and Description |
---|---|
private void |
addNewDeferConstructor(javassist.CtClass clazz)
Create a defer constructor in the class which will be called when the
constructor is suppressed.
|
void |
edit(javassist.expr.ConstructorCall c) |
void |
edit(javassist.expr.FieldAccess f) |
void |
edit(javassist.expr.MethodCall m) |
void |
edit(javassist.expr.NewExpr e) |
private boolean |
shouldTreatAsSystemClassCall(javassist.CtClass declaringClass) |
protected PowerMockExpressionEditor(javassist.CtClass clazz)
public void edit(javassist.expr.FieldAccess f) throws javassist.CannotCompileException
edit
in class javassist.expr.ExprEditor
javassist.CannotCompileException
public void edit(javassist.expr.MethodCall m) throws javassist.CannotCompileException
edit
in class javassist.expr.ExprEditor
javassist.CannotCompileException
private boolean shouldTreatAsSystemClassCall(javassist.CtClass declaringClass)
public void edit(javassist.expr.ConstructorCall c) throws javassist.CannotCompileException
edit
in class javassist.expr.ExprEditor
javassist.CannotCompileException
private void addNewDeferConstructor(javassist.CtClass clazz) throws javassist.CannotCompileException
clazz
- The class whose super constructor will get a new defer
constructor if it doesn't already have one.javassist.CannotCompileException
- If an unexpected compilation error occurs.public void edit(javassist.expr.NewExpr e) throws javassist.CannotCompileException
edit
in class javassist.expr.ExprEditor
javassist.CannotCompileException