private void addFactType(List jars, String className) { final Class clazz = loadClass( className, jars ); if ( clazz != null ) { try { final String shortTypeName = getShortNameOfClass( clazz.getName() ); this.builder.addFactType( shortTypeName, FIELD_CLASS_TYPE.REGULAR_CLASS ); loadClassFields( clazz, shortTypeName ); } catch ( final IOException e ) { this.errors.add( String.format( "Error while inspecting the class: %s. The error was: %s", className, e.getMessage() ) ); } catch ( NoClassDefFoundError e ) { this.errors.add( String.format( "Unable to find the class: %s which is required by: %s. You may need to add more classes to the model.", e.getMessage().replace( '/', '.' ), className ) ); } } }
private void addFactType(List jars, String className) { final Class clazz = loadClass( className, jars ); if ( clazz != null ) { try { final String shortTypeName = getShortNameOfClass( clazz.getName() ); this.builder.addFactType( shortTypeName, FIELD_CLASS_TYPE.REGULAR_CLASS ); loadClassFields( clazz, shortTypeName ); } catch ( final IOException e ) { this.errors.add( String.format( "Error while inspecting the class: %s. The error was: %s", className, e.getMessage() ) ); } catch ( NoClassDefFoundError e ) { this.errors.add( String.format( "Unable to find the class: %s which is required by: %s. You may need to add more classes to the model.", e.getMessage().replace( '/', '.' ), className ) ); } } }
this.builder.addFactType( declaredType, FIELD_CLASS_TYPE.TYPE_DECLARATION_CLASS );
this.builder.addFactType( declaredType, FIELD_CLASS_TYPE.TYPE_DECLARATION_CLASS );