Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSarika Sinha2019-07-04 08:24:40 +0000
committerSarika Sinha2019-07-04 09:41:57 +0000
commit235d033c53538724b68f25cfb45c9c57c97cba3a (patch)
treeb31cc3469d7b8c486c6b5dd7b3cf126e8b09b522
parent447234000837032907da9052b6868752573d48ea (diff)
downloadeclipse.jdt.core-235d033c53538724b68f25cfb45c9c57c97cba3a.tar.gz
eclipse.jdt.core-235d033c53538724b68f25cfb45c9c57c97cba3a.tar.xz
eclipse.jdt.core-235d033c53538724b68f25cfb45c9c57c97cba3a.zip
Bug 548699 - [dom] proposal for a new API for AST for preview
Change-Id: I26e367cdf87097cbefce7133499a8ee0bc50f17e Signed-off-by: Sarika Sinha <sarika.sinha@in.ibm.com>
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java20
1 files changed, 14 insertions, 6 deletions
diff --git a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java
index 90d0ed434e..f29c0b5369 100644
--- a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java
+++ b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java
@@ -400,7 +400,7 @@ public final class AST {
* Creates a new Java abstract syntax tree
* (AST) following the specified set of API rules.
* <p>
- * Clients should use this method specifying {@link #JLS13} as the
+ * Clients should use this method specifying {@link #JLS12} as the
* AST level in all cases, even when dealing with source of earlier JDK versions like 1.3 or 1.4.
* </p>
*
@@ -411,7 +411,7 @@ public final class AST {
* <li>the API level is not one of the <code>JLS*</code> level constants</li>
* </ul>
* @deprecated Clients should port their code to use the latest JLS* AST API and call
- * {@link #newAST(int, boolean) AST.newAST(AST.JLS13, false)} instead of using this constructor.
+ * {@link #newAST(int, boolean) AST.newAST(AST.JLS12, false)} instead of using this constructor.
* @since 3.0
*/
public static AST newAST(int level) {
@@ -422,7 +422,7 @@ public final class AST {
* Creates a new Java abstract syntax tree
* (AST) following the specified set of API rules.
* <p>
- * Clients should use this method specifying {@link #JLS13} as the
+ * Clients should use this method specifying {@link #JLS12} as the
* AST level in all cases, even when dealing with source of earlier JDK versions like 1.3 or 1.4.
* </p>
*
@@ -805,7 +805,7 @@ public final class AST {
*
* @see JavaCore#getDefaultOptions()
* @deprecated Clients should port their code to use the latest JLS* AST API and call
- * {@link #newAST(int, boolean) AST.newAST(AST.JLS13, false)} instead of using this constructor.
+ * {@link #newAST(int, boolean) AST.newAST(AST.JLS12, false)} instead of using this constructor.
*/
public AST() {
this(JavaCore.getDefaultOptions());
@@ -950,7 +950,7 @@ public final class AST {
* value type: <code>String</code>)
* @see JavaCore#getDefaultOptions()
* @deprecated Clients should port their code to use the latest JLS* AST API and call
- * {@link #newAST(int, boolean) AST.newAST(AST.JLS13, false)} instead of using this constructor.
+ * {@link #newAST(int, boolean) AST.newAST(AST.JLS12, false)} instead of using this constructor.
*/
public AST(Map options) {
this(JLS2, false);
@@ -3457,5 +3457,13 @@ public final class AST {
throw new UnsupportedOperationException("Operation not supported in JLS2 AST"); //$NON-NLS-1$
}
}
-}
+ /**
+ *
+ * @return previewEnabled
+ * @since 3.19
+ */
+ public boolean isPreviewEnabled() {
+ return this.previewEnabled;
+ }
+}

Back to the top