|
org.netbeans.modules.java.source 0.80.1 17 | |||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use ElementHandle | |
---|---|
org.netbeans.api.java.source | Permits inspection and modification of the structure of Java sources. |
Uses of ElementHandle in org.netbeans.api.java.source |
---|
Methods in org.netbeans.api.java.source that return ElementHandle | ||
---|---|---|
static
|
ElementHandle.create(T element)
Factory method for creating ElementHandle . |
|
static ElementHandle<? extends TypeElement> |
ElementHandle.from(TypeMirrorHandle<? extends DeclaredType> typeMirrorHandle)
Gets ElementHandle from TypeMirrorHandle representing DeclaredType . |
Methods in org.netbeans.api.java.source that return types with arguments of type ElementHandle | |
---|---|
Set<ElementHandle<TypeElement>> |
ClassIndex.getDeclaredTypes(String name,
ClassIndex.NameKind kind,
Set<ClassIndex.SearchScope> scope)
Returns ElementHandle s for all declared types in given classpath corresponding to the name. |
Set<ElementHandle<TypeElement>> |
ClassIndex.getElements(ElementHandle<TypeElement> element,
Set<ClassIndex.SearchKind> searchKind,
Set<ClassIndex.SearchScope> scope)
Returns a set of ElementHandle s containing reference(s) to given element. |
static Collection<ElementHandle<TypeElement>> |
SourceUtils.getMainClasses(FileObject fo)
Returns classes declared in the given source file which have the main method. |
static Collection<ElementHandle<TypeElement>> |
SourceUtils.getMainClasses(FileObject[] sourceRoots)
Returns classes declared under the given source roots which have the main method. |
Iterable<? extends ElementHandle<TypeElement>> |
TypesEvent.getTypes()
Returns the affected declared types. |
Methods in org.netbeans.api.java.source with parameters of type ElementHandle | |
---|---|
static TreePathHandle |
TreePathHandle.from(ElementHandle<?> handle,
ClasspathInfo cpInfo)
Constructs a TreePathHandle that corresponds to the given ElementHandle . |
Set<ElementHandle<TypeElement>> |
ClassIndex.getElements(ElementHandle<TypeElement> element,
Set<ClassIndex.SearchKind> searchKind,
Set<ClassIndex.SearchScope> scope)
Returns a set of ElementHandle s containing reference(s) to given element. |
static FileObject |
SourceUtils.getFile(ElementHandle<? extends Element> handle,
ClasspathInfo cpInfo)
Returns a FileObject of the source file in which the handle is declared. |
Set<FileObject> |
ClassIndex.getResources(ElementHandle<TypeElement> element,
Set<ClassIndex.SearchKind> searchKind,
Set<ClassIndex.SearchScope> scope)
Returns a set of source files containing reference(s) to given element. |
static boolean |
UiUtils.open(FileObject toSearch,
ElementHandle<? extends Element> toOpen)
Deprecated. Use org.netbeans.api.java.source.ui.ElementOpen#open(org.openide.filesystems.FileObject, org.netbeans.api.java.source.ElementHandle)
of the org.netbeans.modules.java.sourceui module |
boolean |
ElementHandle.signatureEquals(ElementHandle<? extends Element> handle)
Tests if the handle has the same signature as the parameter. |
|
org.netbeans.modules.java.source 0.80.1 17 | |||||||||
PREV NEXT | FRAMES NO FRAMES |