public void addAllowedPrefix ( String prefix ) { if ( prefix . endsWith ( "." ) ) { prefix = prefix . substring ( 0 , prefix . length ( ) - 1 ) ; } LOG . debug ( "Allowed prefix: {}" , prefix ) ; String packageRegex = START + dotsToRegex ( prefix ) + SEP ; LOG . debug ( "Prefix regex: {}" , packageRegex ) ; patternList . add ( Pattern . compile ( packageRegex ) . matcher ( "" ) ) ; }
Add the name of a prefix to be matched by the screener . All class files that appear to be in the package specified by the prefix or a more deeply nested package should be matched .