Remove deprecated tokenizers

This commit is contained in:
Clément Fournier
2020-11-03 10:06:11 +01:00
parent 6afb4fb94a
commit 4cae55cf0f
3 changed files with 0 additions and 108 deletions

View File

@ -1,42 +0,0 @@
/**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.cpd;
import java.util.ArrayList;
/**
* Tokenizer implementation for Fortran
*
* @author Romain PELISSE - romain.pelisse@atosorigin.com
*
* @deprecated Was replaced by an {@link AnyTokenizer}. Use {@link FortranLanguage#getTokenizer()} anyway
*/
@Deprecated
public class FortranTokenizer extends AbstractTokenizer implements Tokenizer {
/**
* Creates a new instance of {@link FortranTokenizer}.
*/
public FortranTokenizer() {
this.spanMultipleLinesString = false; // No such thing in Fortran !
// setting markers for "string" in Fortran
this.stringToken = new ArrayList<>();
this.stringToken.add("\'");
// setting markers for 'ignorable character' in Fortran
this.ignorableCharacter = new ArrayList<>();
this.ignorableCharacter.add("(");
this.ignorableCharacter.add(")");
this.ignorableCharacter.add(",");
// setting markers for 'ignorable string' in Fortran
this.ignorableStmt = new ArrayList<>();
this.ignorableStmt.add("do");
this.ignorableStmt.add("while");
this.ignorableStmt.add("end");
this.ignorableStmt.add("if");
// Fortran comment start with an !
this.oneLineCommentChar = '!';
}
}

View File

@ -1,25 +0,0 @@
/**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.cpd;
import java.util.ArrayList;
/**
* @deprecated Replaced by an {@link AnyTokenizer}. Use {@link PerlLanguage#getTokenizer()} anyway
*/
@Deprecated
public class PerlTokenizer extends AbstractTokenizer {
public PerlTokenizer() {
this.stringToken = new ArrayList<>();
this.stringToken.add("\'");
this.stringToken.add("\"");
this.ignorableCharacter = new ArrayList<>();
this.ignorableStmt = new ArrayList<>();
this.spanMultipleLinesString = true;
}
}

View File

@ -1,41 +0,0 @@
/**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.cpd;
import java.util.ArrayList;
/**
* Tokenizer for Ruby.
*
* @author Zev Blut zb@ubit.com
* @deprecated Was replaced by an {@link AnyTokenizer}. Use {@link RubyLanguage#getTokenizer()} anyway
*/
@Deprecated
public class RubyTokenizer extends AbstractTokenizer {
/**
* Creates a new Ruby tokenizer.
*/
public RubyTokenizer() {
// setting markers for "string" in ruby
this.stringToken = new ArrayList<>();
this.stringToken.add("\'");
this.stringToken.add("\"");
// setting markers for 'ignorable character' in Ruby
this.ignorableCharacter = new ArrayList<>();
this.ignorableCharacter.add("{");
this.ignorableCharacter.add("}");
this.ignorableCharacter.add("(");
this.ignorableCharacter.add(")");
this.ignorableCharacter.add(";");
this.ignorableCharacter.add(",");
// setting markers for 'ignorable string' in Ruby
this.ignorableStmt = new ArrayList<>();
this.ignorableStmt.add("while");
this.ignorableStmt.add("do");
this.ignorableStmt.add("end");
}
}