EBNFUnitFormat
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static void | formatExponent(Unit<?>
Unit the unit to be formatted unit, int int the numerator of the fractional power pow, int int the denominator of the fractional power root, boolean boolean continued, Appendable true if the converter expression should begin with an operator, otherwise false. This will always be
true unless the unit being modified is equal to Unit.ONE.StringBuffer the buffer to append to. No assumptions should be made about its content. buffer, SymbolMap symbolMap)Format the given unit raised to the given fractional power to the given |
| pack-priv static int | Returns: the operator precedence of the outermost operator in the unit expression that was outputthe unit to be formatted unit, Appendable the buffer, SymbolMap symbolMap)StringBuffer to be written toFormat the given unit to the given Appendable, then return the operator precedence of the outermost operator in the unit expression that was formatted. |
| private static int | |
| private static int |
| EBNFHelper | back to summary |
|---|---|
| pack-priv EBNFHelper() | |
| formatExponent | back to summary |
|---|---|
| private static void formatExponent(Unit<?> unit, int pow, int root, boolean continued, Appendable buffer, SymbolMap symbolMap) throws IOException Format the given unit raised to the given fractional power to the given
| |
| formatInternal | back to summary |
|---|---|
| pack-priv static int formatInternal(Unit<?> unit, Appendable buffer, SymbolMap symbolMap) throws IOException Format the given unit to the given Appendable, then return the operator precedence of the outermost operator in the unit expression that was
formatted. See
| |
| noopPrecedenceInternal | back to summary |
|---|---|
| private static int noopPrecedenceInternal(Appendable buffer, String symbol) throws IOException | |
| productPrecedenceInternal | back to summary |
|---|---|
private static int productPrecedenceInternal(Unit<?> unit, Appendable buffer, SymbolMap symbolMap) throws IOException
| |