Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.5.0)

E13403-06


oracle.javatools.parser.java.v2.util.filter
Class OrFilter

java.lang.Object
  extended by oracle.javatools.parser.java.v2.util.filter.OrFilter

All Implemented Interfaces:
JavaFilter

public class OrFilter
extends java.lang.Object
implements JavaFilter

An OrFilter is a SourceFilter that accepts an element if at least one of the input filters accepts the element.


Constructor Summary
OrFilter(JavaFilter[] filters)
           
OrFilter(JavaFilter one, JavaFilter two)
          Convenience constructor that creates an OrFilter from two other filters.

 

Method Summary
 boolean accepts(JavaElement element)
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

OrFilter

public OrFilter(JavaFilter[] filters)
Parameters:
filters - Must have at least length of at least one.
Throws:
java.lang.IllegalArgumentException - if the input is null or if the input is a 0-length array.

OrFilter

public OrFilter(JavaFilter one,
                JavaFilter two)
Convenience constructor that creates an OrFilter from two other filters.
Parameters:
one - Require non-null.
two - Require non-null.

Method Detail

accepts

public boolean accepts(JavaElement element)
Specified by:
accepts in interface JavaFilter
Returns:
True retains this element in the output set. False removes this element from the output set.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.5.0)

E13403-06


Copyright © 1997, 2011, Oracle. All rights reserved.