janino.net

org.codehaus.janino
Class FilterWarningHandler

java.lang.Object
  extended by org.codehaus.janino.FilterWarningHandler
All Implemented Interfaces:
WarningHandler

public class FilterWarningHandler
extends Object
implements WarningHandler

Invokes a delegate iff the handle of the warning matches one or more of a set of StringPatterns.


Constructor Summary
FilterWarningHandler(StringPattern[] handlePatterns, WarningHandler delegate)
          Popular values for the handlePatterns parameter are StringPattern.PATTERNS_ALL and StringPattern.PATTERNS_NONE.
 
Method Summary
 void handleWarning(String handle, String message, Location optionalLocation)
          May or may not choose to throw a CompileException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterWarningHandler

public FilterWarningHandler(StringPattern[] handlePatterns,
                            WarningHandler delegate)
Popular values for the handlePatterns parameter are StringPattern.PATTERNS_ALL and StringPattern.PATTERNS_NONE.

Method Detail

handleWarning

public void handleWarning(String handle,
                          String message,
                          Location optionalLocation)
                   throws CompileException
Description copied from interface: WarningHandler
May or may not choose to throw a CompileException.

Specified by:
handleWarning in interface WarningHandler
Parameters:
handle - A string describing the category of the warning
Throws:
CompileException

janino.net