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