Class TypeSet
- java.lang.Object
-
- net.sourceforge.pmd.lang.java.symboltable.TypeSet
-
@Deprecated @InternalApi public class TypeSet extends Object
Deprecated.Keeps track of the types encountered in a ASTCompilationUnit
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TypeSet.AbstractResolver
Deprecated.Base Resolver class that support aPMDASMClassLoader
class loader.static class
TypeSet.CurrentPackageResolver
Deprecated.Resolver that uses the current package to resolve a simple class name.static class
TypeSet.ExplicitImportResolver
Deprecated.Resolver that tries to resolve the given simple class name with the explicit import statements.static class
TypeSet.FullyQualifiedNameResolver
Deprecated.Resolver that simply loads the class by name.static class
TypeSet.ImplicitImportResolver
Deprecated.Resolver that resolves simple class names from the implicit import ofjava.lang.*
.static class
TypeSet.ImportOnDemandResolver
Deprecated.Resolver that uses the "on demand" import statements.static class
TypeSet.PrimitiveTypeResolver
Deprecated.Resolver that resolves primitive types such as int or double.static interface
TypeSet.Resolver
Deprecated.A resolver that can resolve a class by name.static class
TypeSet.VoidResolver
Deprecated.Resolver that resolves the "void" type.
-
Constructor Summary
Constructors Constructor Description TypeSet()
Deprecated.TheTypeSet
provides type resolution for the symbol facade.TypeSet(ClassLoader classLoader)
Deprecated.TheTypeSet
provides type resolution for the symbol facade.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addImport(String importString)
Deprecated.Adds a import to the list of importsClass<?>
findClass(String name)
Deprecated.Resolves a class by its name using all known resolvers.String
getASTCompilationUnitPackage()
Deprecated.Set<String>
getExplicitImports()
Deprecated.int
getImportsCount()
Deprecated.boolean
hasAuxclasspath()
Deprecated.Whether the classloader is using the auxclasspath or not.void
setASTCompilationUnitPackage(String pkg)
Deprecated.
-
-
-
Constructor Detail
-
TypeSet
public TypeSet()
Deprecated.TheTypeSet
provides type resolution for the symbol facade.
-
TypeSet
public TypeSet(ClassLoader classLoader)
Deprecated.TheTypeSet
provides type resolution for the symbol facade.- Parameters:
classLoader
- the class loader to use to search classes (could be an auxiliary class path)
-
-
Method Detail
-
hasAuxclasspath
public boolean hasAuxclasspath()
Deprecated.Whether the classloader is using the auxclasspath or not.- Returns:
true
if the classloader is using the auxclasspath feature
-
setASTCompilationUnitPackage
public void setASTCompilationUnitPackage(String pkg)
Deprecated.
-
getASTCompilationUnitPackage
public String getASTCompilationUnitPackage()
Deprecated.
-
addImport
public void addImport(String importString)
Deprecated.Adds a import to the list of imports- Parameters:
importString
- the import to add
-
getImportsCount
public int getImportsCount()
Deprecated.
-
-