So I need to subclass first, and then instantiate that new class? Can I to do that with the provided support? I've used jnew-runtime-class
jnew-runtime-class (class-name super-name interfaces constructors methods fields &optional filename)
Not sure how I would provide the specializing class(es) here. The type information may be "erased" but methods can still differ by specialization, right?
For JSS syntax I would probably just accept a list class argument to new.
(new '(InferredObjectPropertyAxiomGenerator OWLObjectSubPropertyAxiom) ...)
Presumably keep a cache of the created subclasses indexed by that list.
It would be nice to be able to find by reflection that InferredObjectPropertyAxiomGenerator is a generic and how many class arguments there are.
Alan