Package org.jboss.ide.eclipse.freemarker.lang

Examples of org.jboss.ide.eclipse.freemarker.lang.ParserUtils$ParseException


    parser = new ParserUtils(""); //$NON-NLS-1$
    assertEquals(true, parser.isAtEndOfInput());
  }

  public void testMatch() throws ParseException {
    ParserUtils parser = new ParserUtils("assign"); //$NON-NLS-1$
    assertEquals(6, parser.match("assign")); //$NON-NLS-1$
    assertEquals("assign", parser.getLastToken()); //$NON-NLS-1$

    parser = new ParserUtils("\\x "); //$NON-NLS-1$
    try {
      parser.consumeEscapedChar();
      fail("ParseException expected"); //$NON-NLS-1$
    } catch (ParseException expected) {
    }
  }
View Full Code Here


    } catch (ParseException expected) {
    }
  }

  public void testMatches() throws ParseException {
    ParserUtils parser = new ParserUtils("assign"); //$NON-NLS-1$
    assertEquals(true, parser.matches('a', true));

    parser = new ParserUtils("assign"); //$NON-NLS-1$
    assertEquals(false, parser.matches('b', true));

    parser = new ParserUtils(""); //$NON-NLS-1$
    try {
      parser.matches('a', true);
      fail("ParseException expected"); //$NON-NLS-1$
    } catch (ParseException expected) {
    }

  }
View Full Code Here

TOP

Related Classes of org.jboss.ide.eclipse.freemarker.lang.ParserUtils$ParseException

Copyright © 2018 www.massapicom. 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.