< prev index next >

src/jdk.compiler/share/classes/com/sun/source/util/JavacTask.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, 2014, 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
*** 27,37 **** import java.io.IOException; import javax.annotation.processing.ProcessingEnvironment; import javax.lang.model.element.Element; - import javax.lang.model.element.VariableElement; import javax.lang.model.type.TypeMirror; import javax.lang.model.util.Elements; import javax.lang.model.util.Types; import javax.tools.JavaCompiler.CompilationTask; import javax.tools.JavaFileObject; --- 27,36 ----
*** 136,166 **** * @since 1.8 */ public abstract void removeTaskListener(TaskListener taskListener); /** - * Sets the specified {@link ParameterNameProvider}. It may be used when - * {@link VariableElement#getSimpleName()} is called for a method parameter - * for which an authoritative name is not found. The given - * {@code ParameterNameProvider} may infer a user-friendly name - * for the method parameter. - * - * Setting a new {@code ParameterNameProvider} will clear any previously set - * {@code ParameterNameProvider}, which won't be queried any more. - * - * When no {@code ParameterNameProvider} is set, or when it returns null from - * {@link ParameterNameProvider#getParameterName(javax.lang.model.element.VariableElement)}, - * an automatically synthesized name is returned from {@code VariableElement.getSimpleName()}. - * - * @implSpec The default implementation of this method does nothing. - * - * @param provider the provider. - * @since 13 - */ - public void setParameterNameProvider(ParameterNameProvider provider) {} - - /** * Returns a type mirror of the tree node determined by the specified path. * This method has been superceded by methods on * {@link com.sun.source.util.Trees Trees}. * * @param path the path --- 135,144 ----
< prev index next >