Package jadex.bdi.model
Class ConstructorInfo
java.lang.Object
jadex.bdi.model.ConstructorInfo
Describes a constructor.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ClassLoader
The classloader with which this info was loaded.protected String
The clazz name.protected Constructor
<?> The field (cached).protected String[]
The fully qualified parameter clazz names. -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new ConstructorInfo.ConstructorInfo
(Constructor<?> m) Create a new ConstructorInfo.ConstructorInfo
(String[] parametertypes, String classname) Create a new FieldInfo. -
Method Summary
Modifier and TypeMethodDescriptionGet the classname.Constructor
<?> Get the constructor via classloader.String[]
Get the parametertypes.void
setClassName
(String classname) Set the classname.void
setParameterTypes
(String[] parametertypes) Set the parametertypes.
-
Field Details
-
parametertypes
The fully qualified parameter clazz names. -
classname
The clazz name. -
method
The field (cached). -
classloader
The classloader with which this info was loaded. Note 1: This must not be the same as method.getClass().getClassLoader() because the latter returns the loader responsible for the class which could be higher in the parent hierarchy. Note 2: The check current_cl==last_cl is not perfect because when invoked with a parent classloader it will reload the class (although not necessary)
-
-
Constructor Details
-
ConstructorInfo
public ConstructorInfo()Create a new ConstructorInfo. -
ConstructorInfo
Create a new ConstructorInfo. -
ConstructorInfo
Create a new FieldInfo.
-
-
Method Details
-
getConstructor
Get the constructor via classloader.- Parameters:
cl
- The classloader.- Returns:
- The constructor.
-
getParameterTypes
Get the parametertypes.- Returns:
- The parametertypes.
-
setParameterTypes
Set the parametertypes.- Parameters:
parametertypes
- The parametertypes to set.
-
getClassName
Get the classname.- Returns:
- The classname.
-
setClassName
Set the classname.- Parameters:
classname
- The classname to set.
-