Top Description Inners Fields Constructors Methods
tools.jackson.module.afterburner.util.bytebuddy

public abstract Class ConstructorCallStackManipulation

extends Object
implements StackManipulation
Class Inheritance
All Implemented Interfaces
net.bytebuddy.implementation.bytecode.StackManipulation
Known Direct Subclasses
tools.jackson.module.afterburner.util.bytebuddy.ConstructorCallStackManipulation.KnownConstructorOfExistingType, tools.jackson.module.afterburner.util.bytebuddy.ConstructorCallStackManipulation.KnownInDefinedShapeOfExistingType, tools.jackson.module.afterburner.util.bytebuddy.ConstructorCallStackManipulation.OfInstrumentedType
Imports
net.bytebuddy.description.method.MethodDescription, .MethodList, net.bytebuddy.description.type.TypeDescription, net.bytebuddy.implementation.Implementation, net.bytebuddy.implementation.bytecode.Duplication, .StackManipulation, .TypeCreation, net.bytebuddy.jar.asm.MethodVisitor, java.lang.reflect.Constructor, java.util.ArrayList, .Arrays, .List

Base class for providing a constructor call Implementation

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
ConstructorCallStackManipulation.KnownConstructorOfExistingType

To be used when a reference to java.lang.reflect.Constructor needs to be invoked

public static class
public abstract static class
ConstructorCallStackManipulation.OfInstrumentedType

To be used when we need to call a constructor of the instrumented type

Field Summary

Modifier and TypeField and Description
private final List<StackManipulation>

Constructor Summary

AccessConstructor and Description
public
public
ConstructorCallStackManipulation(StackManipulation... constructorArgumentLoadingOperations)

public
ConstructorCallStackManipulation(List<StackManipulation> constructorArgumentLoadingOperations)

Method Summary

Modifier and TypeMethod and Description
public StackManipulation.Size
apply(MethodVisitor methodVisitor, Implementation.Context implementationContext)

Implements net.bytebuddy.implementation.bytecode.StackManipulation.apply.

Applies the stack manipulation that is described by this instance.

public abstract MethodDescription.InDefinedShape
public abstract TypeDescription
public boolean
equals(Object o)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this object.

public boolean
isValid()

Implements net.bytebuddy.implementation.bytecode.StackManipulation.isValid.

Determines if this stack manipulation is valid.

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAlltoStringwaitwaitwait

Field Detail

constructorArgumentLoadingOperationsback to summary
private final List<StackManipulation> constructorArgumentLoadingOperations

Constructor Detail

ConstructorCallStackManipulationback to summary
public ConstructorCallStackManipulation()
ConstructorCallStackManipulationback to summary
public ConstructorCallStackManipulation(StackManipulation... constructorArgumentLoadingOperations)
ConstructorCallStackManipulationback to summary
public ConstructorCallStackManipulation(List<StackManipulation> constructorArgumentLoadingOperations)

Method Detail

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

Implements net.bytebuddy.implementation.bytecode.StackManipulation.apply.

Doc from net.bytebuddy.implementation.bytecode.StackManipulation.apply.

Applies the stack manipulation that is described by this instance.

Annotations
@Override
determineConstructorback to summary
public abstract MethodDescription.InDefinedShape determineConstructor(TypeDescription typeDescription)
determineTypeDescriptionback to summary
public abstract TypeDescription determineTypeDescription(Implementation.Context implementationContext)
equalsback to summary
public boolean equals(Object o)

Overrides java.lang.Object.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for this object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Annotations
@Override
isValidback to summary
public boolean isValid()

Implements net.bytebuddy.implementation.bytecode.StackManipulation.isValid.

Doc from net.bytebuddy.implementation.bytecode.StackManipulation.isValid.

Determines if this stack manipulation is valid.

Annotations
@Override
tools.jackson.module.afterburner.util.bytebuddy back to summary

