This class contains all the information
on a particular ant type,
the classname, adaptor and the class
it should be assignable from.
This type replaces the task/datatype split
of pre ant 1.6.
innerGetTypeClass() Try and load a class, with no attempt to catch any fault.
public boolean
sameDefinition(AntTypeDefinition other, Project project) Equality method for this definition (assumes the names are the same).
Parameters: other - another definition. Parameters: project - the project the definition.
public void
setAdaptToClass(Class adaptToClass) Set the assignable class for this definition.
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: other - the definition to compare to. Parameters: project - the current project.
Get the exposed class for this
definition. This will be a proxy class
(adapted class) if there is an adapter
class and the definition class is not
assignable from the assignable class.
Parameters: project - the current project. the exposed class.
Try and load a class, with no attempt to catch any fault.
the class that implements this component throws: ClassNotFoundException - if the class cannot be found. throws: NoClassDefFoundError - if the there is an errorfinding the class.
Equality method for this definition (assumes the names are the same).
Parameters: other - another definition. Parameters: project - the project the definition. true if the definitions are the same.
setAdaptToClass
public void setAdaptToClass(Class adaptToClass)(Code)
Set the assignable class for this definition.
Parameters: adaptToClass - the assignable class.
setAdapterClass
public void setAdapterClass(Class adapterClass)(Code)
Set the adapter class for this definition.
This class is used to adapt the definitions class if
required.
Parameters: adapterClass - the adapterClass.
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: other - the definition to compare to. Parameters: project - the current project. true if the definitions are the same.