dk.brics.servletvalidator.balancing
Class StartEndParenthesisModel
java.lang.Object
dk.brics.servletvalidator.balancing.StartEndParenthesisModel
- All Implemented Interfaces:
- ParenthesisModel
public class StartEndParenthesisModel
- extends Object
- implements ParenthesisModel
A parenthesismodel where < is the start parenthesis and /> and </ are end parentheses
- Author:
- schwarz
|
Method Summary |
boolean |
isEndParanthesis(Terminal t)
Returns whether this terminal is an end parantethis as defined in the article [KiMø] section 3.1, however
also considers "/>" an end parenthesis to support short tag form. |
boolean |
isStartParanthesis(Terminal t)
Returns whether this terminal is a start parantethis as defined in [KiMø] section 3.1. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StartEndParenthesisModel
public StartEndParenthesisModel()
isEndParanthesis
public boolean isEndParanthesis(Terminal t)
- Returns whether this terminal is an end parantethis as defined in the article [KiMø] section 3.1, however
also considers "/>" an end parenthesis to support short tag form.
Can only be expected to work after
ParenthesisVisitor has been run
on the grammar.
- Specified by:
isEndParanthesis in interface ParenthesisModel
- Returns:
isStartParanthesis
public boolean isStartParanthesis(Terminal t)
- Returns whether this terminal is a start parantethis as defined in [KiMø] section 3.1.
- Specified by:
isStartParanthesis in interface ParenthesisModel
- Returns:
Copyright © 2008 Mathias Schwarz.