Example usage for org.springframework.ide.eclipse.core.java Introspector getAllMethods

List of usage examples for org.springframework.ide.eclipse.core.java Introspector getAllMethods

Introduction

In this page you can find the example usage for org.springframework.ide.eclipse.core.java Introspector getAllMethods.

Prototype

public static Set<IMethod> getAllMethods(IType type) throws JavaModelException 

Source Link

Document

Returns all methods of the given IType instance.

Usage

From source file:org.dozer.eclipse.plugin.sourcepage.hyperlink.DozerClassHyperlinkDetector.java

/**
 * Get First Method by name/*from www  .  j a  v  a  2 s . c o  m*/
 * 
 * @param type
 * @param methodName
 * @return
 */
private IMethod getMethodFromType(IType type, String methodName) {
    try {
        Set<IMethod> methods = Introspector.getAllMethods(type);
        for (IMethod method : methods) {
            if (method.getElementName().equals(methodName)) {
                return method;
            }
        }
    } catch (Exception e) {
    }

    return null;
}