| Package | Description |
|---|---|
| org.powermock.api.mockito.repackaged.asm |
Provides a small and fast bytecode manipulation framework.
|
| org.powermock.api.mockito.repackaged.asm.tree.analysis |
Provides a framework for static code analysis based on the asm.tree package.
|
| org.powermock.api.mockito.repackaged.cglib.core | |
| org.powermock.api.mockito.repackaged.cglib.proxy | |
| org.powermock.api.mockito.repackaged.cglib.transform.impl |
| Modifier and Type | Field and Description |
|---|---|
static Type |
Type.BOOLEAN_TYPE
The boolean type.
|
static Type |
Type.BYTE_TYPE
The byte type.
|
static Type |
Type.CHAR_TYPE
The char type.
|
static Type |
Type.DOUBLE_TYPE
The double type.
|
static Type |
Type.FLOAT_TYPE
The float type.
|
static Type |
Type.INT_TYPE
The int type.
|
static Type |
Type.LONG_TYPE
The long type.
|
static Type |
Type.SHORT_TYPE
The short type.
|
static Type |
Type.VOID_TYPE
The void type.
|
| Modifier and Type | Method and Description |
|---|---|
static Type[] |
Type.getArgumentTypes(Method method)
Returns the Java types corresponding to the argument types of the given
method.
|
static Type[] |
Type.getArgumentTypes(String methodDescriptor)
Returns the Java types corresponding to the argument types of the given
method descriptor.
|
Type |
Type.getElementType()
Returns the type of the elements of this array type.
|
static Type |
Type.getObjectType(String internalName)
Returns the Java type corresponding to the given internal name.
|
static Type |
Type.getReturnType(Method method)
Returns the Java type corresponding to the return type of the given
method.
|
static Type |
Type.getReturnType(String methodDescriptor)
Returns the Java type corresponding to the return type of the given
method descriptor.
|
static Type |
Type.getType(Class c)
Returns the Java type corresponding to the given class.
|
static Type |
Type.getType(String typeDescriptor)
Returns the Java type corresponding to the given type descriptor.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
Type.getMethodDescriptor(Type returnType,
Type[] argumentTypes)
Returns the descriptor corresponding to the given argument and return
types.
|
static String |
Type.getMethodDescriptor(Type returnType,
Type[] argumentTypes)
Returns the descriptor corresponding to the given argument and return
types.
|
| Modifier and Type | Method and Description |
|---|---|
protected Type |
SimpleVerifier.getSuperClass(Type t) |
Type |
BasicValue.getType() |
| Modifier and Type | Method and Description |
|---|---|
protected Class |
SimpleVerifier.getClass(Type t) |
protected Type |
SimpleVerifier.getSuperClass(Type t) |
protected boolean |
SimpleVerifier.isAssignableFrom(Type t,
Type u) |
protected boolean |
SimpleVerifier.isInterface(Type t) |
Value |
SourceInterpreter.newValue(Type type) |
Value |
SimpleVerifier.newValue(Type type) |
Value |
Interpreter.newValue(Type type)
Creates a new value that represents the given type.
|
Value |
BasicInterpreter.newValue(Type type) |
| Constructor and Description |
|---|
BasicValue(Type type) |
SimpleVerifier(Type currentClass,
Type currentSuperClass,
boolean isInterface)
Constructs a new
SimpleVerifier to verify a specific class. |
SimpleVerifier(Type currentClass,
Type currentSuperClass,
List currentClassInterfaces,
boolean isInterface)
Constructs a new
SimpleVerifier to verify a specific class. |
| Modifier and Type | Field and Description |
|---|---|
static Type |
Constants.TYPE_BIG_DECIMAL |
static Type |
Constants.TYPE_BIG_INTEGER |
static Type |
Constants.TYPE_BOOLEAN |
static Type |
Constants.TYPE_BYTE |
static Type |
Constants.TYPE_CHARACTER |
static Type |
Constants.TYPE_CLASS |
static Type |
Constants.TYPE_CLASS_ARRAY |
static Type |
Constants.TYPE_CLASS_LOADER |
static Type |
Constants.TYPE_DOUBLE |
static Type |
Constants.TYPE_ERROR |
static Type |
Constants.TYPE_FLOAT |
static Type |
Constants.TYPE_INTEGER |
static Type |
Constants.TYPE_LONG |
static Type |
Constants.TYPE_NUMBER |
static Type |
Constants.TYPE_OBJECT |
static Type |
Constants.TYPE_OBJECT_ARRAY |
static Type |
Constants.TYPE_RUNTIME_EXCEPTION |
static Type |
Constants.TYPE_SHORT |
static Type |
Constants.TYPE_SIGNATURE |
static Type |
Constants.TYPE_STRING |
static Type |
Constants.TYPE_STRING_ARRAY |
static Type |
Constants.TYPE_STRING_BUFFER |
static Type |
Constants.TYPE_SYSTEM |
static Type |
Constants.TYPE_THROWABLE |
static Type[] |
Constants.TYPES_EMPTY |
| Modifier and Type | Method and Description |
|---|---|
static Type[] |
TypeUtils.add(Type[] types,
Type extra) |
static Type[] |
TypeUtils.add(Type[] t1,
Type[] t2) |
static Type |
TypeUtils.fromInternalName(String name) |
static Type[] |
TypeUtils.fromInternalNames(String[] names) |
Type[] |
Signature.getArgumentTypes() |
static Type |
TypeUtils.getBoxedType(Type type) |
Type |
ClassEmitter.getClassType() |
static Type |
TypeUtils.getComponentType(Type type) |
abstract Type[] |
MethodInfo.getExceptionTypes() |
static Type[] |
ReflectUtils.getExceptionTypes(Member member) |
abstract Type[] |
ClassInfo.getInterfaces() |
Type |
Signature.getReturnType() |
Type |
CodeEmitter.getReturnType() |
abstract Type |
ClassInfo.getSuperType() |
Type |
ClassEmitter.getSuperType() |
Type |
Local.getType() |
abstract Type |
ClassInfo.getType() |
static Type |
TypeUtils.getType(String className) |
static Type[] |
TypeUtils.getTypes(Class[] classes) |
static Type |
TypeUtils.getUnboxedType(Type type) |
static Type |
TypeUtils.parseType(String s) |
static Type[] |
TypeUtils.parseTypes(String s) |
| Modifier and Type | Method and Description |
|---|---|
static void |
EmitUtils.add_properties(ClassEmitter ce,
String[] names,
Type[] types) |
static void |
EmitUtils.add_property(ClassEmitter ce,
String name,
Type type,
String fieldName) |
static Type[] |
TypeUtils.add(Type[] types,
Type extra) |
static Type[] |
TypeUtils.add(Type[] types,
Type extra) |
static Type[] |
TypeUtils.add(Type[] t1,
Type[] t2) |
static Type[] |
TypeUtils.add(Type[] t1,
Type[] t2) |
static void |
EmitUtils.append_string(CodeEmitter e,
Type type,
EmitUtils.ArrayDelimiters delims,
Customizer customizer) |
void |
CodeEmitter.array_load(Type type) |
void |
CodeEmitter.array_store(Type type) |
void |
ClassEmitter.begin_class(int version,
int access,
String className,
Type superType,
Type[] interfaces,
String source) |
void |
ClassEmitter.begin_class(int version,
int access,
String className,
Type superType,
Type[] interfaces,
String source) |
CodeEmitter |
ClassEmitter.begin_method(int access,
Signature sig,
Type[] exceptions) |
void |
CodeEmitter.box(Type type)
If the argument is a primitive class, replaces the primitive value
on the top of the stack with the wrapped (Object) equivalent.
|
void |
CodeEmitter.cast_numeric(Type from,
Type to)
Casts from one primitive numeric type to another
|
void |
CodeEmitter.catch_exception(Block block,
Type exception) |
void |
CodeEmitter.checkcast(Type type) |
void |
Customizer.customize(CodeEmitter e,
Type type) |
void |
ClassEmitter.declare_field(int access,
String name,
Type type,
Object value) |
static String |
TypeUtils.emulateClassGetName(Type type) |
static Type |
TypeUtils.getBoxedType(Type type) |
static String |
TypeUtils.getClassName(Type type) |
static Type |
TypeUtils.getComponentType(Type type) |
void |
CodeEmitter.getfield(Type owner,
String name,
Type type) |
static String |
TypeUtils.getPackageName(Type type) |
static int |
TypeUtils.getStackSize(Type[] types) |
void |
CodeEmitter.getstatic(Type owner,
String name,
Type type) |
static Type |
TypeUtils.getUnboxedType(Type type) |
static void |
EmitUtils.hash_code(CodeEmitter e,
Type type,
int multiplier,
Customizer customizer) |
void |
CodeEmitter.if_cmp(Type type,
int mode,
Label label) |
void |
CodeEmitter.instance_of(Type type) |
void |
CodeEmitter.invoke_constructor(Type type) |
void |
CodeEmitter.invoke_constructor(Type type,
Signature sig) |
void |
CodeEmitter.invoke_interface(Type owner,
Signature sig) |
void |
CodeEmitter.invoke_static(Type owner,
Signature sig) |
void |
CodeEmitter.invoke_virtual(Type owner,
Signature sig) |
void |
CodeEmitter.invoke(MethodInfo method,
Type virtualType) |
static boolean |
TypeUtils.isArray(Type type) |
static boolean |
TypeUtils.isPrimitive(Type type) |
static void |
EmitUtils.load_class(CodeEmitter e,
Type type) |
Local |
CodeEmitter.make_local(Type type) |
void |
CodeEmitter.math(int op,
Type type) |
void |
CodeEmitter.new_instance(Type type) |
void |
CodeEmitter.newarray(Type type) |
static int |
TypeUtils.NEWARRAY(Type type) |
static void |
EmitUtils.not_equals(CodeEmitter e,
Type type,
Label notEquals,
Customizer customizer)
Branches to the specified label if the top two items on the stack
are not equal.
|
static Signature |
TypeUtils.parseConstructor(Type[] types) |
static void |
EmitUtils.process_array(CodeEmitter e,
Type type,
ProcessArrayCallback callback)
Process an array on the stack.
|
static void |
EmitUtils.process_arrays(CodeEmitter e,
Type type,
ProcessArrayCallback callback)
Process two arrays on the stack in parallel.
|
void |
ProcessArrayCallback.processElement(Type type) |
void |
CodeEmitter.putfield(Type owner,
String name,
Type type) |
void |
CodeEmitter.putstatic(Type owner,
String name,
Type type) |
void |
CodeEmitter.super_getfield(String name,
Type type) |
void |
CodeEmitter.super_getstatic(String name,
Type type) |
void |
CodeEmitter.super_putfield(String name,
Type type) |
void |
CodeEmitter.super_putstatic(String name,
Type type) |
void |
CodeEmitter.swap(Type prev,
Type type) |
void |
CodeEmitter.throw_exception(Type type,
String msg) |
static String[] |
TypeUtils.toInternalNames(Type[] types) |
void |
CodeEmitter.unbox_or_zero(Type type)
Unboxes the object on the top of the stack.
|
void |
CodeEmitter.unbox(Type type)
If the argument is a primitive class, replaces the object
on the top of the stack with the unwrapped (primitive)
equivalent.
|
static void |
EmitUtils.wrap_throwable(Block block,
Type wrapper) |
static void |
EmitUtils.wrap_undeclared_throwable(CodeEmitter e,
Block handler,
Type[] exceptions,
Type wrapper) |
static void |
EmitUtils.wrap_undeclared_throwable(CodeEmitter e,
Block handler,
Type[] exceptions,
Type wrapper) |
void |
CodeEmitter.zero_or_null(Type type)
Pushes a zero onto the stack if the argument is a primitive class, or a null otherwise.
|
| Constructor and Description |
|---|
Local(int index,
Type type) |
Signature(String name,
Type returnType,
Type[] argumentTypes) |
Signature(String name,
Type returnType,
Type[] argumentTypes) |
| Modifier and Type | Method and Description |
|---|---|
void |
InterfaceMaker.add(Signature sig,
Type[] exceptions)
Add a method signature to the interface.
|
Object |
Enhancer.EnhancerKey.newInstance(String type,
String[] interfaces,
CallbackFilter filter,
Type[] callbackTypes,
boolean useFactory,
boolean interceptDuringConstruction,
Long serialVersionUID) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
InterceptFieldFilter.acceptRead(Type owner,
String name) |
boolean |
InterceptFieldFilter.acceptWrite(Type owner,
String name) |
void |
InterceptFieldTransformer.begin_class(int version,
int access,
String className,
Type superType,
Type[] interfaces,
String sourceFile) |
void |
InterceptFieldTransformer.begin_class(int version,
int access,
String className,
Type superType,
Type[] interfaces,
String sourceFile) |
void |
FieldProviderTransformer.begin_class(int version,
int access,
String className,
Type superType,
Type[] interfaces,
String sourceFile) |
void |
FieldProviderTransformer.begin_class(int version,
int access,
String className,
Type superType,
Type[] interfaces,
String sourceFile) |
void |
AddDelegateTransformer.begin_class(int version,
int access,
String className,
Type superType,
Type[] interfaces,
String sourceFile) |
void |
AddDelegateTransformer.begin_class(int version,
int access,
String className,
Type superType,
Type[] interfaces,
String sourceFile) |
CodeEmitter |
UndeclaredThrowableTransformer.begin_method(int access,
Signature sig,
Type[] exceptions) |
CodeEmitter |
InterceptFieldTransformer.begin_method(int access,
Signature sig,
Type[] exceptions) |
CodeEmitter |
AddInitTransformer.begin_method(int access,
Signature sig,
Type[] exceptions) |
CodeEmitter |
AddDelegateTransformer.begin_method(int access,
Signature sig,
Type[] exceptions) |
void |
InterceptFieldTransformer.declare_field(int access,
String name,
Type type,
Object value) |
void |
FieldProviderTransformer.declare_field(int access,
String name,
Type type,
Object value) |
void |
AccessFieldTransformer.declare_field(int access,
String name,
Type type,
Object value) |
String |
AccessFieldTransformer.Callback.getPropertyName(Type owner,
String fieldName) |
| Constructor and Description |
|---|
AddPropertyTransformer(String[] names,
Type[] types) |
Copyright © 2007–2016. All rights reserved.