Package jadex.bdiv3.model
Class ConstructorInfo
- java.lang.Object
-
- jadex.bdiv3.model.ConstructorInfo
-
public class ConstructorInfo extends java.lang.Object
Describes a constructor.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.ClassLoader
classloader
The classloader with which this info was loaded.protected java.lang.String
classname
The clazz name.protected java.lang.reflect.Constructor<?>
method
The field (cached).protected java.lang.String[]
parametertypes
The fully qualified parameter clazz names.
-
Constructor Summary
Constructors Constructor Description ConstructorInfo()
Create a new ConstructorInfo.ConstructorInfo(java.lang.reflect.Constructor<?> m)
Create a new ConstructorInfo.ConstructorInfo(java.lang.String[] parametertypes, java.lang.String classname)
Create a new FieldInfo.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getClassName()
Get the classname.java.lang.reflect.Constructor<?>
getConstructor(java.lang.ClassLoader cl)
Get the constructor via classloader.java.lang.String[]
getParameterTypes()
Get the parametertypes.void
setClassName(java.lang.String classname)
Set the classname.void
setParameterTypes(java.lang.String[] parametertypes)
Set the parametertypes.
-
-
-
Field Detail
-
parametertypes
protected java.lang.String[] parametertypes
The fully qualified parameter clazz names.
-
classname
protected java.lang.String classname
The clazz name.
-
method
protected java.lang.reflect.Constructor<?> method
The field (cached).
-
classloader
protected java.lang.ClassLoader 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 Detail
-
ConstructorInfo
public ConstructorInfo()
Create a new ConstructorInfo.
-
ConstructorInfo
public ConstructorInfo(java.lang.reflect.Constructor<?> m)
Create a new ConstructorInfo.
-
ConstructorInfo
public ConstructorInfo(java.lang.String[] parametertypes, java.lang.String classname)
Create a new FieldInfo.
-
-
Method Detail
-
getConstructor
public java.lang.reflect.Constructor<?> getConstructor(java.lang.ClassLoader cl)
Get the constructor via classloader.- Parameters:
cl
- The classloader.- Returns:
- The constructor.
-
getParameterTypes
public java.lang.String[] getParameterTypes()
Get the parametertypes.- Returns:
- The parametertypes.
-
setParameterTypes
public void setParameterTypes(java.lang.String[] parametertypes)
Set the parametertypes.- Parameters:
parametertypes
- The parametertypes to set.
-
getClassName
public java.lang.String getClassName()
Get the classname.- Returns:
- The classname.
-
setClassName
public void setClassName(java.lang.String classname)
Set the classname.- Parameters:
classname
- The classname to set.
-
-