forked from phoedos/pmd
Deprecate tokManagers for more module
This commit is contained in:
@ -78,6 +78,11 @@ implementations, and their corresponding Parser if it exists (in the same packag
|
|||||||
* {% jdoc visualforce::lang.vf.VfTokenManager %}
|
* {% jdoc visualforce::lang.vf.VfTokenManager %}
|
||||||
* {% jdoc plsql::lang.plsql.PLSQLTokenManager %}
|
* {% jdoc plsql::lang.plsql.PLSQLTokenManager %}
|
||||||
* {% jdoc jsp::lang.jsp.JspTokenManager %}
|
* {% jdoc jsp::lang.jsp.JspTokenManager %}
|
||||||
|
* {% jdoc modelica::lang.modelica.ModelicaTokenManager %}
|
||||||
|
* {% jdoc cpp::lang.cpp.CppTokenManager %}
|
||||||
|
* {% jdoc javascript::lang.ecmascript5.Ecmascript5TokenManager %}
|
||||||
|
* {% jdoc matlab::lang.matlab.MatlabTokenManager %}
|
||||||
|
* {% jdoc objectivec::lang.objectivec.ObjectiveCTokenManager %}
|
||||||
|
|
||||||
|
|
||||||
### External Contributions
|
### External Contributions
|
||||||
|
@ -6,12 +6,17 @@ package net.sourceforge.pmd.lang.cpp;
|
|||||||
|
|
||||||
import java.io.Reader;
|
import java.io.Reader;
|
||||||
|
|
||||||
|
import net.sourceforge.pmd.annotation.InternalApi;
|
||||||
import net.sourceforge.pmd.lang.TokenManager;
|
import net.sourceforge.pmd.lang.TokenManager;
|
||||||
import net.sourceforge.pmd.lang.cpp.ast.CppParserTokenManager;
|
import net.sourceforge.pmd.lang.cpp.ast.CppParserTokenManager;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* C++ Token Manager implementation.
|
* C++ Token Manager implementation.
|
||||||
|
*
|
||||||
|
* @deprecated This is internal API
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
|
@InternalApi
|
||||||
public class CppTokenManager implements TokenManager {
|
public class CppTokenManager implements TokenManager {
|
||||||
private final CppParserTokenManager tokenManager;
|
private final CppParserTokenManager tokenManager;
|
||||||
|
|
||||||
|
@ -6,13 +6,18 @@ package net.sourceforge.pmd.lang.ecmascript5;
|
|||||||
|
|
||||||
import java.io.Reader;
|
import java.io.Reader;
|
||||||
|
|
||||||
|
import net.sourceforge.pmd.annotation.InternalApi;
|
||||||
import net.sourceforge.pmd.lang.TokenManager;
|
import net.sourceforge.pmd.lang.TokenManager;
|
||||||
import net.sourceforge.pmd.lang.ast.SimpleCharStream;
|
import net.sourceforge.pmd.lang.ast.SimpleCharStream;
|
||||||
import net.sourceforge.pmd.lang.ecmascript5.ast.Ecmascript5ParserTokenManager;
|
import net.sourceforge.pmd.lang.ecmascript5.ast.Ecmascript5ParserTokenManager;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ecmascript 5 Token Manager implementation.
|
* Ecmascript 5 Token Manager implementation.
|
||||||
|
*
|
||||||
|
* @deprecated This is internal API
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
|
@InternalApi
|
||||||
public class Ecmascript5TokenManager implements TokenManager {
|
public class Ecmascript5TokenManager implements TokenManager {
|
||||||
private final Ecmascript5ParserTokenManager tokenManager;
|
private final Ecmascript5ParserTokenManager tokenManager;
|
||||||
|
|
||||||
|
@ -6,13 +6,18 @@ package net.sourceforge.pmd.lang.matlab;
|
|||||||
|
|
||||||
import java.io.Reader;
|
import java.io.Reader;
|
||||||
|
|
||||||
|
import net.sourceforge.pmd.annotation.InternalApi;
|
||||||
import net.sourceforge.pmd.lang.TokenManager;
|
import net.sourceforge.pmd.lang.TokenManager;
|
||||||
import net.sourceforge.pmd.lang.ast.SimpleCharStream;
|
import net.sourceforge.pmd.lang.ast.SimpleCharStream;
|
||||||
import net.sourceforge.pmd.lang.matlab.ast.MatlabParserTokenManager;
|
import net.sourceforge.pmd.lang.matlab.ast.MatlabParserTokenManager;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Matlab Token Manager implementation.
|
* Matlab Token Manager implementation.
|
||||||
|
*
|
||||||
|
* @deprecated This is internal API
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
|
@InternalApi
|
||||||
public class MatlabTokenManager implements TokenManager {
|
public class MatlabTokenManager implements TokenManager {
|
||||||
private final MatlabParserTokenManager tokenManager;
|
private final MatlabParserTokenManager tokenManager;
|
||||||
|
|
||||||
|
@ -8,7 +8,9 @@ import java.io.Reader;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
import net.sourceforge.pmd.annotation.InternalApi;
|
||||||
import net.sourceforge.pmd.lang.AbstractParser;
|
import net.sourceforge.pmd.lang.AbstractParser;
|
||||||
|
import net.sourceforge.pmd.lang.LanguageVersionHandler;
|
||||||
import net.sourceforge.pmd.lang.ParserOptions;
|
import net.sourceforge.pmd.lang.ParserOptions;
|
||||||
import net.sourceforge.pmd.lang.TokenManager;
|
import net.sourceforge.pmd.lang.TokenManager;
|
||||||
import net.sourceforge.pmd.lang.ast.AbstractTokenManager;
|
import net.sourceforge.pmd.lang.ast.AbstractTokenManager;
|
||||||
@ -16,7 +18,11 @@ import net.sourceforge.pmd.lang.ast.Node;
|
|||||||
import net.sourceforge.pmd.lang.ast.ParseException;
|
import net.sourceforge.pmd.lang.ast.ParseException;
|
||||||
import net.sourceforge.pmd.lang.ast.SimpleCharStream;
|
import net.sourceforge.pmd.lang.ast.SimpleCharStream;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated This is internal API, use {@link LanguageVersionHandler#getParser(ParserOptions)}.
|
||||||
|
*/
|
||||||
|
@InternalApi
|
||||||
|
@Deprecated
|
||||||
public class ModelicaParser extends AbstractParser {
|
public class ModelicaParser extends AbstractParser {
|
||||||
public ModelicaParser(final ParserOptions parserOptions) {
|
public ModelicaParser(final ParserOptions parserOptions) {
|
||||||
super(parserOptions);
|
super(parserOptions);
|
||||||
|
@ -6,13 +6,20 @@ package net.sourceforge.pmd.lang.modelica;
|
|||||||
|
|
||||||
import java.io.Reader;
|
import java.io.Reader;
|
||||||
|
|
||||||
|
import net.sourceforge.pmd.annotation.InternalApi;
|
||||||
import net.sourceforge.pmd.lang.TokenManager;
|
import net.sourceforge.pmd.lang.TokenManager;
|
||||||
import net.sourceforge.pmd.lang.ast.AbstractTokenManager;
|
import net.sourceforge.pmd.lang.ast.AbstractTokenManager;
|
||||||
import net.sourceforge.pmd.lang.ast.SimpleCharStream;
|
import net.sourceforge.pmd.lang.ast.SimpleCharStream;
|
||||||
import net.sourceforge.pmd.lang.modelica.ast.ModelicaParserTokenManager;
|
import net.sourceforge.pmd.lang.modelica.ast.ModelicaParserTokenManager;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated This is internal API
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
|
@InternalApi
|
||||||
public class ModelicaTokenManager implements TokenManager {
|
public class ModelicaTokenManager implements TokenManager {
|
||||||
|
|
||||||
private final ModelicaParserTokenManager modelicaParserTokenManager;
|
private final ModelicaParserTokenManager modelicaParserTokenManager;
|
||||||
|
|
||||||
public ModelicaTokenManager(final Reader source) {
|
public ModelicaTokenManager(final Reader source) {
|
||||||
|
@ -6,13 +6,18 @@ package net.sourceforge.pmd.lang.objectivec;
|
|||||||
|
|
||||||
import java.io.Reader;
|
import java.io.Reader;
|
||||||
|
|
||||||
|
import net.sourceforge.pmd.annotation.InternalApi;
|
||||||
import net.sourceforge.pmd.lang.TokenManager;
|
import net.sourceforge.pmd.lang.TokenManager;
|
||||||
import net.sourceforge.pmd.lang.ast.SimpleCharStream;
|
import net.sourceforge.pmd.lang.ast.SimpleCharStream;
|
||||||
import net.sourceforge.pmd.lang.objectivec.ast.ObjectiveCParserTokenManager;
|
import net.sourceforge.pmd.lang.objectivec.ast.ObjectiveCParserTokenManager;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Objective-C Token Manager implementation.
|
* Objective-C Token Manager implementation.
|
||||||
|
*
|
||||||
|
* @deprecated This is internal API
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
|
@InternalApi
|
||||||
public class ObjectiveCTokenManager implements TokenManager {
|
public class ObjectiveCTokenManager implements TokenManager {
|
||||||
private final ObjectiveCParserTokenManager tokenManager;
|
private final ObjectiveCParserTokenManager tokenManager;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user