This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public static Object | |
public static String | |
public static String | |
private static String | |
private static String | |
private static String | |
private static String | |
private static String | |
private static String | |
private static String |
Constants | back to summary |
---|---|
public Constants() |
decode | back to summary |
---|---|
public static Object decode(Object value, Type type) Converts a constant in internal representation (in which boolean, char, byte, short, and int are each represented by an Integer) into standard representation. Other values (including null) are returned unchanged. |
format | back to summary |
---|---|
public static String format(Object value, Type type) Returns a string representation of a constant value (given in internal representation), quoted and formatted as in Java source. |
format | back to summary |
---|---|
public static String format(Object value) Returns a string representation of a constant value (given in standard wrapped representation), quoted and formatted as in Java source. |
formatByte | back to summary |
---|---|
private static String formatByte(byte b) |
formatChar | back to summary |
---|---|
private static String formatChar(char c) |
formatDouble | back to summary |
---|---|
private static String formatDouble(double d) |
formatFloat | back to summary |
---|---|
private static String formatFloat(float f) |
formatLong | back to summary |
---|---|
private static String formatLong(long lng) |
formatShort | back to summary |
---|---|
private static String formatShort(short s) |
formatString | back to summary |
---|---|
private static String formatString(String s) |