public class TypeResolver extends Object
NB: This resolver gives wrong answers when there's a class in the local package with the same name as a class in a star-import, and this importer also can't find inner types from superclasses/interfaces.
| Constructor and Description |
|---|
TypeResolver(String packageString,
Collection<String> importStrings)
Creates a new TypeResolver that can be used to resolve types in a source file with the given package and import statements.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<String> |
findTypeMatches(LombokNode<?,?,?> context,
TypeLibrary library,
String typeRef)
Finds type matches for the stated type reference.
|
boolean |
typeMatches(LombokNode<?,?,?> context,
String fqn,
String typeRef) |
public TypeResolver(String packageString, Collection<String> importStrings)
public boolean typeMatches(LombokNode<?,?,?> context, String fqn, String typeRef)
public Collection<String> findTypeMatches(LombokNode<?,?,?> context, TypeLibrary library, String typeRef)
Copyright © 2009-2011 The Project Lombok Authors, licensed under the MIT licence.