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 aStyleBundle
proxy.static <T extends StyleBundle>
TCreate aStyleBundle
proxy with explicit style-group.static StyleFactory
Create a factory for the given style-group.static StyleSource
Returns globalStyleSource
.static StyleResolver
Create a resolver for the given style-group.static void
setSource
(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 aStyleBundle
proxy.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 aStyleBundle
proxy with explicit style-group.- Type Parameters:
T
- the interface to proxy- Parameters:
group
- the grouptype
- the interface to proxy- Returns:
- the proxy
-