sun-codemodel Questions

5

Solved

I have a class with a graph inside. I iterate the graph and create a string that builds the graph, and then I just write that string into a Java file. Is there a better way of doing this, i read ab...
Euphonious asked 23/4, 2012 at 14:8

1

Solved

Does anyone know how to generate the following generic method declaration using CodeModel? public <T> T getValue(Class<T> clazz){...} usage: ValueType value = getValue(ValueType.class)...
Seawards asked 20/2, 2012 at 1:35

2

Solved

My question concerns writing JAXB plugins, in particular JAXB codemodel. What is the role of ClassOutline (and it's companions) and JClass (and companions) and CClass (and companions)? When lookin...
Gladwin asked 12/2, 2012 at 9:26

1

Solved

I am generating code with CodeModel during annotation processing with maven. That code is for JUnit testing: JMethod tearDownClass = testClass.method( JMod.PUBLIC | JMod.STATIC, Void.class, "tear...
Siouan asked 10/9, 2011 at 16:40
1

© 2022 - 2024 — McMap. All rights reserved.