Interface TypeSet.Resolver
-
- All Known Implementing Classes:
TypeSet.AbstractResolver,TypeSet.CurrentPackageResolver,TypeSet.ExplicitImportResolver,TypeSet.FullyQualifiedNameResolver,TypeSet.ImplicitImportResolver,TypeSet.ImportOnDemandResolver,TypeSet.PrimitiveTypeResolver,TypeSet.VoidResolver
- Enclosing class:
- TypeSet
public static interface TypeSet.ResolverA resolver that can resolve a class by name. The name can be a simple name or a fully qualified name.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancouldResolve(java.lang.String name)Checks if the given class could be resolved by this resolver.java.lang.Class<?>resolve(java.lang.String name)Resolve the class by the given name
-
-
-
Method Detail
-
resolve
java.lang.Class<?> resolve(java.lang.String name) throws java.lang.ClassNotFoundExceptionResolve the class by the given name- Parameters:
name- the name of the class, might be fully classified or not.- Returns:
- the class
- Throws:
java.lang.ClassNotFoundException- if the class couldn't be found
-
couldResolve
boolean couldResolve(java.lang.String name)
Checks if the given class could be resolved by this resolver. Notice, that a resolver's ability to resolve a class does not imply that the class will actually be found and resolved.- Parameters:
name- the name of the class, might be fully classified or not.- Returns:
- whether the class can be resolved
-
-