Top Description Inners Methods
org.easymock.bytebuddy.implementation.bytecode

public Interface StackManipulation

Known Direct Subinterfaces
org.easymock.bytebuddy.implementation.bytecode.collection.ArrayFactory.ArrayCreator, org.easymock.bytebuddy.implementation.bytecode.constant.MethodConstant.CanCache, org.easymock.bytebuddy.implementation.bytecode.member.MethodInvocation.WithImplicitInvocationTargetType, org.easymock.bytebuddy.implementation.Implementation.SpecialMethodInvocation, org.easymock.bytebuddy.implementation.bind.MethodDelegationBinder.ParameterBinding, org.easymock.bytebuddy.implementation.bind.MethodDelegationBinder.MethodBinding
Known Direct Implementers
org.easymock.bytebuddy.implementation.bytecode.StackManipulation.Illegal, org.easymock.bytebuddy.implementation.bytecode.StackManipulation.Trivial, org.easymock.bytebuddy.implementation.bytecode.StackManipulation.AbstractBase, org.easymock.bytebuddy.implementation.bytecode.StackManipulation.Compound, org.easymock.bytebuddy.implementation.bytecode.Subtraction, org.easymock.bytebuddy.implementation.bytecode.Throw, org.easymock.bytebuddy.implementation.bytecode.assign.primitive.PrimitiveBoxingDelegate.BoxingStackManipulation, org.easymock.bytebuddy.implementation.bytecode.assign.primitive.PrimitiveUnboxingDelegate, org.easymock.bytebuddy.implementation.bytecode.collection.ArrayFactory.ArrayStackManipulation, org.easymock.bytebuddy.implementation.bytecode.collection.ArrayLength, org.easymock.bytebuddy.implementation.bytecode.constant.ClassConstant, org.easymock.bytebuddy.implementation.bytecode.constant.ClassConstant.ForReferenceType, org.easymock.bytebuddy.implementation.bytecode.constant.DefaultValue, org.easymock.bytebuddy.implementation.bytecode.constant.DoubleConstant, org.easymock.bytebuddy.implementation.bytecode.constant.FieldConstant.Cached, org.easymock.bytebuddy.implementation.bytecode.constant.FloatConstant, org.easymock.bytebuddy.implementation.bytecode.constant.IntegerConstant, org.easymock.bytebuddy.implementation.bytecode.constant.LongConstant, org.easymock.bytebuddy.implementation.bytecode.constant.MethodConstant.PrivilegedLookup, org.easymock.bytebuddy.implementation.bytecode.constant.MethodConstant.CachedMethod, org.easymock.bytebuddy.implementation.bytecode.constant.MethodConstant.CachedConstructor, org.easymock.bytebuddy.implementation.bytecode.constant.NullConstant, org.easymock.bytebuddy.implementation.bytecode.member.MethodReturn, org.easymock.bytebuddy.asm.Advice.AssignReturned.DefaultValueSkip, org.easymock.bytebuddy.asm.Advice.AssignReturned.ExceptionHandler, org.easymock.bytebuddy.implementation.EqualsMethod.ValueComparator, org.easymock.bytebuddy.implementation.HashCodeMethod.ValueTransformer, org.easymock.bytebuddy.implementation.Implementation.Context.Default.FieldCacheEntry, org.easymock.bytebuddy.implementation.ToStringMethod.ValueConsumer, org.easymock.bytebuddy.implementation.auxiliary.TypeProxy.AbstractMethodErrorThrow, org.easymock.bytebuddy.implementation.auxiliary.TypeProxy.MethodCall.Appender.AccessorMethodInvocation, org.easymock.bytebuddy.implementation.bind.annotation.DefaultMethod.Binder.DelegationMethod, org.easymock.bytebuddy.implementation.bind.annotation.SuperMethod.Binder.DelegationMethod, org.easymock.bytebuddy.implementation.bytecode.Addition, org.easymock.bytebuddy.implementation.bytecode.Division, org.easymock.bytebuddy.implementation.bytecode.Duplication, org.easymock.bytebuddy.implementation.bytecode.Duplication.WithFlip, org.easymock.bytebuddy.implementation.bytecode.Multiplication, org.easymock.bytebuddy.implementation.bytecode.Remainder, org.easymock.bytebuddy.implementation.bytecode.Removal, org.easymock.bytebuddy.implementation.bytecode.ShiftLeft, org.easymock.bytebuddy.implementation.bytecode.ShiftRight, org.easymock.bytebuddy.implementation.bytecode.ShiftRight.Unsigned
Imports
org.easymock.bytebuddy.build.HashCodeAndEqualsPlugin, org.easymock.bytebuddy.implementation.Implementation, org.easymock.bytebuddy.jar.asm.MethodVisitor, java.util.ArrayList, .Arrays, .List

