类 AnsiPropertySource
PropertyResolver for AnsiStyle, AnsiColor,
AnsiBackground and Ansi8BitColor elements. Supports properties of the
form AnsiStyle.BOLD, AnsiColor.RED or AnsiBackground.GREEN.
Also supports a prefix of Ansi. which is an aggregation of everything (with
background colors prefixed BG_).
ANSI 8-bit color codes can be used with AnsiColor and AnsiBackground.
For example, AnsiColor.208 will render orange text.
Wikipedia has a complete
list of the 8-bit color codes that can be used.
- 从以下版本开始:
- 4.0
- 作者:
- Phillip Webb, Toshiaki Maki
-
嵌套类概要
嵌套类修饰符和类型类说明private static classprivate static classAnsiPropertySource.EnumMapping<E extends Enum<E> & AnsiElement>AnsiPropertySource.MappingforAnsiElementenums.private static classMapping between a name and the pseudo property source.从类继承的嵌套类/接口 cn.taketoday.core.env.PropertySource
PropertySource.StubPropertySource -
字段概要
字段从类继承的字段 cn.taketoday.core.env.PropertySource
name, source -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明getProperty(String name) Return the value associated with the given name, ornullif not found.从类继承的方法 cn.taketoday.core.env.PropertySource
containsProperty, equals, getName, getSource, hashCode, named, toString
-
字段详细资料
-
MAPPINGS
-
encode
private final boolean encode
-
-
构造器详细资料
-
AnsiPropertySource
Create a newAnsiPropertySourceinstance.- 参数:
name- the name of the property sourceencode- if the output should be encoded
-
-
方法详细资料
-
getProperty
从类复制的说明:PropertySourceReturn the value associated with the given name, ornullif not found.- 指定者:
getProperty在类中PropertySource<AnsiElement>- 参数:
name- the property to find- 另请参阅:
-