|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.0.0) E17493-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jdeveloper.java.util.SourceElementAsList
public final class SourceElementAsList
This class converts a SourceElement tree into a flat List
.
The different methods allow different forms of filtering.
The most important methods here are probably asList(oracle.javatools.parser.java.v2.model.SourceElement)
and asList(oracle.javatools.parser.java.v2.model.SourceElement, int)
Method Summary | |
---|---|
static java.util.List<SourceElement> |
asList(SourceElement root)
|
static java.util.List<SourceElement> |
asList(SourceElement root,
java.lang.Class elementClass)
|
static java.util.List<SourceElement> |
asList(SourceElement root,
int symbolKind)
|
static java.util.List<SourceElement> |
asList(SourceElement root,
int[] symbolKinds)
|
static java.util.List<SourceElement> |
filterByClass(java.util.List<SourceElement> list,
java.lang.Class elementClass)
|
static java.util.List<SourceElement> |
filterBySymbolKind(java.util.List<SourceElement> list,
int symbolKind)
|
static java.util.List<SourceElement> |
filterNamedElements(java.util.List<SourceElement> list,
java.lang.String name)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.util.List<SourceElement> asList(SourceElement root)
public static java.util.List<SourceElement> asList(SourceElement root, java.lang.Class elementClass)
public static java.util.List<SourceElement> asList(SourceElement root, int symbolKind)
public static java.util.List<SourceElement> asList(SourceElement root, int[] symbolKinds)
public static java.util.List<SourceElement> filterNamedElements(java.util.List<SourceElement> list, java.lang.String name)
list
- a List of SourceElement
name
-
list
that only contains SourceHasName elements named name
public static java.util.List<SourceElement> filterByClass(java.util.List<SourceElement> list, java.lang.Class elementClass)
list
- a List of SourceElement
list
that only contains elements of Class elementClass
public static java.util.List<SourceElement> filterBySymbolKind(java.util.List<SourceElement> list, int symbolKind)
list
- a List of SourceElement
list
that only contains elements of Class elementClass
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.0.0) E17493-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |