Uses of Class
cloud.opencode.base.reflect.type.TypeToken
Packages that use TypeToken
Package
Description
-
Uses of TypeToken in cloud.opencode.base.reflect
Methods in cloud.opencode.base.reflect that return TypeTokenModifier and TypeMethodDescriptionstatic TypeToken<?> OpenField.getFieldTypeToken(Class<?> clazz, String fieldName) Gets field TypeToken 获取字段TypeTokenstatic <T> TypeToken<T> Creates a TypeToken for a class 为类创建TypeTokenMethods in cloud.opencode.base.reflect that return types with arguments of type TypeTokenModifier and TypeMethodDescriptionReflectCache.getTypeToken(Type type) Gets cached TypeToken for a type 获取类型的缓存类型令牌Methods in cloud.opencode.base.reflect with parameters of type TypeTokenModifier and TypeMethodDescriptionstatic <T> voidReflectCache.cacheTypeToken(Type type, TypeToken<T> token) Caches TypeToken for a type 缓存类型的类型令牌 -
Uses of TypeToken in cloud.opencode.base.reflect.invokable
Methods in cloud.opencode.base.reflect.invokable that return TypeTokenModifier and TypeMethodDescriptionConstructorInvokable.getDeclaringClass()Invokable.getDeclaringClass()Gets the declaring class as TypeToken 获取声明类的TypeTokenMethodInvokable.getDeclaringClass()ConstructorInvokable.getReturnType()Invokable.getReturnType()Gets the return type as TypeToken 获取返回类型的TypeTokenMethodInvokable.getReturnType()TypeToken<?> Parameter.getType()Gets the parameter type as TypeToken 获取参数类型的TypeTokenMethods in cloud.opencode.base.reflect.invokable that return types with arguments of type TypeTokenModifier and TypeMethodDescriptionConstructorInvokable.getExceptionTypes()Invokable.getExceptionTypes()Gets the exception types 获取异常类型MethodInvokable.getExceptionTypes()ConstructorInvokable.getParameterTypes()Invokable.getParameterTypes()Gets the parameter types 获取参数类型MethodInvokable.getParameterTypes() -
Uses of TypeToken in cloud.opencode.base.reflect.type
Methods in cloud.opencode.base.reflect.type that return TypeTokenModifier and TypeMethodDescriptionTypeToken<?> TypeToken.getComponentType()Gets the component type (for arrays) 获取组件类型(用于数组)TypeToken<?> TypeToken.getTypeParameter(int index) Gets the type parameter at the specified index 获取指定索引的类型参数Creates a List<E> TypeToken 创建 List<E> TypeTokenCreates a List<E> TypeToken 创建 List<E> TypeTokenCreates a Map<K,V> TypeToken 创建 Map<K,V> TypeTokenCreates a Map<K,V> TypeToken 创建 Map<K,V> TypeTokenstatic <T> TypeToken<T> Creates a TypeToken from Class 从Class创建TypeTokenstatic TypeToken<?> Creates a TypeToken from Type 从Type创建TypeTokenTypeToken.optionalOf(TypeToken<T> valueType) Creates an Optional<T> TypeToken 创建 Optional<T> TypeTokenTypeToken.optionalOf(Class<T> valueType) Creates an Optional<T> TypeToken 创建 Optional<T> TypeTokenTypeToken<?> TypeToken.resolveFieldType(Field field) Resolves field type in context of this type 在此类型上下文中解析字段类型TypeToken<?> TypeToken.resolveReturnType(Method method) Resolves method return type in context of this type 在此类型上下文中解析方法返回类型TypeToken<?> TypeToken.resolveType(Type toResolve) Resolves a type in the context of this type 在此类型上下文中解析类型Creates a Set<E> TypeToken 创建 Set<E> TypeTokenCreates a Set<E> TypeToken 创建 Set<E> TypeTokenTypeLiteral.toTypeToken()Converts to TypeToken 转换为TypeTokenTypeToken.unwrap()Gets the primitive type (for wrappers) 获取原始类型(对于包装类型)TypeToken.wrap()Gets the wrapper type (for primitives) 获取包装类型(对于原始类型)Methods in cloud.opencode.base.reflect.type that return types with arguments of type TypeTokenModifier and TypeMethodDescriptionTypeToken.getTypeParameters()Gets all type parameters 获取所有类型参数TypeToken.resolveParameterTypes(Method method) Resolves method parameter types in context of this type 在此类型上下文中解析方法参数类型Methods in cloud.opencode.base.reflect.type with parameters of type TypeTokenModifier and TypeMethodDescriptionbooleanTypeToken.isAssignableFrom(TypeToken<?> other) Checks if this type is assignable from the specified type 检查此类型是否可从指定类型赋值booleanTypeToken.isSubtypeOf(TypeToken<?> other) Checks if this type is a subtype of the specified type 检查此类型是否为指定类型的子类型booleanTypeToken.isSupertypeOf(TypeToken<?> other) Checks if this type is a supertype of the specified type 检查此类型是否为指定类型的父类型Creates a List<E> TypeToken 创建 List<E> TypeTokenCreates a Map<K,V> TypeToken 创建 Map<K,V> TypeTokenTypeToken.optionalOf(TypeToken<T> valueType) Creates an Optional<T> TypeToken 创建 Optional<T> TypeTokenCreates a Set<E> TypeToken 创建 Set<E> TypeToken