Describes a manipulation of a method's operand stack that does not affect the frame's variable array.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public abstract static class
StackManipulation.AbstractBase

An abstract base implementation of a valid stack manipulation.

public static class
StackManipulation.Compound

An immutable stack manipulation that aggregates a sequence of other stack manipulations.

public static enum
StackManipulation.Illegal

Canonical representation of an illegal stack manipulation.

public static class
StackManipulation.Simple

An implementation of StackManipulation that simplifies functional invocations via lambda expressions.

public static class
StackManipulation.Size

A description of the size change that is imposed by some StackManipulation.

public static enum
StackManipulation.Trivial

Canonical representation of a legal stack manipulation which does not require any action.

Method Summary

Modifier and TypeMethod and Description
public StackManipulation.Size

Returns:

The changes to the size of the operand stack that are implied by this stack manipulation.
apply
(MethodVisitor
The method visitor used to write the method implementation to.
methodVisitor
,
Implementation.Context
The context of the current implementation.
implementationContext
)

Applies the stack manipulation that is described by this instance.

public boolean

Returns:

If false, this manipulation cannot be applied and should throw an exception.
isValid
()

Determines if this stack manipulation is valid.

Method Detail

applyback to summary
public StackManipulation.Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext)

Applies the stack manipulation that is described by this instance.

Parameters
methodVisitor:MethodVisitor

The method visitor used to write the method implementation to.

implementationContext:Implementation.Context

The context of the current implementation.

Returns:StackManipulation.Size

The changes to the size of the operand stack that are implied by this stack manipulation.

isValidback to summary
public boolean isValid()

Determines if this stack manipulation is valid.

Returns:boolean

If false, this manipulation cannot be applied and should throw an exception.

org.easymock.bytebuddy.implementation.bytecode back to summary

public abstract Class StackManipulation.AbstractBase

extends Object
implements StackManipulation
Class Inheritance
  • java.lang.Object
  • org.easymock.bytebuddy.implementation.bytecode.StackManipulation.AbstractBase
