View Javadoc

    1   package net.sourceforge.pmd.cpd;
    2
    3   import java.util.ArrayList;
    4
    5   /**
    6    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
    7    */
    8   public class EcmascriptTokenizer extends AbstractTokenizer {
    9       public EcmascriptTokenizer() {
    10          // setting markers for "string" in javascript
    11          this.stringToken = new ArrayList<String>();
    12          this.stringToken.add( "\'" );
    13          this.stringToken.add( "\"" );
    14
    15          // setting markers for 'ignorable character' in javascript
    16          this.ignorableCharacter = new ArrayList<String>();
    17          this.ignorableCharacter.add( ";" );
    18
    19          // setting markers for 'ignorable string' in javascript
    20          this.ignorableStmt = new ArrayList<String>();
    21      }
    22  }