- java.lang.Object
-
- org.jproggy.snippetory.util.SimpleFormat
-
- org.jproggy.snippetory.engine.spi.NumFormatter.ToStringFormat
-
- All Implemented Interfaces:
Format
,FormatConfiguration
- Enclosing class:
- NumFormatter
public class NumFormatter.ToStringFormat extends SimpleFormat
-
-
Constructor Summary
Constructors Constructor Description ToStringFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
format(TemplateNode location, Object value)
Will only be called for supported values.boolean
supports(Object value)
Many formats only apply to a special type or even specific values.-
Methods inherited from class org.jproggy.snippetory.util.SimpleFormat
clear, getFormat
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jproggy.snippetory.spi.FormatConfiguration
controlsRegion
-
-
-
-
Method Detail
-
format
public Object format(TemplateNode location, Object value)
Description copied from interface:Format
Will only be called for supported values.- Parameters:
location
- gives some additional information to this call like the target encodingvalue
- will be turned into character data- Returns:
- value as character data. So either a String, a StringBuilder or EncodedData
-
-