Package | Description |
---|---|
tec.uom.se.format | |
tec.uom.se.internal.format |
Modifier and Type | Field and Description |
---|---|
private SymbolMap |
EBNFUnitFormat.symbolMap
The symbol map used by this instance to map between
Unit s and String s, etc... |
private SymbolMap |
LocalUnitFormat.symbolMap
The symbol map used by this instance to map between
Unit s and String s, etc... |
Modifier and Type | Method and Description |
---|---|
protected abstract SymbolMap |
AbstractUnitFormat.getSymbols()
Returns the
SymbolMap for this unit format. |
protected SymbolMap |
EBNFUnitFormat.getSymbols()
Get the symbol map used by this instance to map between
Unit s and String s, etc... |
protected SymbolMap |
LocalUnitFormat.getSymbols()
Get the symbol map used by this instance to map between
Unit s and String s, etc... |
protected SymbolMap |
SimpleUnitFormat.DefaultFormat.getSymbols() |
static SymbolMap |
SymbolMap.of(java.util.ResourceBundle rb)
Creates a symbol map from the specified resource bundle,
|
Modifier and Type | Method and Description |
---|---|
(package private) static int |
FormatConverter.formatConverter(javax.measure.UnitConverter converter,
boolean continued,
int unitPrecedence,
java.lang.StringBuilder buffer,
SymbolMap symbolMap)
Formats the given converter to the given StringBuilder and returns the operator precedence of the converter's mathematical operation.
|
private static void |
EBNFHelper.formatExponent(javax.measure.Unit<?> unit,
int pow,
int root,
boolean continued,
java.lang.Appendable buffer,
SymbolMap symbolMap)
Format the given unit raised to the given fractional power to the given
StringBuffer . |
(package private) static int |
EBNFHelper.formatInternal(javax.measure.Unit<?> unit,
java.lang.Appendable buffer,
SymbolMap symbolMap)
Format the given unit to the given StringBuffer, then return the operator precedence of the outermost operator in the unit expression that was
formatted.
|
static EBNFUnitFormat |
EBNFUnitFormat.getInstance(SymbolMap symbols)
Returns an instance for the given symbol map.
|
static LocalUnitFormat |
LocalUnitFormat.getInstance(SymbolMap symbols)
Returns an instance for the given symbol map.
|
private static int |
EBNFHelper.newUnitPrecedenceInternal(javax.measure.Unit<?> unit,
java.lang.Appendable buffer,
SymbolMap symbolMap) |
private static int |
FormatConverter.noopPrecedence(java.lang.StringBuilder buffer,
SymbolMap symbolMap,
MetricPrefix prefix) |
private static int |
EBNFHelper.productPrecedenceInternal(javax.measure.Unit<?> unit,
java.lang.Appendable buffer,
SymbolMap symbolMap) |
Constructor and Description |
---|
EBNFUnitFormat(SymbolMap symbols)
Private constructor.
|
LocalUnitFormat(SymbolMap symbols)
Base constructor.
|
Modifier and Type | Field and Description |
---|---|
private SymbolMap |
LocalUnitFormatParser.symbols
Deprecated.
|
private SymbolMap |
UnitFormatParser.symbols |
Constructor and Description |
---|
LocalUnitFormatParser(SymbolMap symbols,
java.io.Reader in)
Deprecated.
|
UnitFormatParser(SymbolMap symbols,
java.io.Reader in) |