set the ClassDefinition when a TypeDeclaration is created from a Java class