Deprecate Initializer and functions

This commit is contained in:
Clément Fournier
2018-11-02 08:11:26 +01:00
parent 8563c802c4
commit 679eaeb4e5
9 changed files with 36 additions and 0 deletions

View File

@ -12,6 +12,7 @@ import org.jaxen.FunctionCallException;
import org.jaxen.SimpleFunctionContext;
import org.jaxen.XPathFunctionContext;
import net.sourceforge.pmd.annotation.InternalApi;
import net.sourceforge.pmd.lang.ast.AbstractNode;
import net.sourceforge.pmd.lang.ast.Node;
import net.sourceforge.pmd.lang.java.ast.ASTCompilationUnit;
@ -24,6 +25,8 @@ import net.sourceforge.pmd.lang.java.ast.Comment;
*
* @author Andy Throgmorton
*/
@InternalApi
@Deprecated
public class GetCommentOnFunction implements Function {
public static void registerSelfInSimpleContext() {

View File

@ -4,6 +4,7 @@
package net.sourceforge.pmd.lang.java.xpath;
import net.sourceforge.pmd.annotation.InternalApi;
import net.sourceforge.pmd.lang.ast.Node;
import net.sourceforge.pmd.lang.ast.xpath.saxon.ElementNode;
@ -12,6 +13,8 @@ import net.sf.saxon.expr.XPathContext;
/**
* Exposes all Java Language specific functions for Saxon use.
*/
@InternalApi
@Deprecated
public final class JavaFunctions {
private JavaFunctions() {

View File

@ -15,6 +15,7 @@ import org.jaxen.FunctionCallException;
import org.jaxen.SimpleFunctionContext;
import org.jaxen.XPathFunctionContext;
import net.sourceforge.pmd.annotation.InternalApi;
import net.sourceforge.pmd.lang.ast.Node;
import net.sourceforge.pmd.lang.java.ast.ASTAnyTypeDeclaration;
import net.sourceforge.pmd.lang.java.ast.MethodLikeNode;
@ -32,6 +33,8 @@ import net.sourceforge.pmd.lang.java.metrics.api.JavaOperationMetricKey;
* @author Clément Fournier
* @since 6.0.0
*/
@InternalApi
@Deprecated
public class MetricFunction implements Function {

View File

@ -12,10 +12,14 @@ import org.jaxen.FunctionCallException;
import org.jaxen.SimpleFunctionContext;
import org.jaxen.XPathFunctionContext;
import net.sourceforge.pmd.annotation.InternalApi;
import net.sourceforge.pmd.lang.ast.Node;
import net.sourceforge.pmd.lang.java.ast.TypeNode;
import net.sourceforge.pmd.lang.java.typeresolution.TypeHelper;
@InternalApi
@Deprecated
public class TypeIsExactlyFunction implements Function {
public static void registerSelfInSimpleContext() {

View File

@ -12,10 +12,14 @@ import org.jaxen.FunctionCallException;
import org.jaxen.SimpleFunctionContext;
import org.jaxen.XPathFunctionContext;
import net.sourceforge.pmd.annotation.InternalApi;
import net.sourceforge.pmd.lang.ast.Node;
import net.sourceforge.pmd.lang.java.ast.TypeNode;
import net.sourceforge.pmd.lang.java.typeresolution.TypeHelper;
@InternalApi
@Deprecated
public class TypeIsFunction implements Function {
public static void registerSelfInSimpleContext() {