Re: how can I get the generic type for a class in a deferred-binding generator?

2010-08-19 Thread Joe Hudson
ok, nevermind... TypeOracle typeOracle = context.getTypeOracle(); JClassType classType = typeOracle.getType(typeName); JClassType superClassType = classType.getSuperclass(); JParameterizedType type = s

Re: how can I get the generic type for a class in a deferred-binding generator?

2010-08-19 Thread Joe Hudson
Sorry, correction - the example should read: public class Foo extends Bar { } On Aug 19, 9:09 pm, Joe Hudson wrote: > For example, > > public class Foo extends Bar { >     > > } > > If Bar is register in the config xml with a generate-with type and I > am in the Generator code...

how can I get the generic type for a class in a deferred-binding generator?

2010-08-19 Thread Joe Hudson
For example, public class Foo extends Bar { } If Bar is register in the config xml with a generate-with type and I am in the Generator code... public class CompositePageGenerator extends Generator { @Override public String generate(TreeLogger logger, GeneratorContext co