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 AssignableFilter

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

All Implemented Interfaces:
JavaFilter

public class AssignableFilter
extends java.lang.Object
implements JavaFilter

A AssignableFilter accepts any element whose resolved type may be assigned to the target type.


Field Summary
static int REQUIRE_EXACT_TYPE
          Requires a static type reference.
static int REQUIRE_INSTANCE
          Requires either a value or a variable.
static int REQUIRE_none
          No special requirement.
static int REQUIRE_TYPE
          Requires a static type reference.

 

Constructor Summary
AssignableFilter(JavaType target)
          Accepts elements whose type may be assigned to the target.
AssignableFilter(JavaType target, int require)
          Accepts elements whose type may be assigned to the target.

 

Method Summary
 boolean accepts(JavaElement element)
           
 JavaType getTarget()
          Get the target type.

 

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

 

Field Detail

REQUIRE_none

public static final int REQUIRE_none
No special requirement.
See Also:
Constant Field Values

REQUIRE_INSTANCE

public static final int REQUIRE_INSTANCE
Requires either a value or a variable. Denies static type references.
See Also:
Constant Field Values

REQUIRE_TYPE

public static final int REQUIRE_TYPE
Requires a static type reference. Denies values and variables.
See Also:
Constant Field Values

REQUIRE_EXACT_TYPE

public static final int REQUIRE_EXACT_TYPE
Requires a static type reference. Denies values and variables. Must be this type
See Also:
Constant Field Values

Constructor Detail

AssignableFilter

public AssignableFilter(JavaType target)
Accepts elements whose type may be assigned to the target.

AssignableFilter

public AssignableFilter(JavaType target,
                        int require)
Accepts elements whose type may be assigned to the target.
Parameters:
require - Valid values are REQUIRE_*.
Throws:
java.lang.IllegalArgumentException - for an invalid value of require.

Method Detail

accepts

public final 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.

getTarget

public JavaType getTarget()
Get the target type.
Returns:
the target type

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.