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 |
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.
this class is used to adapt the definitions class if
required. |
void | setAdaptToClass(Class adaptToClass)
set the assignable class for this definition. |
void | setClass(Class clazz)
set the class of the definition.
as a side-effect may set the classloader and classname |
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.
the classloader may be different but have the same
path so #sameDefinition cannot
be used. |
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: 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