All Implemented Interfaces
org.easymock.bytebuddy.implementation.bytecode.StackManipulation
Known Direct Subclasses
org.easymock.bytebuddy.implementation.bytecode.StackManipulation.Simple, org.easymock.bytebuddy.implementation.bytecode.TypeCreation, org.easymock.bytebuddy.implementation.bytecode.assign.InstanceCheck, org.easymock.bytebuddy.implementation.bytecode.assign.TypeCasting, org.easymock.bytebuddy.implementation.bytecode.assign.primitive.PrimitiveWideningDelegate.WideningStackManipulation, org.easymock.bytebuddy.implementation.bytecode.collection.ArrayAccess.Loader, org.easymock.bytebuddy.implementation.bytecode.collection.ArrayAccess.Putter, org.easymock.bytebuddy.implementation.bytecode.collection.ArrayFactory.ArrayCreator.ForReferenceType, org.easymock.bytebuddy.implementation.bytecode.constant.DoubleConstant.ConstantPool, org.easymock.bytebuddy.implementation.bytecode.constant.FieldConstant, org.easymock.bytebuddy.implementation.bytecode.constant.FloatConstant.ConstantPool, org.easymock.bytebuddy.implementation.bytecode.constant.IntegerConstant.SingleBytePush, org.easymock.bytebuddy.implementation.bytecode.constant.IntegerConstant.TwoBytePush, org.easymock.bytebuddy.implementation.bytecode.constant.IntegerConstant.ConstantPool, org.easymock.bytebuddy.implementation.bytecode.constant.JavaConstantValue, org.easymock.bytebuddy.implementation.bytecode.constant.LongConstant.ConstantPool, org.easymock.bytebuddy.implementation.bytecode.constant.MethodConstant, org.easymock.bytebuddy.implementation.bytecode.constant.SerializedConstant, org.easymock.bytebuddy.implementation.bytecode.constant.TextConstant, org.easymock.bytebuddy.implementation.bytecode.member.FieldAccess.AccessDispatcher.AbstractFieldInstruction, org.easymock.bytebuddy.implementation.bytecode.member.HandleInvocation, org.easymock.bytebuddy.implementation.bytecode.member.MethodInvocation.Invocation, org.easymock.bytebuddy.implementation.bytecode.member.MethodInvocation.DynamicInvocation, org.easymock.bytebuddy.implementation.bytecode.member.MethodInvocation.HandleInvocation, org.easymock.bytebuddy.implementation.bytecode.member.MethodVariableAccess.MethodLoading, org.easymock.bytebuddy.implementation.bytecode.member.MethodVariableAccess.OffsetLoading, org.easymock.bytebuddy.implementation.bytecode.member.MethodVariableAccess.OffsetWriting, org.easymock.bytebuddy.implementation.bytecode.member.MethodVariableAccess.OffsetIncrementing, org.easymock.bytebuddy.agent.builder.AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.LambdaMethodImplementation.Appender.Dispatcher.UsingMethodHandle, org.easymock.bytebuddy.implementation.EqualsMethod.NullValueGuard.UsingJump.BeforeInstruction, org.easymock.bytebuddy.implementation.EqualsMethod.NullValueGuard.UsingJump.AfterInstruction, org.easymock.bytebuddy.implementation.EqualsMethod.ConditionalReturn, org.easymock.bytebuddy.implementation.HashCodeMethod.NullValueGuard.UsingJump.BeforeInstruction, org.easymock.bytebuddy.implementation.HashCodeMethod.NullValueGuard.UsingJump.AfterInstruction, org.easymock.bytebuddy.implementation.Implementation.SpecialMethodInvocation.AbstractBase, org.easymock.bytebuddy.implementation.auxiliary.MethodCallProxy.AssignableSignatureCall, org.easymock.bytebuddy.implementation.auxiliary.TypeProxy.ForSuperMethodByConstructor, org.easymock.bytebuddy.implementation.auxiliary.TypeProxy.ForSuperMethodByReflectionFactory, org.easymock.bytebuddy.implementation.auxiliary.TypeProxy.ForDefaultMethod, org.easymock.bytebuddy.implementation.bind.annotation.FieldProxy.Binder.AccessorProxy, org.easymock.bytebuddy.implementation.bind.annotation.Morph.Binder.RedirectionProxy, org.easymock.bytebuddy.implementation.bind.annotation.Pipe.Binder.RedirectionProxy

An abstract base implementation of a valid stack manipulation.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
isValid()

Implements org.easymock.bytebuddy.implementation.bytecode.StackManipulation.isValid.

Determines if this stack manipulation is valid.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AbstractBaseback to summary
public AbstractBase()

Method Detail

isValidback to summary
public boolean isValid()

Implements org.easymock.bytebuddy.implementation.bytecode.StackManipulation.isValid.

Doc from org.easymock.bytebuddy.implementation.bytecode.StackManipulation.isValid.

Determines if this stack manipulation is valid.

Returns:boolean

If false, this manipulation cannot be applied and should throw an exception.

org.easymock.bytebuddy.implementation.bytecode back to summary

public Class StackManipulation.Compound

extends Object
implements StackManipulation
Class Inheritance
  • java.lang.Object
  • org.easymock.bytebuddy.implementation.bytecode.StackManipulation.Compound
All Implemented Interfaces
org.easymock.bytebuddy.implementation.bytecode.StackManipulation
Annotations
@Enhance

An immutable stack manipulation that aggregates a sequence of other stack manipulations.

Field Summary

Modifier and TypeField and Description
private final List<StackManipulation>
stackManipulations

The stack manipulations this compound operation represents in their application order.

Constructor Summary

AccessConstructor and Description
public
Compound(StackManipulation...
The stack manipulations to be composed in the order of their composition.
stackManipulation
)

Creates a new compound stack manipulation.

public
Compound(List<? extends StackManipulation>
The stack manipulations to be composed in the order of their composition.
stackManipulations
)

Creates a new compound stack manipulation.

Method Summary

Modifier and TypeMethod and Description
public StackManipulation.Size
apply(MethodVisitor
The method visitor used to write the method implementation to.
methodVisitor
,
Implementation.Context
The context of the current implementation.
implementationContext
)

