Constructors and userArgs

Upoc contains the instance variable protected PropertyTree userArgs;.

This provides two constructors:

protected Upoc () throws CLOVERLEAFException
protected Upoc (CloverEnv cloverEnv, PropertyTree userArgs)
        throws CLOVERLEAFException

When instantiating a user-defined class, the engine checks to see if a constructor accepting a CloverEnv and PropertyTree argument has been defined.

  • If it has, then the class is instantiated using that constructor.
  • If it has not, then the constructor with no arguments is invoked and the userArgs member of the new object is set.