Example usage for org.eclipse.jdt.core.dom IMethodBinding getDeclaredReceiverType

List of usage examples for org.eclipse.jdt.core.dom IMethodBinding getDeclaredReceiverType

Introduction

In this page you can find the example usage for org.eclipse.jdt.core.dom IMethodBinding getDeclaredReceiverType.

Prototype

public ITypeBinding getDeclaredReceiverType();

Source Link

Document

Returns the type of this method's receiver or null if there is no receiver declared explicitly.

Usage

From source file:com.google.devtools.j2objc.jdt.JdtMethodBinding.java

License:Apache License

private void maybeInitialize() {
    if (!initialized) {
        IMethodBinding methodBinding = (IMethodBinding) binding;
        this.declaredReceiverType = BindingConverter.wrapBinding(methodBinding.getDeclaredReceiverType());
        this.declaringClass = BindingConverter.wrapBinding(methodBinding.getDeclaringClass());
        this.methodDeclaration = BindingConverter.wrapBinding(methodBinding.getMethodDeclaration());
        this.returnType = BindingConverter.wrapBinding(methodBinding.getReturnType());
        initialized = true;//from w  ww . j  a  va 2 s  .  c om
    }
}