Example usage for org.eclipse.jdt.internal.core NameLookup findType

List of usage examples for org.eclipse.jdt.internal.core NameLookup findType

Introduction

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

Prototype

public IType findType(String name, boolean partialMatch, int acceptFlags) 

Source Link

Document

Returns the type specified by the qualified name, or null if none exist.

Usage

From source file:org.codehaus.groovy.eclipse.dsl.inferencing.suggestions.AbstractJavaTypeVerifiedRule.java

License:Apache License

protected IType getActualType(String name) throws JavaModelException {
    NameLookup nameLkUp = getNameLookup();
    if (nameLkUp != null) {
        return nameLkUp.findType(name, false, NameLookup.ACCEPT_ALL);
    }/*from   w w  w .j  a  va  2s .  com*/
    return null;
}