This document lists changes made to the Java Source API.
Fuller descriptions of all changes can be found below (follow links).
Not all deprecations are listed here, assuming that the deprecated APIs continue to essentially work. For a full deprecation list, please consult the Javadoc.
ClassIndex
.
package
These API specification versions may be used to indicate that a module requires a certain API feature in order to function. For example, if you see here a feature you need which is labelled 1.20, your manifest should contain in its main attributes the line:
OpenIDE-Module-Module-Dependencies: org.netbeans.modules.java.source > 1.20
ClassIndex
.
package
org.netbeans.api.java.source.BuildArtifactMapper
org.netbeans.api.java.source.ClasspathInfo
org.netbeans.api.java.source.CodeStyle
org.netbeans.api.java.source.Comment
org.netbeans.api.java.source.CompilationController
org.netbeans.api.java.source.CompilationInfo
org.netbeans.api.java.source.GeneratorUtilities
org.netbeans.api.java.source.JavaParserResultTask
org.netbeans.api.java.source.JavaSource
org.netbeans.api.java.source.ModificationResult
org.netbeans.api.java.source.SourceUtils
org.netbeans.api.java.source.TreeMaker
org.netbeans.api.java.source.TreePathHandle
org.netbeans.api.java.source.TreeUtilities
org.netbeans.api.java.source.TypeUtilities
org.netbeans.api.java.source.WorkingCopy
TreePathHandle
; made by: jlahoda; issues:
#197848
TreePathHandle
has a new from(ElementHandle)
method.
JavaSource
; made by: jlahoda; issues:
#119887
JavaSource.runModificationTask
method works on source-less JavaSource
s.
SourceUtils
; made by: tzezula; issues:
#191648
isMain
method into org.netbeans.api.java.source.SourceUtils
which allows
check based only on index information.
TreeMaker
; made by: jlahoda
com.sun.source.tree.DisjointTypeTree
renamed to com.sun.source.tree.DisjunctiveTypeTree
from javac,
so adjusting TreeMaker
to it. com.sun.source.tree.AnnotationTypeTree
has been removed from javac and
is no longer available.
CodeStyle.alignMultilineTryResources
, CodeStyle.spaceBeforeTryParen
,
CodeStyle.spaceWithinTryParens
, CodeStyle.wrapTryResources
TreeMaker.DisjointType
, CodeStyle.Try
and TreeUtilities.CLASS_TREE_KINDS
to support new language features in JDK7.
TreeMaker
; made by: jlahoda; issues:
#157760
TreeMaker.CompilationUnit(List<AnnotationTree>, ...)
,
TreeMaker.addPackageAnnotation
, TreeMaker.insertPackageAnnotation
,
TreeMaker.removePackageAnnotation
to allow modification of the list of package annotations.
TreeMaker
; made by: jlahoda; issues:
#190123
TreeMaker.QualIdent(String)
and TreeMaker.Type(String)
method, which allow
to construct QualIdents and Types from String specification.
TreeUtilities
; made by: jlahoda; issues:
#190019
TreeUtilities.translate
method, which allows
to construct new tree based on a given set of changes.
TypeUtilities
; made by: jlahoda; issues:
#104194
TypeUtilities.getTypeName
method, which
allows to print type to string.
SourceUtils
; made by: dbalek; issues:
#111292
SourceUtils.getAttributeValueCompletions
method, which
returns a list of completions for an annotation attribute value suggested by
annotation processors.
TreeUtilities
; made by: jlahoda; issues:
#180842
TreeUtilities
.
GeneratorUtilities
; made by: jlahoda; issues:
#175020
GeneratorUtilities.copyComments
method, which
copies comments from one tree to another tree.
TreeUtilities
; made by: msauer; issues:
#170373
TreeUtilities.isEnumConstant()
method, which
determines whether tree represents an enum constant.
CompilationInfo
; made by: dbalek; issues:
#169970
CompilationInfo.getSourceVersion()
to return the SourceVersion used by the javac compiler.
JavaSource
; made by: tzezula; issues:
#169974
TreeMaker
; made by: moonko
TreeMake.Method(..., boolean isVarArg)
to allow creation of methods with variable lenght of arguments.
Comment
; made by: moonko
Comment.create(Comment.Style, String)
to create new comment of any style from string.
JavaParserResultTask
ClasspathInfo
CompilationInfo
CompilationController
ModificationResult
WorkingCopy
; made by: tzezula
CodeStyle
; made by: vstejskal
CodeStyle.getDefault(FileObject)
, CodeStyle.getDefault(Document)
.
Deprecated CodeStyle.getDefault(Project)
.
BuildArtifactMapper
; made by: jlahoda
TypeUtilities
; made by: jlahoda
ClassIndex
.
ClassIndex
was added. The listener fires
events when a declared type was removed, added, changed in the ClassIndex
oe when the underlaying
ClassPath
was changed.
package
package
for templates using scripting language.
TypeUtilities
; made by: jlahoda; issues:
#97542
Built on December 5 2011. | Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.