public class ParsedValueImpl<V,T> extends ParsedValue<V,T>
ParsedValueImpl
.Modifier and Type | Field and Description |
---|---|
private static byte |
ARRAY_OF_VALUE_ARRAY |
private static byte |
BOOLEAN |
private static byte |
COLOR |
private boolean |
containsLookups
If value is itself a ParsedValueImpl or sequence of values, and should any of
those values need to be looked up, then this flag is set.
|
private static byte |
ENUM |
private int |
hash |
private static int |
indent |
private boolean |
lookup
If value references another property, then the real value needs to
be looked up.
|
private static byte |
NULL_VALUE |
private static byte |
SIZE |
private static byte |
STRING |
private static byte |
URL |
private static byte |
VALUE |
private static byte |
VALUE_ARRAY |
converter, value
Constructor and Description |
---|
ParsedValueImpl(V value,
StyleConverter<V,T> type)
Create an instance of ParsedValueImpl where the value type V is converted to
the target type T using the given Type converter.
|
ParsedValueImpl(V value,
StyleConverter<V,T> converter,
boolean lookup)
Create an instance of ParsedValueImpl where the value type V is converted to
the target type T using the given Type converter.
|
Modifier and Type | Method and Description |
---|---|
private void |
appendValue(java.lang.StringBuilder sbuf,
java.lang.Object value,
java.lang.String tag) |
static boolean |
containsFontRelativeSize(ParsedValue parsedValue,
boolean percentUnitsAreRelative) |
T |
convert(Font font)
Convenience method for calling
convert
on this ParsedValue . |
boolean |
equals(java.lang.Object obj) |
private static boolean |
getContainsLookupsFlag(java.lang.Object obj) |
int |
hashCode() |
private static void |
indent() |
boolean |
isContainsLookups() |
boolean |
isLookup() |
private static void |
outdent() |
static ParsedValueImpl |
readBinary(int bssVersion,
java.io.DataInputStream is,
java.lang.String[] strings) |
private static java.lang.String |
spaces() |
java.lang.String |
toString() |
void |
writeBinary(java.io.DataOutputStream os,
StringStore stringStore) |
getConverter, getValue
private final boolean lookup
private final boolean containsLookups
private static int indent
private int hash
private static final byte NULL_VALUE
private static final byte VALUE
private static final byte VALUE_ARRAY
private static final byte ARRAY_OF_VALUE_ARRAY
private static final byte STRING
private static final byte COLOR
private static final byte ENUM
private static final byte BOOLEAN
private static final byte URL
private static final byte SIZE
public ParsedValueImpl(V value, StyleConverter<V,T> converter, boolean lookup)
public ParsedValueImpl(V value, StyleConverter<V,T> type)
public final boolean isLookup()
public final boolean isContainsLookups()
private static boolean getContainsLookupsFlag(java.lang.Object obj)
public static boolean containsFontRelativeSize(ParsedValue parsedValue, boolean percentUnitsAreRelative)
public T convert(Font font)
ParsedValue
convert
on this ParsedValue
.convert
in class ParsedValue<V,T>
font
- The Font
to use when converting a
relative
value.StyleableProperty
ParsedValue.getConverter()
private static java.lang.String spaces()
private static void indent()
private static void outdent()
public java.lang.String toString()
toString
in class java.lang.Object
private void appendValue(java.lang.StringBuilder sbuf, java.lang.Object value, java.lang.String tag)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public final void writeBinary(java.io.DataOutputStream os, StringStore stringStore) throws java.io.IOException
java.io.IOException
public static ParsedValueImpl readBinary(int bssVersion, java.io.DataInputStream is, java.lang.String[] strings) throws java.io.IOException
java.io.IOException