Java Code Examples for net.bytebuddy.implementation.bytecode.member.MethodVariableAccess#hashCode()

The following examples show how to use net.bytebuddy.implementation.bytecode.member.MethodVariableAccess#hashCode() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PropertyMutatorCollector.java    From jackson-modules-base with Apache License 2.0 5 votes vote down vote up
static CreateLocalVarStackManipulation of(TypeDescription beanClassDescription,
        MethodVariableAccess beanValueAccess) {

    final int key = beanClassDescription.hashCode() + beanValueAccess.hashCode();
    CreateLocalVarStackManipulation result = cache.get(key);
    if (result == null) {
        result = new CreateLocalVarStackManipulation(beanClassDescription, beanValueAccess);
        cache.put(key, result);
    }
    return result;
}
 
Example 2
Source File: PropertyMutatorCollector.java    From jackson-modules-base with Apache License 2.0 5 votes vote down vote up
@SuppressWarnings("unchecked")
static <G extends OptimizedSettableBeanProperty<G>> SingleFieldStackManipulationSupplier<G> of(
        TypeDescription beanClassDescription, MethodVariableAccess beanValueAccess) {

    final int key = beanClassDescription.hashCode() + beanValueAccess.hashCode();
    SingleFieldStackManipulationSupplier<G> result = (SingleFieldStackManipulationSupplier<G>) cache.get(key);
    if (result == null) {
        result = new SingleFieldStackManipulationSupplier<G>(beanClassDescription, beanValueAccess);
        cache.put(key, result);
    }
    return result;
}
 
Example 3
Source File: PropertyMutatorCollector.java    From jackson-modules-base with Apache License 2.0 5 votes vote down vote up
static <G extends OptimizedSettableBeanProperty<G>> SingleMethodStackManipulationSupplier<G> of(
        TypeDescription beanClassDescription, MethodVariableAccess beanValueAccess) {

    final int key = beanClassDescription.hashCode() + beanValueAccess.hashCode();
    @SuppressWarnings("unchecked")
    SingleMethodStackManipulationSupplier<G> result = (SingleMethodStackManipulationSupplier<G>) cache.get(key);
    if (result == null) {
        result = new SingleMethodStackManipulationSupplier<G>(beanClassDescription, beanValueAccess);
        cache.put(key, result);
    }
    return result;
}