| Modifier and Type | Method and Description |
|---|---|
static boolean |
NativeJavaObject.canConvert(Object fromObj,
TypeInfo to) |
static Object |
Context.jsToJava(Object value,
TypeInfo desiredType) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ParameterizedTypeInfo
a
TypeInfo implementation representing ParameterizedType |
interface |
VariableTypeInfo
a
TypeInfo implementation representing TypeVariable |
interface |
WildcardTypeInfo
a
TypeInfo implementation representing WildcardType |
| Modifier and Type | Field and Description |
|---|---|
static TypeInfo |
TypeInfo.BIG_INT |
static TypeInfo |
TypeInfo.BOOLEAN |
static TypeInfo |
TypeInfo.BYTE |
static TypeInfo |
TypeInfo.CHARACTER |
static TypeInfo |
TypeInfo.DATE |
static TypeInfo |
TypeInfo.DOUBLE |
static TypeInfo[] |
TypeInfoFactory.EMPTY_ARRAY |
static TypeInfo |
TypeInfo.FLOAT |
static TypeInfo |
TypeInfo.INT |
static TypeInfo |
TypeInfo.LONG |
static TypeInfo |
TypeInfo.NONE |
static TypeInfo |
TypeInfo.NUMBER |
static TypeInfo |
TypeInfo.OBJECT
use
isObjectExact() to determine whether a type represents a Object
class, using `typeInfo == TypeInfo.OBJECT` might cause problem with VariableTypeInfo |
static TypeInfo |
TypeInfo.OBJECT_ARRAY |
static TypeInfo |
TypeInfo.PRIMITIVE_BOOLEAN |
static TypeInfo |
TypeInfo.PRIMITIVE_BYTE |
static TypeInfo |
TypeInfo.PRIMITIVE_CHARACTER |
static TypeInfo |
TypeInfo.PRIMITIVE_DOUBLE |
static TypeInfo |
TypeInfo.PRIMITIVE_FLOAT |
static TypeInfo |
TypeInfo.PRIMITIVE_INT |
static TypeInfo |
TypeInfo.PRIMITIVE_LONG |
static TypeInfo |
TypeInfo.PRIMITIVE_SHORT |
static TypeInfo |
TypeInfo.PRIMITIVE_VOID |
static TypeInfo |
TypeInfo.RAW_CLASS |
static TypeInfo |
TypeInfo.RAW_CONSUMER |
static TypeInfo |
TypeInfo.RAW_ENUM_SET |
static TypeInfo |
TypeInfo.RAW_FUNCTION |
static TypeInfo |
TypeInfo.RAW_LIST |
static TypeInfo |
TypeInfo.RAW_MAP |
static TypeInfo |
TypeInfo.RAW_OPTIONAL |
static TypeInfo |
TypeInfo.RAW_PREDICATE |
static TypeInfo |
TypeInfo.RAW_SET |
static TypeInfo |
TypeInfo.RAW_SUPPLIER |
static TypeInfo |
TypeInfo.RUNNABLE |
static TypeInfo |
TypeInfo.SHORT |
static TypeInfo |
TypeInfo.STRING |
static TypeInfo |
TypeInfo.STRING_ARRAY |
static TypeInfo |
TypeInfo.VOID |
| Modifier and Type | Method and Description |
|---|---|
TypeInfo |
TypeInfoFactory.attachParam(TypeInfo base,
List<TypeInfo> params)
In general, implementations are recommended, but not required, to return a
ParameterizedTypeInfo. |
default TypeInfo |
TypeInfoFactory.attachParam(TypeInfo base,
TypeInfo... params) |
default TypeInfo |
TypeInfo.consolidate(Map<VariableTypeInfo,TypeInfo> mapping) |
TypeInfo |
TypeInfoFactory.create(Class<?> clazz) |
TypeInfo |
TypeInfoFactory.create(GenericArrayType genericArrayType) |
TypeInfo |
TypeInfoFactory.create(ParameterizedType parameterizedType) |
default TypeInfo |
TypeInfoFactory.create(Type type)
|
TypeInfo |
TypeInfoFactory.create(TypeVariable<?> typeVariable) |
TypeInfo |
TypeInfoFactory.create(WildcardType wildcardType) |
default <T extends Type> |
TypeInfoFactory.createArray(T[] types) |
default TypeInfo |
TypeInfo.getComponentType() |
TypeInfo |
WildcardTypeInfo.mainBound() |
TypeInfo |
VariableTypeInfo.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 |
static TypeInfo |
TypeInfoFactory.matchPredefined(Class<?> clazz) |
default TypeInfo |
TypeInfo.param(int index)
|
default TypeInfo |
ParameterizedTypeInfo.param(int index) |
TypeInfo |
ParameterizedTypeInfo.rawType() |
TypeInfo |
TypeInfoFactory.toArray(TypeInfo component) |
| Modifier and Type | Method and Description |
|---|---|
List<TypeInfo> |
VariableTypeInfo.bounds(TypeInfoFactory factory) |
default <T extends Type> |
TypeInfoFactory.createList(T[] types) |
default Map<VariableTypeInfo,TypeInfo> |
TypeInfoFactory.getConsolidationMapping(Class<?> from) |
List<TypeInfo> |
WildcardTypeInfo.lowerBounds(TypeInfoFactory factory) |
List<TypeInfo> |
ParameterizedTypeInfo.params() |
List<TypeInfo> |
WildcardTypeInfo.upperBounds(TypeInfoFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
TypeInfo |
TypeInfoFactory.attachParam(TypeInfo base,
List<TypeInfo> params)
In general, implementations are recommended, but not required, to return a
ParameterizedTypeInfo. |
default TypeInfo |
TypeInfoFactory.attachParam(TypeInfo base,
TypeInfo... params) |
default TypeInfo |
TypeInfoFactory.attachParam(TypeInfo base,
TypeInfo... params) |
default void |
TypeFormatContext.formatArray(StringBuilder builder,
TypeInfo arrayType) |
default boolean |
TypeInfo.isAssignableFrom(TypeInfo another) |
default boolean |
ParameterizedTypeInfo.isAssignableFrom(TypeInfo another) |
TypeInfo |
TypeInfoFactory.toArray(TypeInfo component) |
| Modifier and Type | Method and Description |
|---|---|
TypeInfo |
TypeInfoFactory.attachParam(TypeInfo base,
List<TypeInfo> params)
In general, implementations are recommended, but not required, to return a
ParameterizedTypeInfo. |
default TypeInfo |
TypeInfo.consolidate(Map<VariableTypeInfo,TypeInfo> mapping) |
| Modifier and Type | Class and Description |
|---|---|
class |
ArrayTypeInfo |
class |
BasicClassTypeInfo |
class |
ClassTypeInfo |
class |
EnumTypeInfo |
class |
InterfaceTypeInfo |
class |
NoTypeInfo
Declaring it as an enum ensures that
NoTypeInfo is always singleton. |
class |
ParameterizedTypeInfoImpl |
class |
PrimitiveClassTypeInfo |
class |
TypeInfoBase |
class |
VariableTypeInfoImpl |
| Modifier and Type | Method and Description |
|---|---|
TypeInfo |
VariableTypeInfoImpl.consolidate(Map<VariableTypeInfo,TypeInfo> mapping) |
TypeInfo |
ArrayTypeInfo.getComponentType() |
TypeInfo |
VariableTypeInfoImpl.mainBound() |
TypeInfo |
ParameterizedTypeInfoImpl.param(int index) |
TypeInfo |
ParameterizedTypeInfoImpl.rawType() |
| Modifier and Type | Method and Description |
|---|---|
List<TypeInfo> |
VariableTypeInfoImpl.bounds(TypeInfoFactory factory) |
List<TypeInfo> |
ParameterizedTypeInfoImpl.params() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
PrimitiveClassTypeInfo.isAssignableFrom(TypeInfo another) |
boolean |
NoTypeInfo.isAssignableFrom(TypeInfo another)
Object class is assignable from any class |
| Modifier and Type | Method and Description |
|---|---|
TypeInfo |
VariableTypeInfoImpl.consolidate(Map<VariableTypeInfo,TypeInfo> mapping) |
| Constructor and Description |
|---|
ArrayTypeInfo(TypeInfo component) |
ParameterizedTypeInfoImpl(TypeInfo rawType,
List<TypeInfo> params) |
| Constructor and Description |
|---|
ParameterizedTypeInfoImpl(TypeInfo rawType,
List<TypeInfo> params) |
| Modifier and Type | Method and Description |
|---|---|
default TypeInfo |
FactoryBase.attachParam(TypeInfo base,
List<TypeInfo> params) |
TypeInfo |
WithCacheFactory.create(Class<?> clazz) |
TypeInfo |
NoCacheFactory.create(Class<?> clazz) |
default TypeInfo |
FactoryBase.create(GenericArrayType genericArrayType) |
default TypeInfo |
FactoryBase.create(ParameterizedType parameterizedType) |
TypeInfo |
WithCacheFactory.create(TypeVariable<?> typeVariable) |
TypeInfo |
NoCacheFactory.create(TypeVariable<?> typeVariable) |
default TypeInfo |
FactoryBase.create(WildcardType wildcardType) |
default TypeInfo |
FactoryBase.toArray(TypeInfo component) |
| Modifier and Type | Method and Description |
|---|---|
default TypeInfo |
FactoryBase.attachParam(TypeInfo base,
List<TypeInfo> params) |
default TypeInfo |
FactoryBase.toArray(TypeInfo component) |
| Modifier and Type | Method and Description |
|---|---|
default TypeInfo |
FactoryBase.attachParam(TypeInfo base,
List<TypeInfo> params) |
Copyright © 2025 HtmlUnit. All rights reserved.