src/java.compiler/share/classes/javax/annotation/processing/ProcessingEnvironment.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
129 * |
129 * |
130 * @return the current locale or {@code null} if no locale is in |
130 * @return the current locale or {@code null} if no locale is in |
131 * effect |
131 * effect |
132 */ |
132 */ |
133 Locale getLocale(); |
133 Locale getLocale(); |
|
134 |
|
135 /** |
|
136 * Returns {@code true} if <em>preview features</em> are enabled |
|
137 * and {@code false} otherwise. |
|
138 * @return whether or not preview features are enabled |
|
139 * |
|
140 * @implSpec The default implementation of this method returns |
|
141 * {@code false}. |
|
142 * |
|
143 * @since 13 |
|
144 */ |
|
145 default boolean isPreviewEnabled() { |
|
146 return false; |
|
147 } |
134 } |
148 } |