forked from phoedos/pmd
Remove deprecated tokenizers
This commit is contained in:
@ -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 = '!';
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
@ -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");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user