Example usage for com.google.common.reflect Parameter getDeclaringInvokable

List of usage examples for com.google.common.reflect Parameter getDeclaringInvokable

Introduction

In this page you can find the example usage for com.google.common.reflect Parameter getDeclaringInvokable.

Prototype

public Invokable<?, ?> getDeclaringInvokable() 

Source Link

Document

Returns the Invokable that declares this parameter.

Usage

From source file:org.immutables.eventual.Providers.java

Dependency<ListenableFuture<?>> extractDependency(Errors methodErrors, Parameter parameter) {
    @Nullable/*from w w w.j  a v  a2  s  .c o  m*/
    Annotation bindingAnnotation = Annotations.findBindingAnnotation(methodErrors,
            parameter.getDeclaringInvokable(), parameter.getAnnotations());

    return Dependency.get(futureKey(parameter.getType(), bindingAnnotation));
}