Implements org.easymock.bytebuddy.implementation.bytecode.StackManipulation.apply.

Applies the stack manipulation that is described by this instance.
public boolean
isValid()

Implements org.easymock.bytebuddy.implementation.bytecode.StackManipulation.isValid.

Determines if this stack manipulation is valid.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

stackManipulationsback to summary
private final List<StackManipulation> stackManipulations

The stack manipulations this compound operation represents in their application order.

Constructor Detail

Compoundback to summary
public Compound(StackManipulation... stackManipulation)

Creates a new compound stack manipulation.

Parameters
stackManipulation:StackManipulation[]

The stack manipulations to be composed in the order of their composition.

Compoundback to summary
public Compound(List<? extends StackManipulation> stackManipulations)

Creates a new compound stack manipulation.

Parameters
stackManipulations:List<? extends StackManipulation>

The stack manipulations to be composed in the order of their composition.

Method Detail

applyback to summary
public StackManipulation.Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext)

Implements org.easymock.bytebuddy.implementation.bytecode.StackManipulation.apply.

Doc from org.easymock.bytebuddy.implementation.bytecode.StackManipulation.apply.

Applies the stack manipulation that is described by this instance.

Parameters
methodVisitor:MethodVisitor

The method visitor used to write the method implementation to.

implementationContext:Implementation.Context

The context of the current implementation.

Returns:StackManipulation.Size

The changes to the size of the operand stack that are implied by this stack manipulation.

isValidback to summary
public boolean isValid()

Implements org.easymock.bytebuddy.implementation.bytecode.StackManipulation.isValid.

Doc from org.easymock.bytebuddy.implementation.bytecode.StackManipulation.isValid.

Determines if this stack manipulation is valid.

Returns:boolean

If false, this manipulation cannot be applied and should throw an exception.

org.easymock.bytebuddy.implementation.bytecode back to summary

public final Enum StackManipulation.Illegal

extends Enum<StackManipulation.Illegal>
implements StackManipulation
Class Inheritance
All Implemented Interfaces
org.easymock.bytebuddy.implementation.bytecode.StackManipulation

Canonical representation of an illegal stack manipulation.

Field Summary

Modifier and TypeField and Description
public static final StackManipulation.Illegal
INSTANCE

The singleton instance.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public StackManipulation.Size
apply(MethodVisitor
The method visitor used to write the method implementation to.
methodVisitor
,
Implementation.Context
The context of the current implementation.
implementationContext
)

Implements org.easymock.bytebuddy.implementation.bytecode.StackManipulation.apply.

Applies the stack manipulation that is described by this instance.
public boolean
isValid()

Implements org.easymock.bytebuddy.implementation.bytecode.StackManipulation.isValid.

Determines if this stack manipulation is valid.
public static StackManipulation.Illegal
public static StackManipulation.Illegal[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

INSTANCEback to summary
public static final StackManipulation.Illegal INSTANCE

The singleton instance.

Constructor Detail

Illegalback to summary
private Illegal()

Method Detail

applyback to summary
public StackManipulation.Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext)

Implements org.easymock.bytebuddy.implementation.bytecode.StackManipulation.apply.

Doc from org.easymock.bytebuddy.implementation.bytecode.StackManipulation.apply.

Applies the stack manipulation that is described by this instance.

Parameters
methodVisitor:MethodVisitor

The method visitor used to write the method implementation to.

implementationContext:Implementation.Context

The context of the current implementation.

Returns:StackManipulation.Size

The changes to the size of the operand stack that are implied by this stack manipulation.

isValidback to summary
public boolean isValid()

Implements org.easymock.bytebuddy.implementation.bytecode.StackManipulation.isValid.

Doc from org.easymock.bytebuddy.implementation.bytecode.StackManipulation.isValid.

Determines if this stack manipulation is valid.

Returns:boolean

If false, this manipulation cannot be applied and should throw an exception.

valueOfback to summary
public static StackManipulation.Illegal valueOf(String name)
valuesback to summary
public static StackManipulation.Illegal[] values()
org.easymock.bytebuddy.implementation.bytecode back to summary

public Class StackManipulation.Simple

extends AbstractBase
Class Inheritance
Annotations
@Enhance

An implementation of StackManipulation that simplifies functional invocations via lambda expressions.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
StackManipulation.Simple.Dispatcher

A dispatcher for an instance of Simple.

Field Summary

