public MessagePattern parse(String pattern) {
        preParse(pattern);
        parseMessage(0, 0, 0, ArgType.NONE);
        postParse();
        return this;
    }
public MessagePattern parse ( String pattern ) { preParse ( pattern ) ; parseMessage ( 0 , 0 , 0 , ArgType . NONE ) ; postParse ( ) ; return this ; }
Parses a MessageFormat pattern string.
@param pattern a MessageFormat pattern string
@return this
@throws IllegalArgumentException for syntax errors in the pattern string
@throws IndexOutOfBoundsException if certain limits are exceeded
(e.g., argument number too high, argument name too long, etc.)
@throws NumberFormatException if a number could not be parsed