src/java.compiler/share/classes/javax/annotation/processing/ProcessingEnvironment.java
changeset 54539 bdbfa0115fc6
parent 47216 71c04702a3d5
equal deleted inserted replaced
54538:ef331769d4ab 54539:bdbfa0115fc6
     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 }