Modifier and TypeField and Description
private final StackManipulation.Simple.Dispatcher
dispatcher

The dispatcher to use.

Constructor Summary

AccessConstructor and Description
public
Simple(StackManipulation.Simple.Dispatcher
The dispatcher to use.
dispatcher
)

Creates a new stack manipulation for a dispatcher.

Method Summary

Modifier and TypeMethod and Description
public StackManipulation.Size
apply(MethodVisitor
The method visitor used to write the method implementation to.
methodVisitor
,
Implementation.Context
The context of the current implementation.
implementationContext
)

Implements org.easymock.bytebuddy.implementation.bytecode.StackManipulation.apply.

Applies the stack manipulation that is described by this instance.
Inherited from org.easymock.bytebuddy.implementation.bytecode.StackManipulation.AbstractBase:
isValid

Field Detail

dispatcherback to summary
private final StackManipulation.Simple.Dispatcher dispatcher

The dispatcher to use.

Constructor Detail

Simpleback to summary
public Simple(StackManipulation.Simple.Dispatcher dispatcher)

Creates a new stack manipulation for a dispatcher.

Parameters
dispatcher:StackManipulation.Simple.Dispatcher

The dispatcher to use.

Method Detail

applyback to summary
public StackManipulation.Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext)

Implements org.easymock.bytebuddy.implementation.bytecode.StackManipulation.apply.

Doc from org.easymock.bytebuddy.implementation.bytecode.StackManipulation.apply.

Applies the stack manipulation that is described by this instance.

Parameters
methodVisitor:MethodVisitor

The method visitor used to write the method implementation to.

implementationContext:Implementation.Context

The context of the current implementation.

Returns:StackManipulation.Size

The changes to the size of the operand stack that are implied by this stack manipulation.

org.easymock.bytebuddy.implementation.bytecode back to summary

public Interface StackManipulation.Simple.Dispatcher


A dispatcher for an instance of Simple.

Method Summary

Modifier and TypeMethod and Description
public StackManipulation.Size

Returns:

The changes to the size of the operand stack that are implied by this stack manipulation.
apply
(MethodVisitor
The method visitor used to write the method implementation to.
methodVisitor
,
Implementation.Context
The context of the current implementation.
implementationContext
)

A valid implementation of StackManipulation#apply(MethodVisitor, Implementation.Context).

Method Detail

applyback to summary
public StackManipulation.Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext)

A valid implementation of StackManipulation#apply(MethodVisitor, Implementation.Context).

Parameters
methodVisitor:MethodVisitor

The method visitor used to write the method implementation to.

implementationContext:Implementation.Context

The context of the current implementation.

Returns:StackManipulation.Size

The changes to the size of the operand stack that are implied by this stack manipulation.

org.easymock.bytebuddy.implementation.bytecode back to summary

public Class StackManipulation.Size

extends Object
Class Inheritance
  • java.lang.Object
  • org.easymock.bytebuddy.implementation.bytecode.StackManipulation.Size
Annotations
@Enhance

A description of the size change that is imposed by some StackManipulation.

Field Summary

Modifier and TypeField and Description
private final int
maximalSize

The maximal size of stack slots this stack manipulation ever requires.

private final int
sizeImpact

The impact of any size operation onto the operand stack.

public static final StackManipulation.Size
ZERO

A size of zero.

Constructor Summary

AccessConstructor and Description
public
Size(int
The change of the size of the operand stack that is implied by some stack manipulation.
sizeImpact
,
int
The maximal stack size that is required for executing this stack manipulation. Should never be negative number.
maximalSize
)

Creates an immutable descriptor of the size change that is implied by some stack manipulation.

Method Summary

Modifier and TypeMethod and Description
public StackManipulation.Size

Returns:

A new size representation representing both stack size requirements.
aggregate
(StackManipulation.Size
The other size representation.
other
)

Concatenates this size representation with another size representation in order to represent the size change that is represented by both alterations of the operand stack size.

private StackManipulation.Size

Returns:

The aggregated size.
aggregate
(int
The change in size the other operation implies.
sizeChange
,
int
The interim maximal size of the operand stack that the other operation requires at least to function.
interimMaximalSize
)

Aggregates a size change with this stack manipulation size.

public int

Returns:

The maximal interim size of the operand stack that is represented by this instance.
getMaximalSize
()

Returns the maximal interim size of the operand stack that is represented by this instance.

