Language or Pattern context.
Example:
@Subst("Tahoma")
final String font = new JLabel().getFont().getName();
@Language("HTML")
String message = "<html><span style='font: " + font + "; font-size:smaller'>"
+ ... + "</span></html>";
Here the parser assumes that when font appears in the concatenation its value is "Tahoma",
so it can continue parsing the concatenation.
Language, Pattern
| Modifier and Type | Method and Description |
|---|---|
| public String |
| value | back to summary |
|---|---|
| public String value() | |