public Class ConstructorCallStackManipulation.KnownConstructorOfExistingType

extends ConstructorCallStackManipulation
Class Inheritance

To be used when a reference to java.lang.reflect.Constructor needs to be invoked

Field Summary

Modifier and TypeField and Description
private final Constructor<?>
private final TypeDescription

Constructor Summary

AccessConstructor and Description
public
public
KnownConstructorOfExistingType(Constructor<?> ctor, StackManipulation... constructorArgumentLoadingOperations)

public
KnownConstructorOfExistingType(Constructor<?> ctor, List<StackManipulation> constructorArgumentLoadingOperations)

Method Summary

Modifier and TypeMethod and Description
public MethodDescription.InDefinedShape
public TypeDescription
public boolean
equals(Object o)

Overrides tools.jackson.module.afterburner.util.bytebuddy.ConstructorCallStackManipulation.equals.

Indicates whether some other object is "equal to" this one.

public int
Inherited from tools.jackson.module.afterburner.util.bytebuddy.ConstructorCallStackManipulation:
applyisValid

Field Detail

ctorback to summary
private final Constructor<?> ctor
typeDescriptionback to summary
private final TypeDescription typeDescription

Constructor Detail

KnownConstructorOfExistingTypeback to summary
public KnownConstructorOfExistingType(Constructor<?> ctor)
KnownConstructorOfExistingTypeback to summary
public KnownConstructorOfExistingType(Constructor<?> ctor, StackManipulation... constructorArgumentLoadingOperations)
KnownConstructorOfExistingTypeback to summary
public KnownConstructorOfExistingType(Constructor<?> ctor, List<StackManipulation> constructorArgumentLoadingOperations)

Method Detail

determineConstructorback to summary
public MethodDescription.InDefinedShape determineConstructor(TypeDescription td)

Implements abstract tools.jackson.module.afterburner.util.bytebuddy.ConstructorCallStackManipulation.determineConstructor.

Annotations
@Override
determineTypeDescriptionback to summary
public TypeDescription determineTypeDescription(Implementation.Context implementationContext)

Implements abstract tools.jackson.module.afterburner.util.bytebuddy.ConstructorCallStackManipulation.determineTypeDescription.

Annotations
@Override
equalsback to summary
public boolean equals(Object o)

Overrides tools.jackson.module.afterburner.util.bytebuddy.ConstructorCallStackManipulation.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides tools.jackson.module.afterburner.util.bytebuddy.ConstructorCallStackManipulation.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for this object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Annotations
@Override
tools.jackson.module.afterburner.util.bytebuddy back to summary

public Class ConstructorCallStackManipulation.KnownInDefinedShapeOfExistingType

extends ConstructorCallStackManipulation
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final MethodDescription.InDefinedShape
private final TypeDescription

Constructor Summary

AccessConstructor and Description
public
public
public

Method Summary

Modifier and TypeMethod and Description
public MethodDescription.InDefinedShape
public TypeDescription
public boolean
equals(Object o)

Overrides tools.jackson.module.afterburner.util.bytebuddy.ConstructorCallStackManipulation.equals.

Indicates whether some other object is "equal to" this one.

public int
Inherited from tools.jackson.module.afterburner.util.bytebuddy.ConstructorCallStackManipulation:
applyisValid

Field Detail

ctorback to summary
private final MethodDescription.InDefinedShape ctor
typeDescriptionback to summary
private final TypeDescription typeDescription

Constructor Detail

KnownInDefinedShapeOfExistingTypeback to summary
public KnownInDefinedShapeOfExistingType(MethodDescription.InDefinedShape ctor)
KnownInDefinedShapeOfExistingTypeback to summary
public KnownInDefinedShapeOfExistingType(MethodDescription.InDefinedShape ctor, StackManipulation... constructorArgumentLoadingOperations)
KnownInDefinedShapeOfExistingTypeback to summary
public KnownInDefinedShapeOfExistingType(MethodDescription.InDefinedShape ctor, List<StackManipulation> constructorArgumentLoadingOperations)

