lombok.core
Class TypeResolver
java.lang.Object
lombok.core.TypeResolver
public class TypeResolver
- extends java.lang.Object
Capable of resolving a simple type name such as 'String' into 'java.lang.String'.
|
Constructor Summary |
TypeResolver(TypeLibrary library,
java.lang.String packageString,
java.util.Collection<java.lang.String> importStrings)
Creates a new TypeResolver that can be used to resolve types in a given library, encountered in
a source file with the provided package and import statements. |
|
Method Summary |
java.util.Collection<java.lang.String> |
findTypeMatches(LombokNode<?,?,?> context,
java.lang.String typeRef)
Finds type matches for the stated type reference. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeResolver
public TypeResolver(TypeLibrary library,
java.lang.String packageString,
java.util.Collection<java.lang.String> importStrings)
- Creates a new TypeResolver that can be used to resolve types in a given library, encountered in
a source file with the provided package and import statements.
findTypeMatches
public java.util.Collection<java.lang.String> findTypeMatches(LombokNode<?,?,?> context,
java.lang.String typeRef)
- Finds type matches for the stated type reference. The provided context is scanned for local type names
that shadow type names listed in import statements. If such a shadowing occurs, no matches are returned
for any shadowed types, as you would expect.
Copyright © 2009 Reinier Zwitserloot and Roel Spilker, licensed under the MIT licence.