- generateParagraphTagOnBlankLines() - Method in class org.netbeans.api.java.source.CodeStyle
-
- 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(ClasspathInfo) - Static method in class org.netbeans.api.java.source.support.ReferencesCount
-
- get(URL) - Static method in class org.netbeans.api.java.source.support.ReferencesCount
-
- 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.
- getBlankLinesAfterAnonymousClassHeader() - Method in class org.netbeans.api.java.source.CodeStyle
-
- 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
-
- getBlankLinesBeforeAnonymousClassClosingBrace() - Method in class org.netbeans.api.java.source.CodeStyle
-
- getBlankLinesBeforeClass() - Method in class org.netbeans.api.java.source.CodeStyle
-
- getBlankLinesBeforeClassClosingBrace() - 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.
- getCachedValue(Object) - Method in class org.netbeans.api.java.source.CompilationInfo
-
- getCapitalizedName(CharSequence) - Static method in class org.netbeans.api.java.source.CodeStyleUtils
-
Capitalize a name following the javabeans specification.
- 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
-
- getClassMemberGroups() - Method in class org.netbeans.api.java.source.CodeStyle
-
Returns an information about the desired grouping of class members.
- getClassMemberInsertionPoint() - Method in class org.netbeans.api.java.source.CodeStyle
-
Returns an information about the desired insertion point of a new class member.
- 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
-
- getDecapitalizedName(CharSequence) - Static method in class org.netbeans.api.java.source.CodeStyleUtils
-
Decapitalize a name to its normal java form.
- getDeclarationIcon(Element) - Static method in class org.netbeans.api.java.source.UiUtils
-
- getDeclaredSymbols(String, ClassIndex.NameKind, Set<? extends ClassIndex.SearchScopeType>) - Method in class org.netbeans.api.java.source.ClassIndex
-
Returns descriptions of symbols found on the given classpath and matching the additional criteria.
- getDeclaredTypes(String, ClassIndex.NameKind, Set<? extends ClassIndex.SearchScopeType>) - Method in class org.netbeans.api.java.source.ClassIndex
-
Returns
ElementHandles 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.
- getDependentRoots(URL, boolean) - 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
-
- getDescriptorType(DeclaredType) - Method in class org.netbeans.api.java.source.TypeUtilities
-
Find the type of the method descriptor associated to the functional interface.
- 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
-
- getDocTrees() - Method in class org.netbeans.api.java.source.CompilationInfo
-
- getDocument() - Method in class org.netbeans.api.java.source.CompilationInfo
-
- getElementHandle() - Method in class org.netbeans.api.java.source.TreePathHandle
-
- getElementIcon(ElementKind, Collection<Modifier>) - Static method in class org.netbeans.api.java.source.UiUtils
-
- getElements(ElementHandle<TypeElement>, Set<ClassIndex.SearchKind>, Set<? extends ClassIndex.SearchScopeType>) - Method in class org.netbeans.api.java.source.ClassIndex
-
Returns a set of
ElementHandles containing reference(s) to given type element.
- getElements() - Method in class org.netbeans.api.java.source.CompilationInfo
-
- getElementsForPackage(ElementHandle<PackageElement>, Set<ClassIndex.SearchKind>, Set<? extends ClassIndex.SearchScopeType>) - Method in class org.netbeans.api.java.source.ClassIndex
-
Returns a set of
ElementHandles containing reference(s) to given package element.
- getElementUtilities() - Method in class org.netbeans.api.java.source.CompilationInfo
-
- getEnclosingType() - Method in class org.netbeans.api.java.source.ClassIndex.Symbols
-
The type that contains some symbols matching the required criterie.
- 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.
- getFile() - Method in class org.netbeans.api.java.source.support.ProfileSupport.Violation
-
Returns the file which violates the tested profile.
- 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
TypeElements:
which are imported
which are in the same package as the current file
which are in the java.lang package
- getGroupId(String, boolean) - Method in class org.netbeans.api.java.source.CodeStyle.ImportGroups
-
Returns the group number of the imported element.
- getGroupId(Tree) - Method in class org.netbeans.api.java.source.CodeStyle.MemberGroups
-
Returns the group number of the class member.
- getGroupId(Element) - Method in class org.netbeans.api.java.source.CodeStyle.MemberGroups
-
Returns the group number of the class member.
- getHeader(TreePath, CompilationInfo, String) - Static method in class org.netbeans.api.java.source.UiUtils
-
- getHeader(Element, CompilationInfo, String) - Static method in class org.netbeans.api.java.source.UiUtils
-
- 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.
- getImportGroups() - Method in class org.netbeans.api.java.source.CodeStyle
-
Returns an information about the desired grouping of import statements.
- 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
-
- getJVMSignature(ElementHandle<?>) - Static method in class org.netbeans.api.java.source.SourceUtils
-
Returns an array containing the JVM signature of the
ElementHandle.
- getKind() - Method in class org.netbeans.api.java.source.DocTreePathHandle
-
Returns the DocTree.Kind of this DocTreePathHandle, it returns the kind
of the DocTree from which the handle was created.
- 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.
- getMaximumBlankLinesInCode() - Method in class org.netbeans.api.java.source.CodeStyle
-
- getMaximumBlankLinesInDeclarations() - Method in class org.netbeans.api.java.source.CodeStyle
-
- 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
-
- getMultiVariables() - Method in class org.netbeans.api.java.source.matching.Occurrence
-
For patterns with free variables, contains mapping of multi-variable
names to the tree nodes that were bound to the variable.
- getNewFiles() - Method in class org.netbeans.api.java.source.ModificationResult
-
- getNewText() - Method in class org.netbeans.api.java.source.ModificationResult.Difference
-
- getOccurrenceRoot() - Method in class org.netbeans.api.java.source.matching.Occurrence
-
The tree node that represents the occurrence.
- 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<? extends ClassIndex.SearchScopeType>) - Method in class org.netbeans.api.java.source.ClassIndex
-
Returns names af all packages in given classpath starting with prefix.
- getPackageReferenceCount(ElementHandle<? extends PackageElement>) - Method in class org.netbeans.api.java.source.support.ReferencesCount
-
Returns an estimate of a number of classes on given source path (source root) which are
using given package.
- getPackages() - Method in enum org.netbeans.api.java.source.ClassIndex.SearchScope
-
- getPackages() - Method in interface org.netbeans.api.java.source.ClassIndex.SearchScopeType
-
Limits search only into given packages.
- getPackagesForStarImport() - Method in class org.netbeans.api.java.source.CodeStyle
-
Returns the names of packages that should be always imported using the 'star'
import statements.
- 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
-
- getReferenceClass(DocTreePath) - Method in class org.netbeans.api.java.source.TreeUtilities
-
Find the type (the part before #) that is being referenced by the given ReferenceTree.
- getReferenceName(DocTreePath) - Method in class org.netbeans.api.java.source.TreeUtilities
-
Find the name (the name after #) that is being referenced by the given ReferenceTree.
- getReferenceParameters(DocTreePath) - Method in class org.netbeans.api.java.source.TreeUtilities
-
Find the parameters that are specified in the given ReferenceTree.
- getRequiredProfile() - Method in class org.netbeans.api.java.source.support.ProfileSupport.Violation
-
- getResources(ElementHandle<TypeElement>, Set<ClassIndex.SearchKind>, Set<? extends ClassIndex.SearchScopeType>) - Method in class org.netbeans.api.java.source.ClassIndex
-
Returns a set of source files containing reference(s) to given type element.
- getResourcesForPackage(ElementHandle<PackageElement>, Set<ClassIndex.SearchKind>, Set<? extends ClassIndex.SearchScopeType>) - Method in class org.netbeans.api.java.source.ClassIndex
-
Returns a set of source files containing reference(s) to given package 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
-
- getRoot() - Method in class org.netbeans.api.java.source.support.ProfileSupport.Violation
-
Returns the root which violates the tested profile.
- 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
-
- getSymbols() - Method in class org.netbeans.api.java.source.ClassIndex.Symbols
-
The simple names of all symbols matching the criteria inside the given enclosing type.
- 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
-
- getTreePathHandle() - Method in class org.netbeans.api.java.source.DocTreePathHandle
-
- 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.
- getTypeReferenceCount(ElementHandle<? extends TypeElement>) - Method in class org.netbeans.api.java.source.support.ReferencesCount
-
Returns an estimate of a number of classes on given source path (source root) which are
using 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.
- getUsedPackages() - Method in class org.netbeans.api.java.source.support.ReferencesCount
-
Returns all packages used by classes on given source path (source root).
- getUsedType() - Method in class org.netbeans.api.java.source.support.ProfileSupport.Violation
-
- getUsedTypes() - Method in class org.netbeans.api.java.source.support.ReferencesCount
-
Returns all types used by classes on given source path (source root).
- getVariables() - Method in class org.netbeans.api.java.source.matching.Occurrence
-
For patterns with free variables, contains mapping of single-variable
names to the tree node that was bound to the variable.
- getVariables2Names() - Method in class org.netbeans.api.java.source.matching.Occurrence
-
For patterns with free variables, contains mapping of variable
names to a name that was bound to the variable.
- getVariablesRemapToElement() - Method in class org.netbeans.api.java.source.matching.Occurrence
-
For patterns which allow variable remap, contains mapping of the element
in the pattern to the corresponding element in this occurrence.
- getVariablesRemapToTrees() - Method in class org.netbeans.api.java.source.matching.Occurrence
-
For patterns which allow variable remap to trees, contains mapping of the element
in the pattern to the corresponding tree node in this occurrence.