/** * Returns true and moves to the next token if the current token matches the open list token. * * @return True if the current token matches the open list token, false otherwise. */ protected boolean matchesOpenList() { if (currentToken == getWktVariant().getOpenList()) { nextToken(); return true; } return false; }
/** * Returns true and moves to the next token if the current token matches the close list token. * * @return True if the current token matches the close list token, false otherwise. */ protected boolean matchesCloseList() { if (currentToken == getWktVariant().getCloseList()) { nextToken(); return true; } return false; }
/** * Returns true and moves to the next token if the current token matches the element separator token. * * @return True if the current token matches the element separator token, false otherwise. */ protected boolean matchesElementSeparator() { if (currentToken == getWktVariant().getElementSeparator()) { nextToken(); return true; } return false; }