|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.javatools.parser.java.v2.util.filter.AssignableFilter
public class AssignableFilter
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 |
---|
public static final int REQUIRE_none
public static final int REQUIRE_INSTANCE
public static final int REQUIRE_TYPE
public static final int REQUIRE_EXACT_TYPE
Constructor Detail |
---|
public AssignableFilter(JavaType target)
public AssignableFilter(JavaType target, int require)
require
- Valid values are REQUIRE_*.java.lang.IllegalArgumentException
- for an invalid value of require.Method Detail |
---|
public final boolean accepts(JavaElement element)
accepts
in interface JavaFilter
public JavaType getTarget()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |