Top Description Interfaces Classes Enums
[default module]

Package org.easymock.bytebuddy.implementation

Annotations
@ByDefault
Imports
org.easymock.bytebuddy.utility.nullability.NeverNull

The implementation package contains any logic for intercepting method calls.

Interface Summary

Modifier and TypeInterface and Description
public interface
Implementation

An implementation is responsible for implementing methods of a dynamically created type as byte code.

public interface
LoadedTypeInitializer

Implementations of this interface explicitly initialize a loaded type.

public interface
MethodAccessorFactory

A factory for creating method proxies for an auxiliary type.

Class Summary

Modifier and TypeClass and Description
public class
DefaultMethodCall

This Implementation invokes a default method for the methods it instruments.

public class
EqualsMethod

An implementation of Object#equals(Object) that takes a class's declared fields into consideration.

public class
ExceptionMethod

This implementation causes a java.lang.Throwable to be thrown when the instrumented method is invoked.

public abstract class
FieldAccessor

Defines a method to access a given field by following the Java bean conventions for getters and setters:

  • Getter: A method named getFoo() will be instrumented to read and return the value of a field foo or another field if one was specified explicitly. If a property is of type java.lang.Boolean or boolean, the name isFoo() is also permitted.
  • Setter: A method named setFoo(value) will be instrumented to write the given argument value to a field foo or to another field if one was specified explicitly.
public abstract class
FixedValue

This implementation returns a fixed value for a method.

public class
HashCodeMethod

An implementation of Object#hashCode() that takes a class's declared fields into consideration.

public abstract class
public class
InvokeDynamic

An implementation that applies a dynamic method invocation.

public class
MethodCall

This Implementation allows the invocation of a specified method while providing explicit arguments to this method.

public class
MethodDelegation

This implementation delegates a method call to another method which can either be static by providing a reference to a java.lang.Class or an instance method when another object is provided.

public class
ToStringMethod

An implementation of Object#toString() that concatenates the String representation of all fields that are declared by a class.

Enum Summary

Modifier and TypeEnum and Description
public enum
StubMethod

This implementation creates a method stub which does nothing but returning the default value of the return type of the method.

public enum
SuperMethodCall

This implementation will create a new method which simply calls its super method.