- GeneratorUtilities - Class in org.netbeans.api.java.source
-
- get(Parser.Result) - Static method in class org.netbeans.api.java.source.CompilationController
-
Returns an instance of the
CompilationController
for
given
Parser.Result
if it is a result
of a java parser.
- get(Parser.Result) - Static method in class org.netbeans.api.java.source.CompilationInfo
-
Returns an instance of the
CompilationInfo
for
given
Parser.Result
if it is a result
of a java parser.
- get(WorkingCopy) - Static method in class org.netbeans.api.java.source.GeneratorUtilities
-
Returns the instance of this class
- get(Parser.Result) - Static method in class org.netbeans.api.java.source.WorkingCopy
-
Returns an instance of the
WorkingCopy
for
given
Parser.Result
if it is a result
of a java parser.
- getAttributeValueCompletions(CompilationInfo, Element, AnnotationMirror, ExecutableElement, String) - Static method in class org.netbeans.api.java.source.SourceUtils
-
Returns a list of completions for an annotation attribute value suggested by
annotation processors.
- getBinaryName() - Method in class org.netbeans.api.java.source.ElementHandle
-
- getBinaryName(TypeElement) - Static method in class org.netbeans.api.java.source.ElementUtilities
-
Returns a binary name of a type.
- getBlankLinesAfterClass() - Method in class org.netbeans.api.java.source.CodeStyle
-
- getBlankLinesAfterClassHeader() - Method in class org.netbeans.api.java.source.CodeStyle
-
- getBlankLinesAfterFields() - Method in class org.netbeans.api.java.source.CodeStyle
-
- getBlankLinesAfterImports() - Method in class org.netbeans.api.java.source.CodeStyle
-
- getBlankLinesAfterMethods() - Method in class org.netbeans.api.java.source.CodeStyle
-
- getBlankLinesAfterPackage() - Method in class org.netbeans.api.java.source.CodeStyle
-
- getBlankLinesBeforeClass() - Method in class org.netbeans.api.java.source.CodeStyle
-
- getBlankLinesBeforeFields() - Method in class org.netbeans.api.java.source.CodeStyle
-
- getBlankLinesBeforeImports() - Method in class org.netbeans.api.java.source.CodeStyle
-
- getBlankLinesBeforeMethods() - Method in class org.netbeans.api.java.source.CodeStyle
-
- getBlankLinesBeforePackage() - Method in class org.netbeans.api.java.source.CodeStyle
-
- getBound(WildcardType) - Static method in class org.netbeans.api.java.source.SourceUtils
-
- getBreakContinueTarget(TreePath) - Method in class org.netbeans.api.java.source.TreeUtilities
-
Find the target of break
or continue
.
- getChangedTree() - Method in class org.netbeans.api.java.source.CompilationInfo
-
Returns tree which was reparsed by an incremental reparse.
- getClassDeclBracePlacement() - Method in class org.netbeans.api.java.source.CodeStyle
-
- getClassIndex() - Method in class org.netbeans.api.java.source.ClasspathInfo
-
- getClassPath(ClasspathInfo.PathKind) - Method in class org.netbeans.api.java.source.ClasspathInfo
-
- getClasspathInfo() - Method in class org.netbeans.api.java.source.CompilationInfo
-
- getClasspathInfo() - Method in class org.netbeans.api.java.source.JavaSource
-
- getComments(Tree, boolean) - Method in class org.netbeans.api.java.source.TreeUtilities
-
Returns list of comments attached to a given tree.
- getCompilationUnit() - Method in class org.netbeans.api.java.source.CompilationInfo
-
Returns the javac tree representing the source file.
- getContinuationIndentSize() - Method in class org.netbeans.api.java.source.CodeStyle
-
- getDeclarationIcon(Element) - Static method in class org.netbeans.api.java.source.UiUtils
-
Deprecated.
Use org.netbeans.api.java.source.ui.ElementIcons#getElementIcon(javax.lang.model.element.ElementKind, java.util.Collection)
of the org.netbeans.modules.java.sourceui module
- getDeclaredTypes(String, ClassIndex.NameKind, Set<ClassIndex.SearchScope>) - Method in class org.netbeans.api.java.source.ClassIndex
-
Returns
ElementHandle
s for all declared types in given classpath corresponding to the name.
- getDefault(Project) - Static method in class org.netbeans.api.java.source.CodeStyle
-
- getDefault(FileObject) - Static method in class org.netbeans.api.java.source.CodeStyle
-
Gets CodeStyle
for the given file.
- getDefault(Document) - Static method in class org.netbeans.api.java.source.CodeStyle
-
Gets CodeStyle
for the given document.
- getDependentRoots(URL) - Static method in class org.netbeans.api.java.source.SourceUtils
-
Returns the dependent source path roots for given source root.
- getDescription() - Method in class org.netbeans.api.java.source.ModificationResult.Difference
-
- getDiagnostics() - Method in class org.netbeans.api.java.source.CompilationInfo
-
Returns the errors in the file represented by the
JavaSource
.
- getDifferences(FileObject) - Method in class org.netbeans.api.java.source.ModificationResult
-
- getDistance(String, String) - Static method in class org.netbeans.api.java.source.UiUtils
-
Deprecated.
Use org.netbeans.api.java.source.ui.ElementHeaders#getDistance(java.lang.String, java.lang.String)
of the org.netbeans.modules.java.sourceui module
- getDocument() - Method in class org.netbeans.api.java.source.CompilationInfo
-
Returns
Document
of this
CompilationInfoImpl
- getElementIcon(ElementKind, Collection<Modifier>) - Static method in class org.netbeans.api.java.source.UiUtils
-
Deprecated.
Use org.netbeans.api.java.source.ui.ElementIcons#getElementIcon(javax.lang.model.element.ElementKind, java.util.Collection)
of the org.netbeans.modules.java.sourceui module
- getElements(ElementHandle<TypeElement>, Set<ClassIndex.SearchKind>, Set<ClassIndex.SearchScope>) - Method in class org.netbeans.api.java.source.ClassIndex
-
Returns a set of
ElementHandle
s containing reference(s) to given element.
- getElements() - Method in class org.netbeans.api.java.source.CompilationInfo
-
- getElementUtilities() - Method in class org.netbeans.api.java.source.CompilationInfo
-
- getEnclosingTypeElement(Element) - Static method in class org.netbeans.api.java.source.SourceUtils
-
- getEndPosition() - Method in class org.netbeans.api.java.source.ModificationResult.Difference
-
- getFieldNamePrefix() - Method in class org.netbeans.api.java.source.CodeStyle
-
- getFieldNameSuffix() - Method in class org.netbeans.api.java.source.CodeStyle
-
- getFile() - Method in exception org.netbeans.api.java.source.JavaSource.InsufficientMemoryException
-
Returns file which cannot be processed due to lack of memory.
- getFile(Element, ClasspathInfo) - Static method in class org.netbeans.api.java.source.SourceUtils
-
- getFile(ElementHandle<? extends Element>, ClasspathInfo) - Static method in class org.netbeans.api.java.source.SourceUtils
-
Returns a
FileObject
of the source file in which the handle is declared.
- getFileObject() - Method in class org.netbeans.api.java.source.CompilationInfo
-
- getFileObject() - Method in class org.netbeans.api.java.source.TreePathHandle
-
getter for FileObject from give TreePathHandle
- getFileObjects() - Method in class org.netbeans.api.java.source.JavaSource
-
- getFileObjects() - Method in class org.netbeans.api.java.source.JavaSourceTaskFactory
-
Specifies on which files should be registered tasks created by this factory.
- getFileObjects() - Method in class org.netbeans.api.java.source.support.CaretAwareJavaSourceTaskFactory
-
- getFileObjects() - Method in class org.netbeans.api.java.source.support.EditorAwareJavaSourceTaskFactory
-
- getFileObjects() - Method in class org.netbeans.api.java.source.support.LookupBasedJavaSourceTaskFactory
-
- getFileObjects() - Method in class org.netbeans.api.java.source.support.SelectionAwareJavaSourceTaskFactory
-
- getGlobalTypes(ElementUtilities.ElementAcceptor) - Method in class org.netbeans.api.java.source.ElementUtilities
-
Return
TypeElement
s:
which are imported
which are in the same package as the current file
which are in the java.lang package
- getHeader(TreePath, CompilationInfo, String) - Static method in class org.netbeans.api.java.source.UiUtils
-
Deprecated.
Use org.netbeans.api.java.source.ui.ElementHeaders#getHeader(com.sun.source.util.TreePath, org.netbeans.api.java.source.CompilationInfo, java.lang.String)
of the org.netbeans.modules.java.sourceui module
- getHeader(Element, CompilationInfo, String) - Static method in class org.netbeans.api.java.source.UiUtils
-
Deprecated.
Use org.netbeans.api.java.source.ui.ElementHeaders#getHeader(javax.lang.model.element.Element, org.netbeans.api.java.source.CompilationInfo, java.lang.String)
of the org.netbeans.modules.java.sourceui module
- getImplementationOf(ExecutableElement, TypeElement) - Method in class org.netbeans.api.java.source.ElementUtilities
-
Returns the implementation of a method in class origin; null if none exists.
- getIndentSize() - Method in class org.netbeans.api.java.source.CodeStyle
-
- getInstance() - Static method in class org.netbeans.api.java.source.CommentCollector
-
- getJavadoc(Element, ClasspathInfo) - Static method in class org.netbeans.api.java.source.SourceUtils
-
Finds
URL
of a javadoc page for given element when available.
- getJavaSource() - Method in class org.netbeans.api.java.source.CompilationInfo
-
Deprecated.
Works only when the CompilationInfo was created by JavaSource using
the compatibility bridge, when the CompilationInfo was created by the parsing api
it returns null. Use CompilationInfo.getSnapshot()
instead.
- getJavaSourcePosition(int) - Method in class org.netbeans.api.java.source.PositionConverter
-
Compute position in the virtual Java source for given position
in the document.
- getJavaTokenSequence(TokenHierarchy, int) - Static method in class org.netbeans.api.java.source.SourceUtils
-
- getKind() - Method in class org.netbeans.api.java.source.ElementHandle
-
Returns the
ElementKind
of this element handle,
it is the kind of the
Element
from which the handle
was created.
- getKind() - Method in class org.netbeans.api.java.source.ModificationResult.Difference
-
- getKind() - Method in class org.netbeans.api.java.source.TreePathHandle
-
Returns the
Tree.Kind
of this TreePathHandle,
it returns the kind of the
Tree
from which the handle
was created.
- getKind() - Method in class org.netbeans.api.java.source.TypeMirrorHandle
-
Returns the
TypeKind
of this handle,
it is the kind of the
TypeMirror
from which the handle
was created.
- getLabelIndent() - Method in class org.netbeans.api.java.source.CodeStyle
-
- getLastPosition(FileObject) - Static method in class org.netbeans.api.java.source.support.CaretAwareJavaSourceTaskFactory
-
Returns current caret position in current
JTextComponent
for a given file.
- getLastSelection(FileObject) - Static method in class org.netbeans.api.java.source.support.SelectionAwareJavaSourceTaskFactory
-
Returns current selection span in current
JTextComponent
for a given file.
- getLocalMembersAndVars(Scope, ElementUtilities.ElementAcceptor) - Method in class org.netbeans.api.java.source.ElementUtilities
-
Return members declared in the given scope.
- getLocalVarNamePrefix() - Method in class org.netbeans.api.java.source.CodeStyle
-
- getLocalVarNameSuffix() - Method in class org.netbeans.api.java.source.CodeStyle
-
- getLocalVars(Scope, ElementUtilities.ElementAcceptor) - Method in class org.netbeans.api.java.source.ElementUtilities
-
Return variables declared in the given scope.
- getMainClasses(FileObject) - Static method in class org.netbeans.api.java.source.SourceUtils
-
Returns classes declared in the given source file which have the main method.
- getMainClasses(FileObject[]) - Static method in class org.netbeans.api.java.source.SourceUtils
-
Returns classes declared under the given source roots which have the main method.
- getMembers(TypeMirror, ElementUtilities.ElementAcceptor) - Method in class org.netbeans.api.java.source.ElementUtilities
-
Returns all members of a type, whether inherited or
declared directly.
- getMethodDeclBracePlacement() - Method in class org.netbeans.api.java.source.CodeStyle
-
- getModifiedFileObjects() - Method in class org.netbeans.api.java.source.ModificationResult
-
- getNewFiles() - Method in class org.netbeans.api.java.source.ModificationResult
-
- getNewText() - Method in class org.netbeans.api.java.source.ModificationResult.Difference
-
- getOldText() - Method in class org.netbeans.api.java.source.ModificationResult.Difference
-
- getOriginalPosition(int) - Method in class org.netbeans.api.java.source.PositionConverter
-
Compute position in the document for given position in the virtual
Java source.
- getOtherBracePlacement() - Method in class org.netbeans.api.java.source.CodeStyle
-
- getOutermostEnclosingTypeElement(Element) - Static method in class org.netbeans.api.java.source.SourceUtils
-
- getOverriddenMethod(ExecutableElement) - Method in class org.netbeans.api.java.source.ElementUtilities
-
Returns the parent method which the specified method overrides, or null
if the method does not override a parent class method.
- getPackageNames(String, boolean, Set<ClassIndex.SearchScope>) - Method in class org.netbeans.api.java.source.ClassIndex
-
Returns names af all packages in given classpath starting with prefix.
- getPackagesForStarImport() - Method in class org.netbeans.api.java.source.CodeStyle
-
- getParameterNamePrefix() - Method in class org.netbeans.api.java.source.CodeStyle
-
- getParameterNameSuffix() - Method in class org.netbeans.api.java.source.CodeStyle
-
- getPhase() - Method in class org.netbeans.api.java.source.CompilationInfo
-
- getPhase() - Method in class org.netbeans.api.java.source.JavaParserResultTask
-
Returns the phase needed by task.
- getPositionConverter() - Method in class org.netbeans.api.java.source.CompilationInfo
-
Deprecated.
as of 0.42, this is superseded by Parsing API.
- getQualifiedName() - Method in class org.netbeans.api.java.source.ElementHandle
-
- getResources(ElementHandle<TypeElement>, Set<ClassIndex.SearchKind>, Set<ClassIndex.SearchScope>) - Method in class org.netbeans.api.java.source.ClassIndex
-
Returns a set of source files containing reference(s) to given element.
- getResultingSource(FileObject) - Method in class org.netbeans.api.java.source.ModificationResult
-
Returned string represents preview of resulting source.
- getRightMargin() - Method in class org.netbeans.api.java.source.CodeStyle
-
- getRoots() - Method in class org.netbeans.api.java.source.RootsEvent
-
Returns the affected declared
ClassPath
roots.
- getSnapshot() - Method in class org.netbeans.api.java.source.CompilationInfo
-
Returns the snapshot used by java parser
- getSourceVersion() - Method in class org.netbeans.api.java.source.CompilationInfo
-
- getSpan(Object) - Method in class org.netbeans.api.java.source.ModificationResult
-
Provides span of tree tagged with tag
- getStartPosition() - Method in class org.netbeans.api.java.source.ModificationResult.Difference
-
- getStaticFieldNamePrefix() - Method in class org.netbeans.api.java.source.CodeStyle
-
- getStaticFieldNameSuffix() - Method in class org.netbeans.api.java.source.CodeStyle
-
- getTabSize() - Method in class org.netbeans.api.java.source.CodeStyle
-
- getText() - Method in class org.netbeans.api.java.source.Comment
-
Returns the comment text.
- getText() - Method in class org.netbeans.api.java.source.CompilationInfo
-
Returns the content of the file represented by the
JavaSource
.
- getTokenHierarchy() - Method in class org.netbeans.api.java.source.CompilationInfo
-
- getTopLevelElements() - Method in class org.netbeans.api.java.source.CompilationInfo
-
Returns all top level elements defined in file for which the
CompilationInfo
was created.
- getTreeMaker() - Method in class org.netbeans.api.java.source.WorkingCopy
-
- getTrees() - Method in class org.netbeans.api.java.source.CompilationInfo
-
- getTreeUtilities() - Method in class org.netbeans.api.java.source.CompilationInfo
-
- getTypeName(TypeMirror, TypeUtilities.TypeNameOptions...) - Method in class org.netbeans.api.java.source.TypeUtilities
-
Get textual representation of the given type.
- getTypes() - Method in class org.netbeans.api.java.source.CompilationInfo
-
- getTypes() - Method in class org.netbeans.api.java.source.TypesEvent
-
Returns the affected declared types.
- getTypeUtilities() - Method in class org.netbeans.api.java.source.CompilationInfo
-
Get the TypeUtilities.
- getUncaughtExceptions(TreePath) - Method in class org.netbeans.api.java.source.TreeUtilities
-
Returns uncaught exceptions inside the given tree path.