@Test public void testIsLineACorrectStatement() { assertFalse( FileUtils.isLineACorrectStatement( " { " ) ); assertFalse( FileUtils.isLineACorrectStatement( " } " ) ); assertFalse( FileUtils.isLineACorrectStatement( "{" ) ); assertFalse( FileUtils.isLineACorrectStatement( "}" ) ); assertFalse( FileUtils.isLineACorrectStatement( " class MyModel " ) ); assertFalse( FileUtils.isLineACorrectStatement( "class MyModel" ) ); assertFalse( FileUtils.isLineACorrectStatement( "function lala() : void" ) ); assertFalse( FileUtils.isLineACorrectStatement( "var i : int" ) ); assertFalse( FileUtils.isLineACorrectStatement( "lalla; cdcdvf" ) ); assertTrue( FileUtils.isLineACorrectStatement( "var i : int;" ) ); assertTrue( FileUtils.isLineACorrectStatement( " foo( bar );" ) ); assertTrue( FileUtils.isLineACorrectStatement( "lalla;" ) ); }
public static boolean isLineACorrectStatement( final String line ) { return line.compareTo( "" ) != 0 && lrtrim( line ).compareTo( "{" ) != 0 && lrtrim( line ).compareTo( "}" ) != 0 && line.endsWith( ";" ); }
FileUtils { public static boolean isLineACorrectStatement( final String line ) { return line.compareTo( "" ) != 0 && lrtrim( line ).compareTo( "{" ) != 0 && lrtrim( line ).compareTo( "}" ) != 0 && line.endsWith( ";" ); } }
FileUtils { public static boolean isLineACorrectStatement( final String line ) { return line.compareTo( "" ) != 0 && lrtrim( line ).compareTo( "{" ) != 0 && lrtrim( line ).compareTo( "}" ) != 0 && line.endsWith( ";" ); } private  FileUtils(); }
FileUtils { public static boolean isLineACorrectStatement( final String line ) { return line.compareTo( "" ) != 0 && lrtrim( line ).compareTo( "{" ) != 0 && lrtrim( line ).compareTo( "}" ) != 0 && line.endsWith( ";" ); } private  FileUtils(); static boolean isLineACorrectStatement( final String line ); static Collection< File > listFiles( final File directory,
                                               final FilenameFilter filter,
                                               final boolean recurse ); static Collection< File > listFiles( final List< File > sourceDirectory,
                                               final FilenameFilter filter,
                                               final boolean recurse ); static List< String > readFile( final File file ); }
FileUtils { public static boolean isLineACorrectStatement( final String line ) { return line.compareTo( "" ) != 0 && lrtrim( line ).compareTo( "{" ) != 0 && lrtrim( line ).compareTo( "}" ) != 0 && line.endsWith( ";" ); } private  FileUtils(); static boolean isLineACorrectStatement( final String line ); static Collection< File > listFiles( final File directory,
                                               final FilenameFilter filter,
                                               final boolean recurse ); static Collection< File > listFiles( final List< File > sourceDirectory,
                                               final FilenameFilter filter,
                                               final boolean recurse ); static List< String > readFile( final File file ); static final Logger LOGGER; }