@Test public void testContains() { assertTrue( as3.contains( "logger", buildSetContaining( 0 ) ) ); assertFalse( as3.contains( "loggerr", buildSetContaining( 0 ) ) ); assertFalse( as3.contains( "addEventListener", buildSetContaining( 109, 114 ) ) ); }
public final boolean contains( final String stringToLookup, final Set< Integer > linesToBeIgnored ) { int lineIndex = 1; boolean found = false; for ( final String line : lines ) { if ( doesCurrentLineContain( line, stringToLookup ) && !linesToBeIgnored.contains( lineIndex ) ) { found = true; break; } lineIndex++; } return found; }
AbstractFlexFile implements IFlexFile { public final boolean contains( final String stringToLookup, final Set< Integer > linesToBeIgnored ) { int lineIndex = 1; boolean found = false; for ( final String line : lines ) { if ( doesCurrentLineContain( line, stringToLookup ) && !linesToBeIgnored.contains( lineIndex ) ) { found = true; break; } lineIndex++; } return found; } }
AbstractFlexFile implements IFlexFile { public final boolean contains( final String stringToLookup, final Set< Integer > linesToBeIgnored ) { int lineIndex = 1; boolean found = false; for ( final String line : lines ) { if ( doesCurrentLineContain( line, stringToLookup ) && !linesToBeIgnored.contains( lineIndex ) ) { found = true; break; } lineIndex++; } return found; } protected  AbstractFlexFile( final File underlyingFile,
                               final File rootDirectory ); }
AbstractFlexFile implements IFlexFile { public final boolean contains( final String stringToLookup, final Set< Integer > linesToBeIgnored ) { int lineIndex = 1; boolean found = false; for ( final String line : lines ) { if ( doesCurrentLineContain( line, stringToLookup ) && !linesToBeIgnored.contains( lineIndex ) ) { found = true; break; } lineIndex++; } return found; } protected  AbstractFlexFile( final File underlyingFile,
                               final File rootDirectory ); final boolean contains( final String stringToLookup,
                                  final Set< Integer > linesToBeIgnored ); @Override final boolean equals( final Object obj ); final String getClassName(); abstract String getCommentClosingTag(); abstract String getCommentOpeningTag(); final String getFilename(); final String getFilePath(); final String getFullyQualifiedName(); String getLineAt( final int lineIndex ); final List< String > getLines(); int getLinesNb(); final String getPackageName(); @Override int hashCode(); abstract boolean isMainApplication(); abstract boolean isMxml(); }
AbstractFlexFile implements IFlexFile { public final boolean contains( final String stringToLookup, final Set< Integer > linesToBeIgnored ) { int lineIndex = 1; boolean found = false; for ( final String line : lines ) { if ( doesCurrentLineContain( line, stringToLookup ) && !linesToBeIgnored.contains( lineIndex ) ) { found = true; break; } lineIndex++; } return found; } protected  AbstractFlexFile( final File underlyingFile,
                               final File rootDirectory ); final boolean contains( final String stringToLookup,
                                  final Set< Integer > linesToBeIgnored ); @Override final boolean equals( final Object obj ); final String getClassName(); abstract String getCommentClosingTag(); abstract String getCommentOpeningTag(); final String getFilename(); final String getFilePath(); final String getFullyQualifiedName(); String getLineAt( final int lineIndex ); final List< String > getLines(); int getLinesNb(); final String getPackageName(); @Override int hashCode(); abstract boolean isMainApplication(); abstract boolean isMxml();  }