< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/processing/JavacProcessingEnvironment.java

Print this page

        

*** 1,7 **** /* ! * 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 --- 1,7 ---- /* ! * Copyright (c) 2005, 2018, 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
*** 186,200 **** private final Completer initialCompleter; private final Check chk; private final Context context; - /** - * Support for preview language features. - */ - private final Preview preview; - /** Get the JavacProcessingEnvironment instance for this context. */ public static JavacProcessingEnvironment instance(Context context) { JavacProcessingEnvironment instance = context.get(JavacProcessingEnvironment.class); if (instance == null) instance = new JavacProcessingEnvironment(context); --- 186,195 ----
*** 239,249 **** dcfh = DeferredCompletionFailureHandler.instance(context); names = Names.instance(context); enter = Enter.instance(context); initialCompleter = ClassFinder.instance(context).getCompleter(); chk = Check.instance(context); - preview = Preview.instance(context); initProcessorLoader(); } public void setProcessors(Iterable<? extends Processor> processors) { Assert.checkNull(discoveredProcs); --- 234,243 ----
*** 1679,1693 **** @DefinedBy(Api.ANNOTATION_PROCESSING) public Locale getLocale() { return messages.getCurrentLocale(); } - @DefinedBy(Api.ANNOTATION_PROCESSING) - public boolean isPreviewEnabled() { - return preview.isEnabled(); - } - public Set<Symbol.PackageSymbol> getSpecifiedPackages() { return specifiedPackages; } public static final Pattern noMatches = Pattern.compile("(\\P{all})+"); --- 1673,1682 ----
< prev index next >