org.hibernate.validator.internal.engine.messageinterpolation.parser
public Class Token
extends Object
- Class Inheritance
-
- java.lang.Object
- org.hibernate.validator.internal.engine.messageinterpolation.parser.Token
- Imports
- java.util.regex.Matcher, .Pattern
Parsing a message descriptor results in multiple Tokens. Each token
keeps track of its token value and whether the token is a parameter which can
be interpolated.
Note, tokens are not centred around word delimiters, but rather around message parameter and EL expressions.
For example, the message descriptor "must be between {min} and {max}" gets parsed into the tokens 'must be between ',
'{min}', ' and ', '{max}', where the min and max tokens are parameters.
- Author
- Hardy Ferentschik
Field Summary
| Modifier and Type | Field and Description
|
|---|
| private StringBuilder |
|
| private static final Pattern |
|
| private static final Pattern |
|
| private boolean |
|
| private boolean |
|
| private boolean |
|
| private String |
|
Constructor Summary
| Access | Constructor and Description
|
|---|
| public |
|
| public |
|