org.apache.tools.ant
public class AntTypeDefinition extends Object
Method Summary | |
---|---|
void | checkClass(Project project)
Checks if the attributes are correct.
|
Object | create(Project project)
Create an instance of the definition.
|
ClassLoader | getClassLoader()
Get the classloader for this definition. |
String | getClassName()
Get the classname of the definition. |
Class | getExposedClass(Project project)
Get the exposed class for this
definition. |
String | getName()
Return the definition's name. |
Class | getTypeClass(Project project)
Get the definition class. |
Object | innerCreateAndSet(Class newclass, Project project)
Inner implementation of the {@link #createAndSet(Project, Class)} logic, with no
exception catching |
Class | innerGetTypeClass()
Try and load a class, with no attempt to catch any fault. |
boolean | sameDefinition(AntTypeDefinition other, Project project)
Equality method for this definition (assumes the names are the same).
|
void | setAdapterClass(Class adapterClass)
Set the adapter class for this definition.
|
void | setAdaptToClass(Class adaptToClass)
Set the assignable class for this definition. |
void | setClass(Class clazz)
Set the class of the definition.
|
void | setClassLoader(ClassLoader classLoader)
Set the classloader to use to create an instance
of the definition. |
void | setClassName(String className)
Set the classname of the definition. |
void | setName(String name)
Set the definition's name. |
boolean | similarDefinition(AntTypeDefinition other, Project project)
Similar definition;
used to compare two definitions defined twice with the same
name and the same types.
|
Parameters: project the current project.
Parameters: project the current project.
Returns: the created object.
Returns: the classloader for this definition.
Returns: the name of the class of this definition.
Parameters: project the current project.
Returns: the exposed class.
Returns: the name of the definition.
Parameters: project the current project.
Returns: the type of the definition.
Parameters: newclass class to create project the project to use
Returns: a newly constructed and bound instance.
Throws: NoSuchMethodException no good construtor. InstantiationException cannot initialize the object. IllegalAccessException cannot access the object. InvocationTargetException error in invocation.
Returns: the class that implements this component
Throws: ClassNotFoundException if the class cannot be found. NoClassDefFoundError if the there is an error finding the class.
Parameters: other another definition. project the project the definition.
Returns: true if the definitions are the same.
Parameters: adapterClass the adapterClass.
Parameters: adaptToClass the assignable class.
Parameters: clazz the class of this definition.
Parameters: classLoader the ClassLoader.
Parameters: className the classname of this definition.
Parameters: name the name of the definition.
Parameters: other the definition to compare to. project the current project.
Returns: true if the definitions are the same.