@Test public void testSuperTypes() throws Exception { final ModuleDataModelOracleBuilder builder = ModuleDataModelOracleBuilder.newModuleOracleBuilder(new RawMVELEvaluator()); final ModuleDataModelOracleImpl oracle = new ModuleDataModelOracleImpl(); final ClassFactBuilder cb = new ClassFactBuilder(builder, PapaSmurf.class, false, type -> TypeSource.JAVA_PROJECT); cb.build(oracle); assertEquals(2, oracle.getModuleSuperTypes().get(PapaSmurf.class.getName()).size()); }
@Override public void build(final ModuleDataModelOracleImpl oracle) { super.build(oracle); oracle.addModuleMethodInformation(methodInformation); oracle.addModuleFieldParametersType(fieldParametersType); oracle.addModuleSuperTypes(buildSuperTypes()); oracle.addModuleTypeAnnotations(buildTypeAnnotations()); oracle.addModuleTypeFieldsAnnotations(buildTypeFieldsAnnotations()); }
ClassFactBuilder extends BaseFactBuilder { @Override public void build(final ModuleDataModelOracleImpl oracle) { super.build(oracle); oracle.addModuleMethodInformation(methodInformation); oracle.addModuleFieldParametersType(fieldParametersType); oracle.addModuleSuperTypes(buildSuperTypes()); oracle.addModuleTypeAnnotations(buildTypeAnnotations()); oracle.addModuleTypeFieldsAnnotations(buildTypeFieldsAnnotations()); } }
ClassFactBuilder extends BaseFactBuilder { @Override public void build(final ModuleDataModelOracleImpl oracle) { super.build(oracle); oracle.addModuleMethodInformation(methodInformation); oracle.addModuleFieldParametersType(fieldParametersType); oracle.addModuleSuperTypes(buildSuperTypes()); oracle.addModuleTypeAnnotations(buildTypeAnnotations()); oracle.addModuleTypeFieldsAnnotations(buildTypeFieldsAnnotations()); } ClassFactBuilder(final ModuleDataModelOracleBuilder builder,
                            final Class<?> clazz,
                            final boolean isEvent,
                            final Function<String, TypeSource> typeSourceResolver);  ClassFactBuilder(final ModuleDataModelOracleBuilder builder,
                            final Map<String, FactBuilder> discoveredFieldFactBuilders,
                            final Class<?> clazz,
                            final boolean isEvent,
                            final Function<String, TypeSource> typeSourceResolver); }
ClassFactBuilder extends BaseFactBuilder { @Override public void build(final ModuleDataModelOracleImpl oracle) { super.build(oracle); oracle.addModuleMethodInformation(methodInformation); oracle.addModuleFieldParametersType(fieldParametersType); oracle.addModuleSuperTypes(buildSuperTypes()); oracle.addModuleTypeAnnotations(buildTypeAnnotations()); oracle.addModuleTypeFieldsAnnotations(buildTypeFieldsAnnotations()); } ClassFactBuilder(final ModuleDataModelOracleBuilder builder,
                            final Class<?> clazz,
                            final boolean isEvent,
                            final Function<String, TypeSource> typeSourceResolver);  ClassFactBuilder(final ModuleDataModelOracleBuilder builder,
                            final Map<String, FactBuilder> discoveredFieldFactBuilders,
                            final Class<?> clazz,
                            final boolean isEvent,
                            final Function<String, TypeSource> typeSourceResolver); @Override void build(final ModuleDataModelOracleImpl oracle); @Override void addInternalBuilders(Map<String, FactBuilder> builders); }
ClassFactBuilder extends BaseFactBuilder { @Override public void build(final ModuleDataModelOracleImpl oracle) { super.build(oracle); oracle.addModuleMethodInformation(methodInformation); oracle.addModuleFieldParametersType(fieldParametersType); oracle.addModuleSuperTypes(buildSuperTypes()); oracle.addModuleTypeAnnotations(buildTypeAnnotations()); oracle.addModuleTypeFieldsAnnotations(buildTypeFieldsAnnotations()); } ClassFactBuilder(final ModuleDataModelOracleBuilder builder,
                            final Class<?> clazz,
                            final boolean isEvent,
                            final Function<String, TypeSource> typeSourceResolver);  ClassFactBuilder(final ModuleDataModelOracleBuilder builder,
                            final Map<String, FactBuilder> discoveredFieldFactBuilders,
                            final Class<?> clazz,
                            final boolean isEvent,
                            final Function<String, TypeSource> typeSourceResolver); @Override void build(final ModuleDataModelOracleImpl oracle); @Override void addInternalBuilders(Map<String, FactBuilder> builders);  }