Package | Description |
---|---|
org.netbeans.api.java.source |
Permits inspection and modification of the structure of Java sources.
|
Modifier and Type | Method and Description |
---|---|
static <T extends Element> |
ElementHandle.create(T element)
Factory method for creating
ElementHandle . |
static ElementHandle<? extends TypeElement> |
ElementHandle.from(TypeMirrorHandle<? extends DeclaredType> typeMirrorHandle)
|
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Built on March 18 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.