| Modifier and Type | Field and Description |
|---|---|
protected TypeInfo |
NativeJavaObject.staticType |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
NativeJavaObject.canConvert(Object fromObj,
TypeInfo to) |
static Object |
Context.jsToJava(Object value,
TypeInfo desiredType) |
Object |
WrapFactory.wrap(Context cx,
Scriptable scope,
Object obj,
TypeInfo staticType) |
Scriptable |
WrapFactory.wrapAsJavaObject(Context cx,
Scriptable scope,
Object javaObject,
TypeInfo staticType) |
| Constructor and Description |
|---|
NativeJavaArray(Scriptable scope,
Object array,
TypeInfo staticType) |
NativeJavaList(Scriptable scope,
Object list,
TypeInfo staticType) |
NativeJavaMap(Scriptable scope,
Object map,
TypeInfo staticType) |
NativeJavaObject(Scriptable scope,
Object javaObject,
TypeInfo staticType) |
NativeJavaObject(Scriptable scope,
Object javaObject,
TypeInfo staticType,
boolean isAdapter) |
| Modifier and Type | Method and Description |
|---|---|
TypeInfo |
NativeJavaField.type() |
| 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) |
default TypeInfo |
TypeInfoFactory.consolidateType(TypeInfo type,
TypeInfo consolidateHint)
consolidate a type using the mapping extracted from
consolidateHint
Example: type is E in List<E>, consolidateHint is ArrayList<SomeRandomType>, result (for factories that support Java Generic) should then be
SomeRandomType |
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) |
static List<TypeInfo> |
TypeInfoFactory.consolidateAll(List<TypeInfo> types,
Map<VariableTypeInfo,TypeInfo> mapping)
Transform provided
types by applying consolidate(Map) on its
elements
Example: types is [int, E], mapping is E -> String, return value will then
be [int, String] |
default <T extends Type> |
TypeInfoFactory.createList(T[] types) |
default Map<VariableTypeInfo,TypeInfo> |
ParameterizedTypeInfo.extractConsolidationMapping(TypeInfoFactory factory)
Extract consolidation mapping based on
ParameterizedTypeInfo.params() and Class.getTypeParameters()
Example: type is List<String>, calling ((ParameterizedTypeInfo)
type).extractConsolidationMapping(TypeInfoFactory.GLOBAL) will give E -> String,
where the E the type variable declared by List |
default Map<VariableTypeInfo,TypeInfo> |
TypeInfoFactory.getConsolidationMapping(Class<?> from)
Get consolidation mapping from the input class.
|
List<TypeInfo> |
WildcardTypeInfo.lowerBounds(TypeInfoFactory factory) |
List<TypeInfo> |
ParameterizedTypeInfo.params() |
static Map<VariableTypeInfo,TypeInfo> |
TypeInfoFactory.transformMapping(Map<VariableTypeInfo,TypeInfo> mapping,
Map<VariableTypeInfo,TypeInfo> transformer)
Transform a mapping by applying
consolidate(Map) on its values. |
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 TypeInfo |
TypeInfoFactory.consolidateType(TypeInfo type,
TypeInfo consolidateHint)
consolidate a type using the mapping extracted from
consolidateHint
Example: type is E in List<E>, consolidateHint is ArrayList<SomeRandomType>, result (for factories that support Java Generic) should then be
SomeRandomType |
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) |
static List<TypeInfo> |
TypeInfoFactory.consolidateAll(List<TypeInfo> types,
Map<VariableTypeInfo,TypeInfo> mapping)
Transform provided
types by applying consolidate(Map) on its
elements
Example: types is [int, E], mapping is E -> String, return value will then
be [int, String] |
static List<TypeInfo> |
TypeInfoFactory.consolidateAll(List<TypeInfo> types,
Map<VariableTypeInfo,TypeInfo> mapping)
Transform provided
types by applying consolidate(Map) on its
elements
Example: types is [int, E], mapping is E -> String, return value will then
be [int, String] |
static Map<VariableTypeInfo,TypeInfo> |
TypeInfoFactory.transformMapping(Map<VariableTypeInfo,TypeInfo> mapping,
Map<VariableTypeInfo,TypeInfo> transformer)
Transform a mapping by applying
consolidate(Map) on its values. |
static Map<VariableTypeInfo,TypeInfo> |
TypeInfoFactory.transformMapping(Map<VariableTypeInfo,TypeInfo> mapping,
Map<VariableTypeInfo,TypeInfo> transformer)
Transform a mapping by applying
consolidate(Map) on its values. |
| 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 |
ParameterizedTypeInfoImpl.consolidate(Map<VariableTypeInfo,TypeInfo> mapping) |
TypeInfo |
ArrayTypeInfo.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) |
Map<VariableTypeInfo,TypeInfo> |
ParameterizedTypeInfoImpl.extractConsolidationMapping(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) |
TypeInfo |
ParameterizedTypeInfoImpl.consolidate(Map<VariableTypeInfo,TypeInfo> mapping) |
TypeInfo |
ArrayTypeInfo.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 Map<VariableTypeInfo,TypeInfo> |
FactoryBase.computeConsolidationMapping(Class<?> type)
|
Map<VariableTypeInfo,TypeInfo> |
WithCacheFactory.getConsolidationMapping(Class<?> from) |
Map<VariableTypeInfo,TypeInfo> |
NoCacheFactory.getConsolidationMapping(Class<?> from) |
| 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) |
default void |
FactoryBase.extractSuperMapping(Type superType,
Map<VariableTypeInfo,TypeInfo> pushTo) |
Copyright © 2025 HtmlUnit. All rights reserved.