Class ConstructorInfo

java.lang.Object
jadex.bdi.model.ConstructorInfo

public class ConstructorInfo extends Object
Describes a constructor.
  • Field Details

    • parametertypes

      protected String[] parametertypes
      The fully qualified parameter clazz names.
    • classname

      protected String classname
      The clazz name.
    • method

      protected Constructor<?> method
      The field (cached).
    • classloader

      protected 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 Details

    • ConstructorInfo

      public ConstructorInfo()
      Create a new ConstructorInfo.
    • ConstructorInfo

      public ConstructorInfo(Constructor<?> m)
      Create a new ConstructorInfo.
    • ConstructorInfo

      public ConstructorInfo(String[] parametertypes, String classname)
      Create a new FieldInfo.
  • Method Details

    • getConstructor

      public Constructor<?> getConstructor(ClassLoader cl)
      Get the constructor via classloader.
      Parameters:
      cl - The classloader.
      Returns:
      The constructor.
    • getParameterTypes

      public String[] getParameterTypes()
      Get the parametertypes.
      Returns:
      The parametertypes.
    • setParameterTypes

      public void setParameterTypes(String[] parametertypes)
      Set the parametertypes.
      Parameters:
      parametertypes - The parametertypes to set.
    • getClassName

      public String getClassName()
      Get the classname.
      Returns:
      The classname.
    • setClassName

      public void setClassName(String classname)
      Set the classname.
      Parameters:
      classname - The classname to set.