Package | Description |
---|---|
org.netbeans.api.java.source |
Permits inspection and modification of the structure of Java sources.
|
org.netbeans.api.java.source.matching |
Modifier and Type | Class and Description |
---|---|
class |
CompilationController
Class for explicit invocation of compilation phases on a java source.
|
class |
WorkingCopy
XXX: extends CompilationController now, finish method delegation
|
Modifier and Type | Method and Description |
---|---|
static CompilationInfo |
CompilationInfo.Parser.Result result)
Returns an instance of the
CompilationInfo for
given Parser.Result if it is a result
of a java parser. |
Modifier and Type | Method and Description |
---|---|
static <T extends Element> |
ScanUtils.checkElement(CompilationInfo info,
T e)
Checks that the Element is valid, is not erroneous.
|
static boolean |
SourceUtils.checkTypesAssignable(CompilationInfo info,
TypeMirror from,
TypeMirror to) |
void |
CommentCollector.TokenSequence<org.netbeans.api.java.lexer.JavaTokenId> ts,
CompilationInfo ci)
Deprecated.
Do not use. Use
GeneratorUtilities.importComments(com.sun.source.tree.Tree, com.sun.source.tree.CompilationUnitTree) instead. |
static Set<TreePath> |
SourceUtils.computeDuplicates(CompilationInfo info,
TreePath searchingFor,
TreePath scope,
AtomicBoolean cancel)
Find duplicates for provided expression
|
static DocTreePathHandle |
DocTreePathHandle.create(DocTreePath docTreePath,
CompilationInfo javac)
Factory method for creating
DocTreePathHandle . |
static TreePathHandle |
TreePathHandle.create(Element element,
CompilationInfo info)
Factory method for creating
TreePathHandle . |
static TreePathHandle |
TreePathHandle.create(TreePath treePath,
CompilationInfo info)
Factory method for creating
TreePathHandle . |
static List<? extends Completion> |
SourceUtils.getAttributeValueCompletions(CompilationInfo info,
Element element,
AnnotationMirror annotation,
ExecutableElement member,
String userText)
Returns a list of completions for an annotation attribute value suggested by
annotation processors.
|
static Set<String> |
SourceUtils.getModuleNames(CompilationInfo info,
Set<? extends ClassIndex.SearchScopeType> scope)
Returns names of all modules within given scope.
|
TreePath |
TreePathHandle.resolve(CompilationInfo compilationInfo)
Resolves an
TreePath from the TreePathHandle . |
T |
ElementHandle.resolve(CompilationInfo compilationInfo)
Resolves an
Element from the ElementHandle . |
T |
TypeMirrorHandle.resolve(CompilationInfo info)
Resolves an
TypeMirror from the TypeMirrorHandle . |
DocTreePath |
DocTreePathHandle.resolve(CompilationInfo compilationInfo)
Resolves an
DocTreePath from the DocTreePathHandle . |
static TypeMirror |
SourceUtils.resolveCapturedType(CompilationInfo info,
TypeMirror tm)
Resolves all captured type variables to their respective wildcards in the given type.
|
Element |
TreePathHandle.resolveElement(CompilationInfo info)
Resolves an
Element from the TreePathHandle . |
static String |
SourceUtils.resolveImport(CompilationInfo info,
TreePath context,
String fqn)
Resolve full qualified name in the given context.
|
static void |
ScanUtils.signalIncompleteData(CompilationInfo ci,
ElementHandle handle)
Aborts the user task and calls it again when parsing finishes, if a typename is not available.
|
Modifier and Type | Method and Description |
---|---|
static Matcher |
Matcher.create(CompilationInfo info)
Create the Matcher for the given
CompilationInfo . |