public interface VariableTypeInfo extends TypeInfo
TypeInfo implementation representing TypeVariableTypeVariableBIG_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| Modifier and Type | Method and Description |
|---|---|
default Class<?> |
asClass()
|
List<TypeInfo> |
bounds(TypeInfoFactory factory) |
default int |
getTypeTag() |
default boolean |
isArray() |
default boolean |
isBoolean() |
default boolean |
isByte() |
default boolean |
isCharacter() |
default boolean |
isDouble() |
default boolean |
isEnum() |
default boolean |
isFloat() |
default boolean |
isInt() |
default boolean |
isInterface() |
default boolean |
isLong() |
default boolean |
isNumber() |
default boolean |
isObjectExact() |
default boolean |
isShort() |
default boolean |
isString() |
default boolean |
isVoid() |
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() |
append, collectComponentClass, consolidate, createDefaultValue, enumConstants, getComponentType, is, isAssignableFrom, isFunctionalInterface, isInstance, isNot, isPrimitive, newArray, param, shouldConvert, toStringString name()
TypeVariable.getName()List<TypeInfo> bounds(TypeInfoFactory factory)
TypeVariable.getBounds()TypeInfo mainBound()
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
asClass()default boolean isEnum()
isEnum in interface TypeInfoClass.isEnum()default boolean isInterface()
isInterface in interface TypeInfoClass.isInterface()default boolean isObjectExact()
isObjectExact in interface TypeInfoObject classdefault boolean isNumber()
isNumber in interface TypeInfoNumber classTypeInfo.isAssignableFrom(TypeInfo)default int getTypeTag()
getTypeTag in interface TypeInfoFunctionObject.getTypeTag(Class)default boolean isVoid()
default boolean isBoolean()
default boolean isByte()
default boolean isShort()
default boolean isInt()
default boolean isLong()
default boolean isFloat()
default boolean isDouble()
default boolean isCharacter()
isCharacter in interface TypeInfoCharacter class or char classdefault boolean isString()
default boolean isArray()
isArray in interface TypeInfoClass.isArray()Copyright © 2025 HtmlUnit. All rights reserved.