Class LexerBuilder.Builder
- java.lang.Object
-
- io.cui.tools.formatting.template.lexer.LexerBuilder.Builder
-
- Enclosing class:
- LexerBuilder
public static final class LexerBuilder.Builder extends Object
The builder class
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <F extends FormatterSupport>
Lexer<F>build(F source)Build the formatter forFormatterSupporttype<F extends FormatterSupport>
Lexer<F>build(Class<F> sourceType)LexerBuilder.Builderstrict(boolean strict)
-
-
-
Method Detail
-
strict
public LexerBuilder.Builder strict(boolean strict)
- Parameters:
strict- enabling the strict mode for pattern matching (only match exact name) instead of best fitting- Returns:
- The concrete
LexerBuilder.Builder
-
build
public <F extends FormatterSupport> Lexer<F> build(F source)
Build the formatter forFormatterSupporttype- Parameters:
source-FormatterSupporttype- Returns:
- created formatter
-
build
public <F extends FormatterSupport> Lexer<F> build(Class<F> sourceType)
- Parameters:
sourceType- bean type- Returns:
- Lexer for classType
- Throws:
IllegalStateException- if access to the class constructor fails or class isn't public
-
-