public int

Returns:

The size change on the operand stack that is represented by this instance.
getSizeImpact
()

Returns the size change on the operand stack that is represented by this instance.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

maximalSizeback to summary
private final int maximalSize

The maximal size of stack slots this stack manipulation ever requires. If an operation for example pushes five values onto the stack and subsequently consumes three operations, this value should still be five to express that a stack operation requires at least five slots in order to be applicable.

sizeImpactback to summary
private final int sizeImpact

The impact of any size operation onto the operand stack. This value can be negative if more values were consumed from the stack than added to it.

ZEROback to summary
public static final StackManipulation.Size ZERO

A size of zero.

Constructor Detail

Sizeback to summary
public Size(int sizeImpact, int maximalSize)

Creates an immutable descriptor of the size change that is implied by some stack manipulation.

Parameters
sizeImpact:int

The change of the size of the operand stack that is implied by some stack manipulation.

maximalSize:int

The maximal stack size that is required for executing this stack manipulation. Should never be negative number.

Method Detail

aggregateback to summary
public StackManipulation.Size aggregate(StackManipulation.Size other)

Concatenates this size representation with another size representation in order to represent the size change that is represented by both alterations of the operand stack size.

Parameters
other:StackManipulation.Size

The other size representation.

Returns:StackManipulation.Size

A new size representation representing both stack size requirements.

aggregateback to summary
private StackManipulation.Size aggregate(int sizeChange, int interimMaximalSize)

Aggregates a size change with this stack manipulation size.

Parameters
sizeChange:int

The change in size the other operation implies.

interimMaximalSize:int

The interim maximal size of the operand stack that the other operation requires at least to function.

Returns:StackManipulation.Size

The aggregated size.

getMaximalSizeback to summary
public int getMaximalSize()

Returns the maximal interim size of the operand stack that is represented by this instance.

Returns:int

The maximal interim size of the operand stack that is represented by this instance.

getSizeImpactback to summary
public int getSizeImpact()

Returns the size change on the operand stack that is represented by this instance.

Returns:int

The size change on the operand stack that is represented by this instance.

org.easymock.bytebuddy.implementation.bytecode back to summary

public final Enum StackManipulation.Trivial

extends Enum<StackManipulation.Trivial>
implements StackManipulation
Class Inheritance
All Implemented Interfaces
org.easymock.bytebuddy.implementation.bytecode.StackManipulation

Canonical representation of a legal stack manipulation which does not require any action.

Field Summary

Modifier and TypeField and Description
public static final StackManipulation.Trivial
INSTANCE

The singleton instance.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public StackManipulation.Size
apply(MethodVisitor
The method visitor used to write the method implementation to.
methodVisitor
,
Implementation.Context
The context of the current implementation.
implementationContext
)

Implements org.easymock.bytebuddy.implementation.bytecode.StackManipulation.apply.

Applies the stack manipulation that is described by this instance.
public boolean
isValid()

Implements org.easymock.bytebuddy.implementation.bytecode.StackManipulation.isValid.

Determines if this stack manipulation is valid.
public static StackManipulation.Trivial
public static StackManipulation.Trivial[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

INSTANCEback to summary
public static final StackManipulation.Trivial INSTANCE

The singleton instance.

Constructor Detail

Trivialback to summary
private Trivial()

Method Detail

applyback to summary
public StackManipulation.Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext)

Implements org.easymock.bytebuddy.implementation.bytecode.StackManipulation.apply.

Doc from org.easymock.bytebuddy.implementation.bytecode.StackManipulation.apply.

Applies the stack manipulation that is described by this instance.

Parameters
methodVisitor:MethodVisitor

The method visitor used to write the method implementation to.

implementationContext:Implementation.Context

The context of the current implementation.

Returns:StackManipulation.Size

The changes to the size of the operand stack that are implied by this stack manipulation.

isValidback to summary
public boolean isValid()

Implements org.easymock.bytebuddy.implementation.bytecode.StackManipulation.isValid.

Doc from org.easymock.bytebuddy.implementation.bytecode.StackManipulation.isValid.

Determines if this stack manipulation is valid.

Returns:boolean

If false, this manipulation cannot be applied and should throw an exception.

valueOfback to summary
public static StackManipulation.Trivial valueOf(String name)
valuesback to summary
public static StackManipulation.Trivial[] values()