public class Holder extends Object
Placeholder template parser, thead safe. When syntax errors are found in the directive, `lax` mode to log as warn and treat as plain text, `strict` mode to throw exceptions
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
Holder() |
| Modifier and Type | Method and Description |
|---|---|
static Gene |
parse(boolean lax,
String txt)
Parse placeholder template.
|
static Gene |
parse(boolean lax,
String txt,
String pre,
String suf)
Parse placeholder template.
|
static Gene |
parse(boolean lax,
String txt,
String pre,
String suf,
String esc)
Parse placeholder template.
|
static Gene |
parse(String txt)
Parse placeholder template, strict mode.
|
static Gene |
parse(String txt,
String pre,
String suf)
Parse placeholder template, strict mode.
|
static Gene |
parse(String txt,
String pre,
String suf,
String esc)
Parse placeholder template, strict mode.
|
@Contract(value="null->null;!null->!null") public static Gene parse(String txt)
txt - text to parseConst.TKN$VAR_PRE,
Const.TKN$VAR_SUF,
Const.TKN$VAR_ESC@Contract(value="_,null->null;_,!null->!null") public static Gene parse(boolean lax, String txt)
lax - lax mode (not strict)txt - text to parseConst.TKN$VAR_PRE,
Const.TKN$VAR_SUF,
Const.TKN$VAR_ESC@Contract(value="null,_,_->null;!null,_,_->!null") public static Gene parse(String txt, String pre, String suf)
txt - text to parsepre - starting defining symbolsuf - ending defining symbolConst.TKN$VAR_ESC@Contract(value="_,null,_,_->null;_,!null,_,_->!null") public static Gene parse(boolean lax, String txt, String pre, String suf)
lax - lax mode (not strict)txt - text to parsepre - starting defining symbolsuf - ending defining symbolConst.TKN$VAR_ESC@Contract(value="null,_,_,_->null;!null,_,_,_->!null") public static Gene parse(String txt, String pre, String suf, String esc)
txt - text to parsepre - starting defining symbolsuf - ending defining symbolesc - escaping symbol@Contract(value="_,null,_,_,_->null;_,!null,_,_,_->!null") public static Gene parse(boolean lax, String txt, String pre, String suf, String esc)
lax - lax mode (not strict)txt - text to parsepre - starting defining symbolsuf - ending defining symbolesc - escaping symbolCopyright © 2024. All rights reserved.