public final class VariableTypeInfoImpl extends TypeInfoBase implements VariableTypeInfo
BIG_INT, BOOLEAN, BYTE, CHARACTER, DATE, DOUBLE, FLOAT, INT, LONG, NONE, NUMBER, OBJECT, OBJECT_ARRAY, PRIMITIVE_BOOLEAN, PRIMITIVE_BYTE, PRIMITIVE_CHARACTER, PRIMITIVE_DOUBLE, PRIMITIVE_FLOAT, PRIMITIVE_INT, PRIMITIVE_LONG, PRIMITIVE_SHORT, PRIMITIVE_VOID, RAW_CLASS, RAW_CONSUMER, RAW_ENUM_SET, RAW_FUNCTION, RAW_LIST, RAW_MAP, RAW_OPTIONAL, RAW_PREDICATE, RAW_SET, RAW_SUPPLIER, RUNNABLE, SHORT, STRING, STRING_ARRAY, VOID| Constructor and Description |
|---|
VariableTypeInfoImpl(TypeVariable<?> raw,
TypeInfoFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(TypeFormatContext ctx,
StringBuilder builder) |
List<TypeInfo> |
bounds(TypeInfoFactory factory) |
void |
collectComponentClass(Consumer<Class<?>> collector) |
TypeInfo |
consolidate(Map<VariableTypeInfo,TypeInfo> mapping) |
TypeInfo |
mainBound()
The main bound is what a
TypeVariable will become when converted to a Class,
aka what this type should be after Java erased generic type info
for T, the main bound will be Object, for T extends XXX, the main
bound will be XXX, for T extends XXX & YYY & ZZZ the main bound will still be
XXX |
String |
name() |
newArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasClass, getTypeTag, isArray, isBoolean, isByte, isCharacter, isDouble, isEnum, isFloat, isInt, isInterface, isLong, isNumber, isObjectExact, isShort, isString, isVoidcreateDefaultValue, enumConstants, getComponentType, is, isAssignableFrom, isFunctionalInterface, isInstance, isNot, isPrimitive, newArray, param, shouldConvert, toStringpublic VariableTypeInfoImpl(TypeVariable<?> raw, TypeInfoFactory factory)
public String name()
name in interface VariableTypeInfoTypeVariable.getName()public List<TypeInfo> bounds(TypeInfoFactory factory)
bounds in interface VariableTypeInfoTypeVariable.getBounds()public TypeInfo mainBound()
VariableTypeInfoTypeVariable will become when converted to a Class,
aka what this type should be after Java erased generic type info
for T, the main bound will be Object, for T extends XXX, the main
bound will be XXX, for T extends XXX & YYY & ZZZ the main bound will still be
XXX
mainBound in interface VariableTypeInfoVariableTypeInfo.asClass()public void append(TypeFormatContext ctx, StringBuilder builder)
public void collectComponentClass(Consumer<Class<?>> collector)
collectComponentClass in interface TypeInfopublic TypeInfo consolidate(Map<VariableTypeInfo,TypeInfo> mapping)
consolidate in interface TypeInfoCopyright © 2025 HtmlUnit. All rights reserved.