@ -12,15 +12,19 @@ import net.sourceforge.pmd.annotation.InternalApi;
|
|||||||
import net.sourceforge.pmd.reporting.GlobalAnalysisListener;
|
import net.sourceforge.pmd.reporting.GlobalAnalysisListener;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gives access to package private methods.
|
* Internal API.
|
||||||
|
*
|
||||||
|
* <p>Acts as a bridge between outer parts of PMD and the restricted access
|
||||||
|
* internal API of this package.
|
||||||
|
*
|
||||||
|
* <p><b>None of this is published API, and compatibility can be broken anytime!</b>
|
||||||
|
* Use this only at your own risk.
|
||||||
*
|
*
|
||||||
* @apiNote Internal API
|
* @apiNote Internal API
|
||||||
*/
|
*/
|
||||||
@InternalApi
|
@InternalApi
|
||||||
public final class InternalApiBridge {
|
public final class InternalApiBridge {
|
||||||
private InternalApiBridge() {
|
private InternalApiBridge() {}
|
||||||
// utility class
|
|
||||||
}
|
|
||||||
|
|
||||||
public static GlobalAnalysisListener newListener(Formatter formatter, Project project) throws IOException {
|
public static GlobalAnalysisListener newListener(Formatter formatter, Project project) throws IOException {
|
||||||
return formatter.newListener(project);
|
return formatter.newListener(project);
|
||||||
|
@ -8,13 +8,19 @@ import net.sourceforge.pmd.annotation.InternalApi;
|
|||||||
import net.sourceforge.pmd.lang.apex.ApexLanguageProperties;
|
import net.sourceforge.pmd.lang.apex.ApexLanguageProperties;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Internal API.
|
||||||
|
*
|
||||||
|
* <p>Acts as a bridge between outer parts of PMD and the restricted access
|
||||||
|
* internal API of this package.
|
||||||
|
*
|
||||||
|
* <p><b>None of this is published API, and compatibility can be broken anytime!</b>
|
||||||
|
* Use this only at your own risk.
|
||||||
|
*
|
||||||
* @apiNote Internal API
|
* @apiNote Internal API
|
||||||
*/
|
*/
|
||||||
@InternalApi
|
@InternalApi
|
||||||
public final class InternalApiBridge {
|
public final class InternalApiBridge {
|
||||||
private InternalApiBridge() {
|
private InternalApiBridge() {}
|
||||||
// utility class
|
|
||||||
}
|
|
||||||
|
|
||||||
public static ApexMultifileAnalysis createApexMultiFileAnalysis(ApexLanguageProperties properties) {
|
public static ApexMultifileAnalysis createApexMultiFileAnalysis(ApexLanguageProperties properties) {
|
||||||
return new ApexMultifileAnalysis(properties);
|
return new ApexMultifileAnalysis(properties);
|
||||||
|
@ -8,15 +8,19 @@ import net.sourceforge.pmd.annotation.InternalApi;
|
|||||||
import net.sourceforge.pmd.reporting.FileAnalysisListener;
|
import net.sourceforge.pmd.reporting.FileAnalysisListener;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Makes package private methods available for other packages. This is only internal.
|
* Internal API.
|
||||||
|
*
|
||||||
|
* <p>Acts as a bridge between outer parts of PMD and the restricted access
|
||||||
|
* internal API of this package.
|
||||||
|
*
|
||||||
|
* <p><b>None of this is published API, and compatibility can be broken anytime!</b>
|
||||||
|
* Use this only at your own risk.
|
||||||
*
|
*
|
||||||
* @apiNote Internal API
|
* @apiNote Internal API
|
||||||
*/
|
*/
|
||||||
@InternalApi
|
@InternalApi
|
||||||
public final class InternalApiBridge {
|
public final class InternalApiBridge {
|
||||||
private InternalApiBridge() {
|
private InternalApiBridge() {}
|
||||||
// utility class
|
|
||||||
}
|
|
||||||
|
|
||||||
public static Rule getRule(RuleContext ruleContext) {
|
public static Rule getRule(RuleContext ruleContext) {
|
||||||
return ruleContext.getRule();
|
return ruleContext.getRule();
|
||||||
|
@ -15,6 +15,14 @@ import net.sourceforge.pmd.util.log.PmdReporter;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Internal API.
|
* Internal API.
|
||||||
|
*
|
||||||
|
* <p>Acts as a bridge between outer parts of PMD and the restricted access
|
||||||
|
* internal API of this package.
|
||||||
|
*
|
||||||
|
* <p><b>None of this is published API, and compatibility can be broken anytime!</b>
|
||||||
|
* Use this only at your own risk.
|
||||||
|
*
|
||||||
|
* @apiNote Internal API
|
||||||
*/
|
*/
|
||||||
@InternalApi
|
@InternalApi
|
||||||
public final class InternalApiBridge {
|
public final class InternalApiBridge {
|
||||||
|
@ -35,7 +35,9 @@ import net.sourceforge.pmd.lang.java.types.internal.infer.TypeInferenceLogger;
|
|||||||
import net.sourceforge.pmd.util.AssertionUtil;
|
import net.sourceforge.pmd.util.AssertionUtil;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Acts as a bridge between outer parts of PMD and the restricted access
|
* Internal API.
|
||||||
|
*
|
||||||
|
* <p>Acts as a bridge between outer parts of PMD and the restricted access
|
||||||
* internal API of this package.
|
* internal API of this package.
|
||||||
*
|
*
|
||||||
* <p><b>None of this is published API, and compatibility can be broken anytime!</b>
|
* <p><b>None of this is published API, and compatibility can be broken anytime!</b>
|
||||||
@ -43,14 +45,11 @@ import net.sourceforge.pmd.util.AssertionUtil;
|
|||||||
*
|
*
|
||||||
* @author Clément Fournier
|
* @author Clément Fournier
|
||||||
* @since 7.0.0
|
* @since 7.0.0
|
||||||
|
* @apiNote Internal API
|
||||||
*/
|
*/
|
||||||
@InternalApi
|
@InternalApi
|
||||||
public final class InternalApiBridge {
|
public final class InternalApiBridge {
|
||||||
|
private InternalApiBridge() {}
|
||||||
|
|
||||||
private InternalApiBridge() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public static ASTVariableId newVarId(String image) {
|
public static ASTVariableId newVarId(String image) {
|
||||||
|
@ -7,13 +7,19 @@ package net.sourceforge.pmd.lang.java.types;
|
|||||||
import net.sourceforge.pmd.annotation.InternalApi;
|
import net.sourceforge.pmd.annotation.InternalApi;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Internal API.
|
||||||
|
*
|
||||||
|
* <p>Acts as a bridge between outer parts of PMD and the restricted access
|
||||||
|
* internal API of this package.
|
||||||
|
*
|
||||||
|
* <p><b>None of this is published API, and compatibility can be broken anytime!</b>
|
||||||
|
* Use this only at your own risk.
|
||||||
|
*
|
||||||
* @apiNote Internal API
|
* @apiNote Internal API
|
||||||
*/
|
*/
|
||||||
@InternalApi
|
@InternalApi
|
||||||
public final class InternalApiBridge {
|
public final class InternalApiBridge {
|
||||||
private InternalApiBridge() {
|
private InternalApiBridge() {}
|
||||||
// internal api
|
|
||||||
}
|
|
||||||
|
|
||||||
public static boolean isSameTypeInInference(JTypeMirror t, JTypeMirror s) {
|
public static boolean isSameTypeInInference(JTypeMirror t, JTypeMirror s) {
|
||||||
return TypeOps.isSameTypeInInference(t, s);
|
return TypeOps.isSameTypeInInference(t, s);
|
||||||
|
@ -14,13 +14,19 @@ import net.sourceforge.pmd.lang.java.types.ast.internal.RegularCtx;
|
|||||||
import net.sourceforge.pmd.util.AssertionUtil;
|
import net.sourceforge.pmd.util.AssertionUtil;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Internal API.
|
||||||
|
*
|
||||||
|
* <p>Acts as a bridge between outer parts of PMD and the restricted access
|
||||||
|
* internal API of this package.
|
||||||
|
*
|
||||||
|
* <p><b>None of this is published API, and compatibility can be broken anytime!</b>
|
||||||
|
* Use this only at your own risk.
|
||||||
|
*
|
||||||
* @apiNote Internal API
|
* @apiNote Internal API
|
||||||
*/
|
*/
|
||||||
@InternalApi
|
@InternalApi
|
||||||
public final class InternalApiBridge {
|
public final class InternalApiBridge {
|
||||||
private InternalApiBridge() {
|
private InternalApiBridge() {}
|
||||||
// utility
|
|
||||||
}
|
|
||||||
|
|
||||||
public static boolean canGiveContextToPoly(ExprContext exprContext, boolean lambdaOrMethodRef) {
|
public static boolean canGiveContextToPoly(ExprContext exprContext, boolean lambdaOrMethodRef) {
|
||||||
return exprContext.canGiveContextToPoly(lambdaOrMethodRef);
|
return exprContext.canGiveContextToPoly(lambdaOrMethodRef);
|
||||||
|
@ -8,13 +8,19 @@ import net.sourceforge.pmd.annotation.InternalApi;
|
|||||||
import net.sourceforge.pmd.lang.ast.impl.javacc.JavaccTokenDocument;
|
import net.sourceforge.pmd.lang.ast.impl.javacc.JavaccTokenDocument;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Internal API.
|
||||||
|
*
|
||||||
|
* <p>Acts as a bridge between outer parts of PMD and the restricted access
|
||||||
|
* internal API of this package.
|
||||||
|
*
|
||||||
|
* <p><b>None of this is published API, and compatibility can be broken anytime!</b>
|
||||||
|
* Use this only at your own risk.
|
||||||
|
*
|
||||||
* @apiNote Internal API
|
* @apiNote Internal API
|
||||||
*/
|
*/
|
||||||
@InternalApi
|
@InternalApi
|
||||||
public final class InternalApiBridge {
|
public final class InternalApiBridge {
|
||||||
private InternalApiBridge() {
|
private InternalApiBridge() {}
|
||||||
// internal
|
|
||||||
}
|
|
||||||
|
|
||||||
public static JavaccTokenDocument.TokenDocumentBehavior getJspTokenBehavior() {
|
public static JavaccTokenDocument.TokenDocumentBehavior getJspTokenBehavior() {
|
||||||
return JspParser.TOKEN_BEHAVIOR;
|
return JspParser.TOKEN_BEHAVIOR;
|
||||||
|
@ -10,6 +10,17 @@ import net.sourceforge.pmd.lang.modelica.resolver.ModelicaScope;
|
|||||||
import net.sourceforge.pmd.lang.modelica.resolver.internal.ResolutionContext;
|
import net.sourceforge.pmd.lang.modelica.resolver.internal.ResolutionContext;
|
||||||
import net.sourceforge.pmd.lang.modelica.resolver.internal.Watchdog;
|
import net.sourceforge.pmd.lang.modelica.resolver.internal.Watchdog;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Internal API.
|
||||||
|
*
|
||||||
|
* <p>Acts as a bridge between outer parts of PMD and the restricted access
|
||||||
|
* internal API of this package.
|
||||||
|
*
|
||||||
|
* <p><b>None of this is published API, and compatibility can be broken anytime!</b>
|
||||||
|
* Use this only at your own risk.
|
||||||
|
*
|
||||||
|
* @apiNote Internal API
|
||||||
|
*/
|
||||||
@InternalApi
|
@InternalApi
|
||||||
public final class InternalApiBridge {
|
public final class InternalApiBridge {
|
||||||
private InternalApiBridge() {}
|
private InternalApiBridge() {}
|
||||||
|
@ -11,6 +11,17 @@ import net.sourceforge.pmd.lang.modelica.ast.Visibility;
|
|||||||
import net.sourceforge.pmd.lang.modelica.resolver.internal.ResolutionContext;
|
import net.sourceforge.pmd.lang.modelica.resolver.internal.ResolutionContext;
|
||||||
import net.sourceforge.pmd.lang.modelica.resolver.internal.Watchdog;
|
import net.sourceforge.pmd.lang.modelica.resolver.internal.Watchdog;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Internal API.
|
||||||
|
*
|
||||||
|
* <p>Acts as a bridge between outer parts of PMD and the restricted access
|
||||||
|
* internal API of this package.
|
||||||
|
*
|
||||||
|
* <p><b>None of this is published API, and compatibility can be broken anytime!</b>
|
||||||
|
* Use this only at your own risk.
|
||||||
|
*
|
||||||
|
* @apiNote Internal API
|
||||||
|
*/
|
||||||
@InternalApi
|
@InternalApi
|
||||||
public final class InternalApiBridge {
|
public final class InternalApiBridge {
|
||||||
private InternalApiBridge() {}
|
private InternalApiBridge() {}
|
||||||
|
@ -10,17 +10,20 @@ import net.sourceforge.pmd.lang.symboltable.NameDeclaration;
|
|||||||
import net.sourceforge.pmd.lang.symboltable.Scope;
|
import net.sourceforge.pmd.lang.symboltable.Scope;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Acts as a bridge between outer parts (e.g. symbol table) and the restricted
|
* Internal API.
|
||||||
* access internal API of this package.
|
*
|
||||||
*
|
* <p>Acts as a bridge between outer parts of PMD and the restricted access
|
||||||
* @apiNote This is internal API.
|
* internal API of this package.
|
||||||
|
*
|
||||||
|
* <p><b>None of this is published API, and compatibility can be broken anytime!</b>
|
||||||
|
* Use this only at your own risk.
|
||||||
|
*
|
||||||
|
* @apiNote Internal API
|
||||||
*/
|
*/
|
||||||
@InternalApi
|
@InternalApi
|
||||||
public final class InternalApiBridge {
|
public final class InternalApiBridge {
|
||||||
|
|
||||||
private InternalApiBridge() {
|
private InternalApiBridge() {}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void setScope(PLSQLNode node, Scope decl) {
|
public static void setScope(PLSQLNode node, Scope decl) {
|
||||||
((AbstractPLSQLNode) node).setScope(decl);
|
((AbstractPLSQLNode) node).setScope(decl);
|
||||||
|
@ -8,14 +8,19 @@ import net.sourceforge.pmd.annotation.InternalApi;
|
|||||||
import net.sourceforge.pmd.lang.vf.DataType;
|
import net.sourceforge.pmd.lang.vf.DataType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is internal API, and can be changed at any time.
|
* Internal API.
|
||||||
|
*
|
||||||
|
* <p>Acts as a bridge between outer parts of PMD and the restricted access
|
||||||
|
* internal API of this package.
|
||||||
|
*
|
||||||
|
* <p><b>None of this is published API, and compatibility can be broken anytime!</b>
|
||||||
|
* Use this only at your own risk.
|
||||||
|
*
|
||||||
|
* @apiNote Internal API
|
||||||
*/
|
*/
|
||||||
@InternalApi
|
@InternalApi
|
||||||
public final class InternalApiBridge {
|
public final class InternalApiBridge {
|
||||||
|
private InternalApiBridge() {}
|
||||||
private InternalApiBridge() {
|
|
||||||
// utility class
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void setDataType(VfTypedNode node, DataType dataType) {
|
public static void setDataType(VfTypedNode node, DataType dataType) {
|
||||||
((AbstractVFDataNode) node).setDataType(dataType);
|
((AbstractVFDataNode) node).setDataType(dataType);
|
||||||
|
Reference in New Issue
Block a user