< prev index next >
src/jdk.compiler/share/classes/com/sun/source/util/JavacTask.java
Print this page
rev 53252 : imported patch 8217047
@@ -135,10 +135,25 @@
* @since 1.8
*/
public abstract void removeTaskListener(TaskListener taskListener);
/**
+ * Sets the specified {@linkplain ParameterNameProvider}. It may be used to when
+ * {@link VariablElement#getSimpleName} is called for a method parameter
+ * for which an authoritative name is not found. The given
+ * {@linkplain ParameterNameProvider} may infer a user-friendly name
+ * for the method parameter.
+ *
+ * Setting a new {@linkplain ParameterNameProvider} will clear any previously set
+ * {@linkplain ParameterNameProvider}, which won't be queried any more.
+ *
+ * @param handler the handler.
+ * @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
< prev index next >