Example usage for org.eclipse.jdt.internal.core LambdaExpression getMethod

List of usage examples for org.eclipse.jdt.internal.core LambdaExpression getMethod

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.core LambdaExpression getMethod.

Prototype

public IMethod getMethod() 

Source Link

Usage

From source file:org.summer.sdt.internal.core.search.matching.MatchLocator.java

License:Open Source License

/**
 * Creates an IMethod from the given lambda declaration and type.
 *//*from ww w  .j  av  a 2s  . c  o m*/
protected IJavaElement createHandle(LambdaExpression lambdaExpression, IJavaElement parent) {
    org.eclipse.jdt.internal.core.LambdaExpression lambdaElement = LambdaFactory
            .createLambdaExpression((JavaElement) parent, lambdaExpression);
    IMethod lambdaMethodElement = lambdaElement.getMethod();
    this.methodHandles.add(lambdaMethodElement);
    return lambdaMethodElement;
}