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

Examples of org.jboss.ide.eclipse.freemarker.lang.ParserUtils.matches()


    /* first variable name */
    parser.consumeIdentifierOrStringLiteral();
    parser.consumeWhiteSpace();
    /* lack of an equals sign at this position means that this is a nesting form of assign */
    return Boolean.valueOf(parser.isAtEndOfInput()
        || !parser.matches(LexicalConstants.EQUALS, false));

  }

  private AssignmentEndDirective endDirective;

View Full Code Here


    }
  }

  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$
View Full Code Here

  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$
View Full Code Here

    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
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.