org.easymock.bytebuddy.implementation.StubMethod
implementation, this implementation allows to determine a specific value which must be assignable to the returning value
of any instrumented method. Otherwise, an exception will be thrown.
FieldAccessor
| Modifier and Type | Class and Description |
|---|---|
| public static interface | FixedValue.
Represents a fixed value implementation that is using a default assigner for attempting to assign the fixed value to the return type of the instrumented method. |
| protected static class | FixedValue.
A fixed value implementation that returns a method's argument. |
| protected static class | FixedValue.
A fixed value implementation that represents its fixed value as a constant pool value or a byte code instruction. |
| protected static enum | FixedValue.
A fixed value of |
| protected static class | FixedValue.
A fixed value that appends the origin type of the instrumented type. |
| protected static class | FixedValue.
A fixed value of |
| protected static class | FixedValue.
A fixed value implementation that represents its fixed value as a static field of the instrumented class. |
| Modifier and Type | Field and Description |
|---|---|
| protected final Assigner | assigner
The assigner that is used for assigning the fixed value to a method's return type. |
| protected final Assigner. | typing
Indicates if dynamic type castings should be attempted for incompatible assignments. |
| Access | Constructor and Description |
|---|---|
| protected | FixedValue(Assigner
The assigner to use for assigning the fixed value to the return type of the instrumented value. assigner, Assigner.Indicates if dynamic type castings should be attempted for incompatible assignments. typingCreates a new fixed value implementation. |
| Modifier and Type | Method and Description |
|---|---|
| protected ByteCodeAppender. | Returns: A representation of the stack and variable array sized that are required for this implementation.The method visitor to which the implementation is applied to. methodVisitor, Implementation.The implementation context for the given implementation. implementationContext,The instrumented method that is target of the implementation. instrumentedMethod, TypeDescription.A description of the type of the fixed value that is loaded by the
typeDescription,valueLoadingInstruction.A stack manipulation that represents the loading of the fixed value onto the
operand stack. stackManipulation)Blueprint method that for applying the actual implementation. |
| public static FixedValue. | Returns: An implementation of a method that returns the argument at the specified index.The index of the argument to return. index)Returns the argument at the specified index. |
| public static Implementation | Returns: An implementation that returnsnull from a method.Returns a |
| public static FixedValue. | Returns: An implementation that returns the origin type of the current instrumented type.Returns the origin type from an instrumented method. |
| public static FixedValue. | Returns: An implementation for the givenvalue.The fixed value to be returned by methods that are instrumented by this implementation. value)Other than |
| public static FixedValue. | Returns: An implementation for the givenvalue.The fixed value to be returned by methods that are instrumented by this implementation. value, String The name of the field for storing the fixed value. name)Other than |
| public static FixedValue. | Returns: An implementation that returnsthis from a method.Returns |
| public static FixedValue. | |
| public static FixedValue. | Returns: An implementation for the givenvalue.The type to return from the method. type)Returns the given type in form of a loaded type. |
| public static FixedValue. | Returns: An implementation for the givenvalue.The type to return from the method. constant)Returns the loaded version of the given |
| public static FixedValue. | Returns: An implementation for the givenvalue.The type to return from the method. constant)Returns the loaded version of the given |