at.dms.kjc
Class DefaultFilter

java.lang.Object
  |
  +--at.dms.kjc.DefaultFilter
All Implemented Interfaces:
WarningFilter

public class DefaultFilter
extends java.lang.Object
implements WarningFilter

This is the default warning filter.


Fields inherited from interface at.dms.compiler.WarningFilter
FLT_ACCEPT, FLT_FORCE, FLT_REJECT
 
Constructor Summary
DefaultFilter()
           
 
Method Summary
 int filter(CWarning warning)
          The UNUSED_PARAMETER, CONSTANT_VARIABLE_NOT_FINAL and UNUSED_CATCH_PARAMETER warnings are rejected by this warning filter.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultFilter

public DefaultFilter()
Method Detail

filter

public int filter(CWarning warning)
The UNUSED_PARAMETER, CONSTANT_VARIABLE_NOT_FINAL and UNUSED_CATCH_PARAMETER warnings are rejected by this warning filter. All other warnings are accepted.
Specified by:
filter in interface WarningFilter
Parameters:
warning - A warning to be filtered.
Returns:
One of: FLT_REJECT, FLT_FORCE, FLT_ACCEPT