Method Detail

determineConstructorback to summary
public MethodDescription.InDefinedShape determineConstructor(TypeDescription td)

Implements abstract tools.jackson.module.afterburner.util.bytebuddy.ConstructorCallStackManipulation.determineConstructor.

Annotations
@Override
determineTypeDescriptionback to summary
public TypeDescription determineTypeDescription(Implementation.Context implementationContext)

Implements abstract tools.jackson.module.afterburner.util.bytebuddy.ConstructorCallStackManipulation.determineTypeDescription.

Annotations
@Override
equalsback to summary
public boolean equals(Object o)

Overrides tools.jackson.module.afterburner.util.bytebuddy.ConstructorCallStackManipulation.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides tools.jackson.module.afterburner.util.bytebuddy.ConstructorCallStackManipulation.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for this object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Annotations
@Override
tools.jackson.module.afterburner.util.bytebuddy back to summary

public abstract Class ConstructorCallStackManipulation.OfInstrumentedType

extends ConstructorCallStackManipulation
Class Inheritance
Known Direct Subclasses
tools.jackson.module.afterburner.util.bytebuddy.ConstructorCallStackManipulation.OfInstrumentedType.OneArg

To be used when we need to call a constructor of the instrumented type

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
ConstructorCallStackManipulation.OfInstrumentedType.OneArg

To be used when we need to call the only constructor of the instrumented type that takes a single argument

Constructor Summary

AccessConstructor and Description
public
public
OfInstrumentedType(StackManipulation... constructorArgumentLoadingOperations)

public
OfInstrumentedType(List<StackManipulation> constructorArgumentLoadingOperations)

Method Summary

Modifier and TypeMethod and Description
public MethodDescription.InDefinedShape
public TypeDescription
pack-priv abstract MethodDescription.InDefinedShape
Inherited from tools.jackson.module.afterburner.util.bytebuddy.ConstructorCallStackManipulation:
applyequalshashCodeisValid

Constructor Detail

OfInstrumentedTypeback to summary
public OfInstrumentedType()
OfInstrumentedTypeback to summary
public OfInstrumentedType(StackManipulation... constructorArgumentLoadingOperations)
OfInstrumentedTypeback to summary
public OfInstrumentedType(List<StackManipulation> constructorArgumentLoadingOperations)

Method Detail

determineConstructorback to summary
public MethodDescription.InDefinedShape determineConstructor(TypeDescription typeDescription)

Implements abstract tools.jackson.module.afterburner.util.bytebuddy.ConstructorCallStackManipulation.determineConstructor.

Annotations
@Override
determineTypeDescriptionback to summary
public TypeDescription determineTypeDescription(Implementation.Context implementationContext)

Implements abstract tools.jackson.module.afterburner.util.bytebuddy.ConstructorCallStackManipulation.determineTypeDescription.

Annotations
@Override
pickConstructorback to summary
pack-priv abstract MethodDescription.InDefinedShape pickConstructor(MethodList<MethodDescription.InDefinedShape> candidates)
tools.jackson.module.afterburner.util.bytebuddy back to summary

public Class ConstructorCallStackManipulation.OfInstrumentedType.OneArg

extends OfInstrumentedType
Class Inheritance

To be used when we need to call the only constructor of the instrumented type that takes a single argument

Constructor Summary

AccessConstructor and Description
public
public
OneArg(StackManipulation... constructorArgumentLoadingOperations)

public
OneArg(List<StackManipulation> constructorArgumentLoadingOperations)

Constructor Detail

OneArgback to summary
public OneArg()
OneArgback to summary
public OneArg(StackManipulation... constructorArgumentLoadingOperations)
OneArgback to summary
public OneArg(List<StackManipulation> constructorArgumentLoadingOperations)