Package org.jline.style
Class Styler
java.lang.Object
org.jline.style.Styler
Style facade.
- Since:
- 3.4
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends StyleBundle>
TCreate aStyleBundleproxy.static <T extends StyleBundle>
TCreate aStyleBundleproxy with explicit style-group.static StyleFactoryCreate a factory for the given style-group.static StyleSourceReturns globalStyleSource.static StyleResolverCreate a resolver for the given style-group.static voidsetSource(StyleSource source) Install globalStyleSource.
-
Method Details
-
getSource
Returns globalStyleSource.- Returns:
- the global style source
-
setSource
Install globalStyleSource.- Parameters:
source- the new global style source
-
resolver
Create a resolver for the given style-group.- Parameters:
group- the group- Returns:
- the resolver
-
factory
Create a factory for the given style-group.- Parameters:
group- the group- Returns:
- the factory
-
bundle
Create aStyleBundleproxy.Target class must be annotated with
StyleBundle.StyleGroup.- Type Parameters:
T- the interface to proxy- Parameters:
type- the interface to proxy- Returns:
- the proxy
-
bundle
Create aStyleBundleproxy with explicit style-group.- Type Parameters:
T- the interface to proxy- Parameters:
group- the grouptype- the interface to proxy- Returns:
- the proxy
-