public class ClassSet extends Object
| Constructor and Description |
|---|
ClassSet(ClassPath classPath,
boolean minimizeDependencies)
Constructs a new ClassSet that looks for classes on the given classpath.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addClass(String packageName,
String className)
Adds a class and its dependencies to the library.
|
void |
addClass(TypeName fullyQualifiedName)
Adds a class and its dependencies to the library.
|
void |
addClasses(Collection<TypeName> classes)
Calls addClass( String ) for each member in the collection.
|
Set<MetaClass> |
getClasses()
Returns a
Set<MetaClass> of the classes in this library. |
static void |
main(String[] args)
Tests ClassSet.
|
String |
toString() |
public ClassSet(ClassPath classPath, boolean minimizeDependencies)
classPath - the classpath used to search for dependenciesminimizeDependencies - set to true to only generate proxies based on minimum dependency
(superclass, interfaces and any classes used by the input files). Set to false to generate proxies for all class
dependencies (arguments, return values, and fields). The latter is used to generate proxies for a Java library when
the input files are unknown.public void addClass(String packageName, String className)
packageName - the package nameclassName - the class namepublic void addClass(TypeName fullyQualifiedName)
fullyQualifiedName - the fully qualified class namepublic void addClasses(Collection<TypeName> classes)
classes - the classespublic Set<MetaClass> getClasses()
Set<MetaClass> of the classes in this library.Set<MetaClass> of the classes in this librarypublic static void main(String[] args)
args - the command-line argumentCopyright © 2012. All Rights Reserved.