Package org.eclipse.php.internal.core.documentModel.parser.php5

Examples of org.eclipse.php.internal.core.documentModel.parser.php5.PhpLexer.initialize()


    // if there are no tokens in the trimmed text return true
    if (0 == trimmedText.length()) {
      return true;
    } else {
      Scanner scanner = new PhpLexer(new StringReader(trimmedText));
      scanner.initialize(PhpLexer.ST_PHP_IN_SCRIPTING);
      try {
        return scanner.yylex() == null;
      } catch (IOException e) {
        return false;
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.