| |
|
| java.lang.Object spoon.reflect.factory.SubFactory spoon.reflect.factory.TypeFactory spoon.reflect.factory.ClassFactory
Method Summary | |
public CtClass<T> | create(CtClass> declaringClass, String simpleName) Creates an inner class.
Parameters: declaringClass - declaring class Parameters: simpleName - simple name of inner class (without . | public CtClass<T> | create(CtPackage owner, String simpleName) Creates a top-level class. | public CtClass<T> | create(String qualifiedName) Creates a class from its qualified name.
< Parameters: T - >type of created class Parameters: qualifiedName - full name of class to create. | public CtClass<T> | get(Class> cl) Gets a class from its runtime Java class. | public CtClass<T> | get(String qualifiedName) Searches for a class from his qualified name. |
ClassFactory | public ClassFactory(Factory factory)(Code) | | Creates a class sub-factory.
Parameters: factory - the parent factory |
create | public CtClass<T> create(CtClass> declaringClass, String simpleName)(Code) | | Creates an inner class.
Parameters: declaringClass - declaring class Parameters: simpleName - simple name of inner class (without . or $) |
create | public CtClass<T> create(CtPackage owner, String simpleName)(Code) | | Creates a top-level class.
Parameters: owner - the declaring package Parameters: simpleName - the simple name |
create | public CtClass<T> create(String qualifiedName)(Code) | | Creates a class from its qualified name.
< Parameters: T - >type of created class Parameters: qualifiedName - full name of class to create. Name can contain . or $ forinner types |
get | public CtClass<T> get(Class> cl)(Code) | | Gets a class from its runtime Java class.
< Parameters: T - >type of created class Parameters: cl - the java class: note that this class should be Class butit then poses problem when T is a generic type itself |
get | public CtClass<T> get(String qualifiedName)(Code) | | Searches for a class from his qualified name.
< Parameters: T - >the type of the class Parameters: qualifiedName - to search found class or null |
|
|
|