sun-codemodel

What is the role of ClassOutline / JClass / CClass in CodeModel?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-26 22:35:50
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 looking at the list of classes in corresponding packages it is not clear what is chicken and what is egg. My interpretation is that CClass ( CPropertyInfo , CEnumConstant , ...) are created by XJC at first draft parsing of XSD. Then some magic happens and this model is transformed into JClass ( JFieldVar , JEnumConstant , ...) and during this transformation customizations are applied. Afterwards plugins