< prev index next >
src/java.compiler/share/classes/javax/annotation/processing/ProcessingEnvironment.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -129,6 +129,20 @@
*
* @return the current locale or {@code null} if no locale is in
* effect
*/
Locale getLocale();
+
+ /**
+ * Returns {@code true} if <em>preview features</em> are enabled
+ * and {@code false} otherwise.
+ * @return whether or not preview features are enabled
+ *
+ * @implSpec The default implementation of this method returns
+ * {@code false}.
+ *
+ * @since 13
+ */
+ default boolean isPreviewEnabled() {
+ return false;
+ }
}
< prev index next >