Annotation Interface的使用
cn.taketoday.lang.Nullable
使用Nullable的程序包
程序包
说明
Support classes for components that contribute generated code equivalent to a
runtime behavior.
Support for registering the need for reflection, resources, java
serialization and proxies at runtime.
Predicate support for runtime hints.
Convenience classes for using runtime hints.
Support for generating GraalVM native configuration from runtime hints.
CGLIB or ASM other byte code library
Provides core helpers that are not specific to any part of the framework.
Core support package for annotations, meta-annotations, and merged
annotations with attribute overrides.
Type Conversion System
Default implementation of the type conversion system.
environment abstraction consisting of bean definition
profile and hierarchical property source support.
Abstraction for determining the current Locale,
plus global holder that exposes a thread-bound Locale.
Generic abstraction for working with byte buffer implementations.
Root package for Framework's serializer interfaces and implementations.
Management of trust material that can be used to establish an SSL connection.
SSL trust material provider for Java KeyStores.
SSL trust material provider for PEM-encoded certificates.
Support for styling values as Strings, with ToStringBuilder as central class.
This package defines core TaskExecutor abstraction,
and provides SyncTaskExecutor and SimpleAsyncTaskExecutor implementations.
Support classes for TaskExecutor abstraction.
Core support package for type introspection.
Support classes for reading annotation and class-level metadata.
Core support package for type filtering (e.g. for classpath scanning).
Core abstractions behind the Spring Expression Language.
Common utility classes behind the Spring Expression Language.
SpEL's central implementation package.
SpEL's abstract syntax tree.
SpEL's standard parser implementation.
SpEL's default implementations for various core abstractions.
Framework global classes
Logging System Adapter
Optimised Reflection System
Miscellaneous utility classes, such as utilities for working with strings,
classes, collections, reflection, etc.
Useful generic
java.util.Comparator implementations,
such as an invertible comparator and a compound comparator.Useful generic
java.util.concurrent.Future extensions.Useful generic
java.util.function helper classes.Miscellaneous utility classes for XML parsing and transformation,
such as error handlers that log warnings via Logging.
-
cn.taketoday.aot.generate中Nullable的使用
注释类型为Nullable的cn.taketoday.aot.generate中的字段修饰符和类型字段说明private final cn.taketoday.javapoet.ClassNameDefaultMethodReference.declaringClassprivate final GeneratedClassGeneratedClass.enclosingClassprivate final cn.taketoday.javapoet.ClassNameGeneratedClasses.Owner.targettarget记录组件的字段。注释类型为Nullable的cn.taketoday.aot.generate中的方法修饰符和类型方法说明cn.taketoday.javapoet.CodeBlockMethodReference.ArgumentCodeGenerator.generateCode(cn.taketoday.javapoet.TypeName argumentType) Generate the code for the given argument type.GeneratedClass.getEnclosingClass()Return the enclosingGeneratedClassornullif this instance represents a top-level class.InMemoryGeneratedFiles.getGeneratedFile(GeneratedFiles.Kind kind, String path) Return theInputStreamSourceof specified file.InMemoryGeneratedFiles.getGeneratedFileContent(GeneratedFiles.Kind kind, String path) Return the content of the specified file.private static GeneratedTypeReferenceGeneratedTypeReference.safeCreate(cn.taketoday.javapoet.ClassName className) cn.taketoday.javapoet.ClassNameGeneratedClasses.Owner.target()返回target记录组件的值。注释类型为Nullable的cn.taketoday.aot.generate中的方法参数修饰符和类型方法说明private static Stringprivate GeneratedClassGeneratedClasses.createAndAddGeneratedClass(String featureName, cn.taketoday.javapoet.ClassName targetComponent, Consumer<cn.taketoday.javapoet.TypeSpec.Builder> type) booleancn.taketoday.javapoet.ClassNameClassNameGenerator.generateClassName(String featureName, cn.taketoday.javapoet.ClassName target) Generate a uniqueClassNamebased on the specifiedfeatureNameandtarget.private StringClassNameGenerator.getRootName(String featureName, cn.taketoday.javapoet.ClassName target) private static GeneratedTypeReferenceGeneratedTypeReference.safeCreate(cn.taketoday.javapoet.ClassName className) cn.taketoday.javapoet.CodeBlockDefaultMethodReference.toInvokeCodeBlock(MethodReference.ArgumentCodeGenerator argumentCodeGenerator, cn.taketoday.javapoet.ClassName targetClassName) cn.taketoday.javapoet.CodeBlockMethodReference.toInvokeCodeBlock(MethodReference.ArgumentCodeGenerator argumentCodeGenerator, cn.taketoday.javapoet.ClassName targetClassName) Return this method reference as aCodeBlockusing the specifiedMethodReference.ArgumentCodeGenerator.注释类型为Nullable的cn.taketoday.aot.generate中的构造器参数限定符构造器说明DefaultMethodReference(cn.taketoday.javapoet.MethodSpec method, cn.taketoday.javapoet.ClassName declaringClass) privateGeneratedClass(GeneratedClass enclosingClass, cn.taketoday.javapoet.ClassName name, Consumer<cn.taketoday.javapoet.TypeSpec.Builder> type) private创建Owner记录的实例。 -
cn.taketoday.aot.hint中Nullable的使用
注释类型为Nullable的cn.taketoday.aot.hint中的字段修饰符和类型字段说明private StringSimpleTypeReference.canonicalNameprivate final TypeReferenceAbstractTypeReference.enclosingTypeprivate ExecutableModeExecutableHint.Builder.modeprivate TypeReferenceJavaSerializationHint.Builder.reachableTypeprivate final TypeReferenceJavaSerializationHint.reachableTypeprivate TypeReferenceJdkProxyHint.Builder.reachableTypeprivate final TypeReferenceJdkProxyHint.reachableTypeprivate TypeReferenceResourceBundleHint.Builder.reachableTypeprivate final TypeReferenceResourceBundleHint.reachableTypeprivate final TypeReferenceResourcePatternHint.reachableTypeprivate TypeReferenceTypeHint.Builder.reachableTypeprivate final TypeReferenceTypeHint.reachableType注释类型为Nullable的cn.taketoday.aot.hint中的方法修饰符和类型方法说明private static TypeReferenceReflectionTypeReference.getEnclosingClass(Class<?> type) AbstractTypeReference.getEnclosingType()TypeReference.getEnclosingType()Return the enclosing type reference, ornullif this type reference does not have an enclosing type.ConditionalHint.getReachableType()Return the type that should be reachable for this hint to apply, ornullif this hint should always been applied.JavaSerializationHint.getReachableType()JdkProxyHint.getReachableType()ResourceBundleHint.getReachableType()ResourcePatternHint.getReachableType()TypeHint.getReachableType()ReflectionHints.getTypeHint(TypeReference type) Return the reflection hints for the type defined by the specifiedTypeReference.ReflectionHints.getTypeHint(Class<?> type) Return the reflection hints for the specified type.注释类型为Nullable的cn.taketoday.aot.hint中的方法参数修饰符和类型方法说明private static voidSimpleTypeReference.buildName(TypeReference type, StringBuilder sb) booleanbooleanbooleanbooleanbooleanboolean(专用程序包) booleanExecutableMode.includes(ExecutableMode other) Specify if this mode already includes the specifiedothermode.ResourcePatternHints.Builder.includes(TypeReference reachableType, String... includes) Include resources matching the specified patterns.voidRuntimeHintsRegistrar.registerHints(RuntimeHints hints, ClassLoader classLoader) Contribute hints to the givenRuntimeHintsinstance.ResourceHints.registerPattern(Consumer<ResourcePatternHints.Builder> resourceHint) Register that the resources matching the specified pattern should be made available at runtime.ResourceHints.registerPatternIfPresent(ClassLoader classLoader, String location, Consumer<ResourcePatternHints.Builder> resourceHint) Register a pattern if the givenlocationis available on the classpath.private voidBindingReflectionHintsRegistrar.registerPropertyHints(ReflectionHints hints, Set<Type> seen, Method method, int parameterIndex) ResourceHints.registerResourceBundle(String baseName, Consumer<ResourceBundleHint.Builder> resourceHint) Register that the resource bundle with the specified base name should be made available at runtime.SerializationHints.registerType(TypeReference type, Consumer<JavaSerializationHint.Builder> serializationHint) Register that the type defined by the specifiedTypeReferenceneed to be serialized using java serialization.SerializationHints.registerType(Class<? extends Serializable> type, Consumer<JavaSerializationHint.Builder> serializationHint) Register that the specified type need to be serialized using java serialization.ReflectionHints.registerTypeIfPresent(ClassLoader classLoader, String typeName, MemberCategory... memberCategories) Register or customize reflection hints for the specified type if it is available using the specifiedClassLoader.ReflectionHints.registerTypeIfPresent(ClassLoader classLoader, String typeName, Consumer<TypeHint.Builder> typeHint) Register or customize reflection hints for the specified type if it is available using the specifiedClassLoader.注释类型为Nullable的cn.taketoday.aot.hint中的构造器参数限定符构造器说明protectedAbstractTypeReference(String packageName, String simpleName, TypeReference enclosingType) (专用程序包)ResourcePatternHint(String pattern, TypeReference reachableType) (专用程序包)SimpleTypeReference(String packageName, String simpleName, TypeReference enclosingType) -
cn.taketoday.aot.hint.predicate中Nullable的使用
注释类型为Nullable的cn.taketoday.aot.hint.predicate中的方法修饰符和类型方法说明private TypeHintReflectionHintsPredicates.TypeHintPredicate.getTypeHint(RuntimeHints hints) -
cn.taketoday.aot.hint.support中Nullable的使用
注释类型为Nullable的cn.taketoday.aot.hint.support中的方法修饰符和类型方法说明private Class<?>TodayStrategiesRuntimeHints.resolveClassName(ClassLoader classLoader, String factoryClassName) 注释类型为Nullable的cn.taketoday.aot.hint.support中的方法参数修饰符和类型方法说明voidFilePatternResourceHintsRegistrar.Builder.registerHints(ResourceHints hints, ClassLoader classLoader) Register resource hints for the current state of this builder.voidFilePatternResourceHintsRegistrar.registerHints(ResourceHints hints, ClassLoader classLoader) voidObjectToObjectConverterRuntimeHints.registerHints(RuntimeHints hints, ClassLoader classLoader) 注释类型为Nullable的cn.taketoday.aot.hint.support中的构造器参数限定符构造器说明(专用程序包)ExtendedTodayStrategies(ClassLoader classLoader, Map<String, List<String>> factories) -
cn.taketoday.aot.nativex中Nullable的使用
注释类型为Nullable的cn.taketoday.aot.nativex中的字段修饰符和类型字段说明private final StringFileNativeConfigurationWriter.artifactIdprivate final StringFileNativeConfigurationWriter.groupId注释类型为Nullable的cn.taketoday.aot.nativex中的方法参数修饰符和类型方法说明private static voidprivate static void注释类型为Nullable的cn.taketoday.aot.nativex中的构造器参数限定符构造器说明FileNativeConfigurationWriter(Path basePath, String groupId, String artifactId) FileNativeConfigurationWriter(Path basePath, String groupId, String artifactId) -
cn.taketoday.bytecode中Nullable的使用
注释类型为Nullable的cn.taketoday.bytecode中的字段修饰符和类型字段说明private final ClassLoaderClassWriter.classLoadertheClassLoaderto be used by the default implementation ofClassWriter.getCommonSuperClass(String, String), that of thisClassWriter's runtime type by default.注释类型为Nullable的cn.taketoday.bytecode中的方法注释类型为Nullable的cn.taketoday.bytecode中的方法参数修饰符和类型方法说明static BytecodeCompilerBytecodeCompiler.getCompiler(ClassLoader classLoader) Factory method for compiler instances.static Type[]注释类型为Nullable的cn.taketoday.bytecode中的构造器参数限定符构造器说明protectedBytecodeCompiler(ClassLoader classloader) ChildClassLoader(ClassLoader classLoader) ClassWriter(int flags, ClassLoader classLoader) Constructs a newClassWriterobject.ClassWriter(ClassReader classReader, int flags, ClassLoader classLoader) Constructs a newClassWriterobject and enables optimizations for "mostly add" bytecode transformations. -
cn.taketoday.bytecode.commons中Nullable的使用
注释类型为Nullable的cn.taketoday.bytecode.commons中的方法修饰符和类型方法说明protected AnnotationVisitorFieldRemapper.createAnnotationRemapper(String descriptor, AnnotationVisitor annotationVisitor) Constructs a new remapper for annotations.protected AnnotationVisitorMethodRemapper.createAnnotationRemapper(String descriptor, AnnotationVisitor annotationVisitor) Constructs a new remapper for annotations.protected AnnotationVisitorRecordComponentRemapper.createAnnotationRemapper(String descriptor, AnnotationVisitor annotationVisitor) Constructs a new remapper for annotations.protected RecordComponentVisitorClassRemapper.createRecordComponentRemapper(RecordComponentVisitor recordComponentVisitor) Constructs a new remapper for record components.注释类型为Nullable的cn.taketoday.bytecode.commons中的方法参数修饰符和类型方法说明protected AnnotationVisitorFieldRemapper.createAnnotationRemapper(String descriptor, AnnotationVisitor annotationVisitor) Constructs a new remapper for annotations.protected AnnotationVisitorMethodRemapper.createAnnotationRemapper(String descriptor, AnnotationVisitor annotationVisitor) Constructs a new remapper for annotations.protected AnnotationVisitorRecordComponentRemapper.createAnnotationRemapper(String descriptor, AnnotationVisitor annotationVisitor) Constructs a new remapper for annotations.protected RecordComponentVisitorClassRemapper.createRecordComponentRemapper(RecordComponentVisitor recordComponentVisitor) Constructs a new remapper for record components. -
cn.taketoday.bytecode.core中Nullable的使用
注释类型为Nullable的cn.taketoday.bytecode.core中的字段修饰符和类型字段说明private ArrayList<CodeFlow.ClinitAdder>CodeFlow.clinitAddersAs SpEL ast nodes are called to generate code for the main evaluation method they can register to add code to a static initializer in the class.private DefineClassStrategyAbstractClassGenerator.defineClassStrategyprivate ArrayList<CodeFlow.FieldAdder>CodeFlow.fieldAddersAs SpEL ast nodes are called to generate code for the main evaluation method they can register to add a field to this class.注释类型为Nullable的cn.taketoday.bytecode.core中的方法修饰符和类型方法说明AbstractClassGenerator.getDefineClassStrategy()static String[]CodeFlow.lastDescriptor()Return the descriptor for the item currently on top of the stack (in the current scope).注释类型为Nullable的cn.taketoday.bytecode.core中的方法参数修饰符和类型方法说明voidClassEmitter.beginClass(int version, int access, String className, Type superType, Type[] interfaces, String source) voidClassEmitter.beginClass(int version, int access, String className, Type superType, Type[] interfaces, String source) Class<?>DefineClassStrategy.defineClass(String className, ClassLoader classLoader, ProtectionDomain domain, Class<?> neighbor, byte[] classFile) define a class file to classClass<?>DefineClassStrategy.defineClass(String className, ClassLoader classLoader, ProtectionDomain domain, Class<?> neighbor, byte[] classFile) define a class file to classstatic voidCodeFlow.insertBoxIfNecessary(MethodVisitor mv, String descriptor) Determine the appropriate boxing instruction for a specific type (if it needs boxing) and insert the instruction into the supplied visitor.static voidCodeFlow.insertCheckCast(MethodVisitor mv, String descriptor) Insert the appropriate CHECKCAST instruction for the supplied descriptor.static voidCodeFlow.insertNumericUnboxOrPrimitiveTypeCoercion(MethodVisitor mv, String stackDescriptor, char targetDescriptor) For use in mathematical operators, handles converting from a (possibly boxed) number on the stack to a primitive numeric type.static voidCodeFlow.insertUnboxInsns(MethodVisitor mv, char ch, String stackDescriptor) Insert any necessary cast and value call to convert from a boxed type to a primitive value.static voidCodeFlow.insertUnboxNumberInsns(MethodVisitor mv, char targetDescriptor, String stackDescriptor) For numbers, use the appropriate method on the number to convert it to the primitive type requested.static booleanCodeFlow.isBooleanCompatible(String descriptor) Determine whether the descriptor is for a boolean primitive or boolean reference type.static booleanCodeFlow.isPrimitive(String descriptor) Determine whether the descriptor is for a primitive type.static booleanCodeFlow.isPrimitiveArray(String descriptor) Determine whether the descriptor is for a primitive array (e.g.static booleanCodeFlow.isPrimitiveOrUnboxableSupportedNumber(String descriptor) Determine if the supplied descriptor is for a supported number.static booleanCodeFlow.isPrimitiveOrUnboxableSupportedNumberOrBoolean(String descriptor) Determine if the supplied descriptor is for a supported number type or boolean.voidCodeFlow.pushDescriptor(String descriptor) Record the descriptor for the most recently evaluated expression element.voidAbstractClassGenerator.setDefineClassStrategy(DefineClassStrategy defineClassStrategy) AbstractClassGenerator.setNamingPolicy(NamingPolicy namingPolicy) Override the default naming policy.static StringCodeFlow.toDescriptorFromObject(Object value) Determine the descriptor for an object instance (ornull). -
cn.taketoday.bytecode.proxy中Nullable的使用
注释类型为Nullable的cn.taketoday.bytecode.proxy中的字段修饰符和类型字段说明private final WeakCacheKey<CallbackFilter>Enhancer.EnhancerKey.filterfilter记录组件的字段。Enhancer.EnhancerKey.interfacesinterfaces记录组件的字段。private Class<?>[]Enhancer.interfacesprivate MethodSignatureMethodProxy.sig1private MethodSignatureMethodProxy.sig2private final StringEnhancer.EnhancerKey.typetype记录组件的字段。注释类型为Nullable的cn.taketoday.bytecode.proxy中的方法修饰符和类型方法说明Enhancer.EnhancerKey.filter()返回filter记录组件的值。MethodInterceptor.intercept(Object obj, Method method, Object[] args, MethodProxy proxy) All generated proxied methods call this method instead of the original method.Enhancer.EnhancerKey.interfaces()返回interfaces记录组件的值。Dispatcher.loadObject()Return the object which the original method invocation should be dispatched.Enhancer.EnhancerKey.type()返回type记录组件的值。注释类型为Nullable的cn.taketoday.bytecode.proxy中的方法参数修饰符和类型方法说明private static voidEnhancer.getMethods(Class<?> superclass, Class<?>[] interfaces, List<Method> methods, List<Method> interfaceMethods) private static voidEnhancer.getMethods(Class<?> superclass, Class<?>[] interfaces, List<Method> methods, List<Method> interfaceMethods) voidEnhancer.setInterfaces(Class<?>... interfaces) Set the interfaces to implement.voidEnhancer.setSerialVersionUID(Long sUID) Insert a static serialVersionUID field into the generated class.注释类型为Nullable的cn.taketoday.bytecode.proxy中的构造器参数限定符构造器说明privateEnhancerKey(String type, List<String> interfaces, WeakCacheKey<CallbackFilter> filter, List<Type> callbackTypes, boolean useFactory, boolean interceptDuringConstruction, Long serialVersionUID) 创建EnhancerKey记录的实例。privateEnhancerKey(String type, List<String> interfaces, WeakCacheKey<CallbackFilter> filter, List<Type> callbackTypes, boolean useFactory, boolean interceptDuringConstruction, Long serialVersionUID) 创建EnhancerKey记录的实例。privateEnhancerKey(String type, List<String> interfaces, WeakCacheKey<CallbackFilter> filter, List<Type> callbackTypes, boolean useFactory, boolean interceptDuringConstruction, Long serialVersionUID) 创建EnhancerKey记录的实例。 -
cn.taketoday.bytecode.tree中Nullable的使用
注释类型为Nullable的cn.taketoday.bytecode.tree中的方法参数修饰符和类型方法说明private static voidTryCatchBlockNode.doAccept(MethodVisitor methodVisitor, List<TypeAnnotationNode> typeAnnotations, boolean visible) -
cn.taketoday.core中Nullable的使用
注释类型为Nullable的cn.taketoday.core中的字段修饰符和类型字段说明private final AnnotatedElementTypeDescriptor.AnnotatedElementAdapter.annotatedprivate Annotation[]TypeDescriptor.AnnotatedElementAdapter.annotationsAttributeAccessorSupport.attributesMap with String keys and Object values.private BooleanAntPathMatcher.cachePatternsprivate final ClassLoaderConfigurableObjectInputStream.classLoaderprivate Annotation[]MethodParameter.FieldAwareConstructorParameter.combinedAnnotationsprivate final ResolvableTypeResolvableType.componentTypeThe component type for an array ornullif the type should be deduced.private Class<?>MethodParameter.containingClassThe containing class.private final Supplier<?>ReactiveTypeDescriptor.emptySupplierfinal APair.firstfinal ATriple.firstprivate TypeMethodParameter.genericParameterTypeprivate ResolvableType[]ResolvableType.genericsprivate final IntegerResolvableType.hashprivate static final StringNativeDetector.imageCodeprivate ResolvableType[]ResolvableType.interfacesprivate final StringSerializableTypeWrapper.MethodParameterTypeProvider.methodNameprivate final StringSerializableTypeWrapper.ParameterTypeProvider.methodNameprivate MethodParameterMethodParameter.nestedMethodParameterprotected IntegerOrderedSupport.orderprivate final ClassLoaderOverridingClassLoader.overrideDelegateprivate ParameterMethodParameter.parameterprivate Annotation[]MethodParameter.parameterAnnotations(专用程序包) StringMethodParameter.parameterNameprivate ParameterNameDiscovererMethodParameter.parameterNameDiscovererprivate Class<?>MethodParameter.parameterTypeprivate final Class<?>[]ConstructorNotFoundException.parameterTypesprivate PathApplicationTemp.pathprivate final StringApplicationPid.pidprivate Class<?>ResolvableType.resolvedprivate ObjectSerializableTypeWrapper.MethodInvokeTypeProvider.resultfinal BPair.secondfinal BTriple.secondprivate static ReactiveAdapterRegistryReactiveAdapterRegistry.sharedInstanceprivate final Class<?>ApplicationTemp.sourceClassprivate ResolvableTypeResolvableType.superTypefinal CTriple.thirdMethodParameter.typeIndexesPerLevelMap from Integer level to Integer type index.private final SerializableTypeWrapper.TypeProviderResolvableType.typeProviderOptional provider for the type.private BooleanResolvableType.unresolvableGenericsprivate final ResolvableType.VariableResolverResolvableType.variableResolverTheVariableResolverto use ornullif no resolver is available.注释类型为Nullable的cn.taketoday.core中的方法修饰符和类型方法说明static TypeDescriptorTypeDescriptor.array(TypeDescriptor elementDescriptor) Create a new type descriptor as an array of the specified type.(专用程序包) ResolvableType.VariableResolverResolvableType.asVariableResolver()Adapts thisResolvableTypeto aResolvableType.VariableResolver.protected String[]ParameterNameDiscoverer.doGet(Executable executable) TypeDescriptor.elementDescriptor(Object element) If this type is aCollectionor an array, creates a element TypeDescriptor from the provided collection or array element.String[]AntPathMatcher.AntPathStringMatcher.extractVariables(String str) private static MethodBridgeMethodResolver.findGenericDeclaration(Method bridgeMethod) Searches for the genericMethoddeclaration whose erased signature matches that of the supplied bridge method.protected IntegerFind an order value indicated by the given object.static String[]ParameterNameDiscoverer.findParameterNames(Executable executable) Return parameter names for an Executable(method or constructor), ornullif they cannot be determined.private FileApplicationHome.findSource(Class<?> sourceClass) static TypeReturn aSerializablevariant ofField.getGenericType().static TypeSerializableTypeWrapper.forMethodParameter(MethodParameter methodParameter) Return aSerializablevariant ofMethodParameter.getGenericParameterType().static TypeDescriptorCreate a new type descriptor for an object.(专用程序包) static TypeSerializableTypeWrapper.forTypeProvider(SerializableTypeWrapper.TypeProvider provider) ResolvableType.WildcardBounds.get(ResolvableType type) Get aResolvableType.WildcardBoundsinstance for the specified type, returningnullif the specified type cannot be resolved to aWildcardType.ReactiveAdapterRegistry.getAdapter(Class<?> reactiveType) Get the adapter for the given reactive type.ReactiveAdapterRegistry.getAdapter(Class<?> reactiveType, Object source) Get the adapter for the given reactive type.<T extends Annotation>
TMethodParameter.getAnnotation(Class<T> annotationClass) <T extends Annotation>
TTypeDescriptor.AnnotatedElementAdapter.getAnnotation(Class<T> annotationClass) <T extends Annotation>
TTypeDescriptor.getAnnotation(Class<T> annotationType) Obtain the annotation of the specifiedannotationTypethat is on this type descriptor.AttributeAccessor.getAttribute(String name) Get the value of the attribute identified byname.AttributeAccessorSupport.getAttribute(String name) Constructor<?>MethodParameter.getConstructor()Return the wrapped Constructor, if any.TypeDescriptor.getElementDescriptor()If this type is an array, returns the array's component type.protected ClassLoaderConfigurableObjectInputStream.getFallbackClassLoader()Return the fallback ClassLoader to use when no ClassLoader was specified and ObjectInputStream's own default class loader failed.final APair.getFirst()static <T> TTypeDescriptor.getMapKeyDescriptor()If this type is aMapand its key type is parameterized, returns the map's key type.TypeDescriptor.getMapKeyDescriptor(Object mapKey) If this type is aMap, creates a mapKeyTypeDescriptorfrom the provided map key.TypeDescriptor.getMapValueDescriptor()If this type is aMapand its value type is parameterized, returns the map's value type.TypeDescriptor.getMapValueDescriptor(Object mapValue) If this type is aMap, creates a mapValueTypeDescriptorfrom the provided map value.MethodParameter.getMethod()Return the wrapped Method, if any.<A extends Annotation>
AMethodParameter.getMethodAnnotation(Class<A> annotationType) Return the method/constructor annotation of the given type, if available.OrderSourceProvider.getOrderSource(Object obj) Return an order source for the specified object, i.e. an object that should be checked for an order value as a replacement to the given object.ResolvableType.SyntheticParameterizedType.getOwnerType()<A extends Annotation>
AMethodParameter.getParameterAnnotation(Class<A> annotationType) Return the parameter annotation of the given type, if available.MethodParameter.getParameterName()Return the name of the method/constructor parameter.String[]CompositeParameterNameDiscoverer.getParameterNames(Executable executable) String[]ParameterNameDiscoverer.getParameterNames(Executable executable) Return parameter names for an Executable(method or constructor), ornullif they cannot be determined.Class<?>[]ConstructorNotFoundException.getParameterTypes()private StringApplicationPid.getPid()OrderComparator.getPriority(Object obj) Determine a priority value for the given object, if any.Class<?>ResolvableType.getRawClass()Return the underlying JavaClassbeing managed, if available; otherwisenull.private static TypeDescriptorTypeDescriptor.getRelatedIfResolvable(TypeDescriptor source, ResolvableType type) ResolvableTypeProvider.getResolvableType()Return theResolvableTypedescribing this instance (ornullif some sort of default should be applied instead).NestedRuntimeException.getRootCause()Retrieve the innermost cause of this exception, if any.final BPair.getSecond()static <T> Tprivate static <T> Class<T>GenericTypeResolver.getSingleGeneric(ResolvableType resolvableType) ApplicationHome.getSource()Returns the underlying source used to find the home directory.default ObjectSerializableTypeWrapper.TypeProvider.getSource()Return the source of the type, ornullif not known.private Class<?>ApplicationHome.getStartClass()private Class<?>ApplicationHome.getStartClass(Enumeration<URL> manifestResources) SerializableTypeWrapper.TypeProvider.getType()Return the (possibly nonSerializable)Type.MethodParameter.getTypeIndexForCurrentLevel()Return the type index for the current nesting level.MethodParameter.getTypeIndexForLevel(int nestingLevel) Return the type index for the specified nesting level.Perform a lookup on the given method and return associated metadata, if any.SerializableTypeWrapper.TypeProxyInvocationHandler.invoke(Object proxy, Method method, Object[] args) protected byte[]OverridingClassLoader.loadBytesForClass(String name) Load the defining bytes for the given class, to be turned into a Class object through aClassLoader.defineClass(byte[], int, int)call.protected Class<?>OverridingClassLoader.loadClassForOverriding(String name) Load the specified class for overriding purposes in this ClassLoader.private TypeDescriptorTypeDescriptor.narrow(Object value, TypeDescriptor typeDescriptor) static TypeDescriptorTypeDescriptor.nested(MethodParameter methodParameter, int nestingLevel) Create a type descriptor for a nested type declared within the method parameter.static TypeDescriptorTypeDescriptor.nested(TypeDescriptor typeDescriptor, int nestingLevel) static TypeDescriptorCreate a type descriptor for a nested type declared within the field.protected InputStreamOverridingClassLoader.openStreamForClass(String name) Open an InputStream for the specified class.AttributeAccessor.removeAttribute(String name) Remove the attribute identified bynameand return its value.Resolve the given String value, for example parsing placeholders.Class<?>ResolvableType.resolve()Resolve this type to aClass, returningnullif the type cannot be resolved.private TypeResolvableType.resolveBounds(Type[] bounds) private Class<?>ResolvableType.resolveClass()Class<?>ResolvableType.resolveGeneric(int... indexes) static Class<?>GenericTypeResolver.resolveReturnTypeArgument(Method method, Class<?> genericIfc) Resolve the single type argument of the given generic interface against the given target method which is assumed to return the given interface or an implementation of it.StringValueResolver.resolveStringValue(String strVal) Resolve the given String value, for example parsing placeholders.static <T> Class<T>GenericTypeResolver.resolveTypeArgument(Class<?> clazz, Class<?> genericIfc) Resolve the single type argument of the given generic interface against the given target class which is assumed to implement the generic interface and possibly declare a concrete type for its type variable.static Class<?>[]GenericTypeResolver.resolveTypeArguments(Class<?> clazz, Class<?> genericIfc) Resolve the type arguments of the given generic interface against the given target class which is assumed to implement the generic interface and possibly declare concrete types for its type variables.ResolvableType.DefaultVariableResolver.resolveVariable(TypeVariable<?> variable) private ResolvableTypeResolvableType.resolveVariable(TypeVariable<?> variable) ResolvableType.VariableResolver.resolveVariable(TypeVariable<?> variable) Resolve the specified variable.private static MethodBridgeMethodResolver.searchCandidates(ArrayList<Method> candidateMethods, Method bridgeMethod) Searches for the bridged method in the given candidates.private static MethodBridgeMethodResolver.searchForMatch(Class<?> type, Method bridgeMethod) private static MethodBridgeMethodResolver.searchInterfaces(Class<?>[] interfaces, Method bridgeMethod) Cast thisTypeDescriptorto a superclass or implemented interface preserving annotations and nested type context.LocalVariableTableParameterNameDiscoverer.ParameterNameDiscoveringVisitor.visitMethod(int access, String name, String desc, String signature, String[] exceptions) 注释类型为Nullable的cn.taketoday.core中的方法参数修饰符和类型方法说明voidCompositeParameterNameDiscoverer.addDiscoverer(ParameterNameDiscoverer... discoverer) add ParameterNameDiscovererstatic TypeDescriptorTypeDescriptor.array(TypeDescriptor elementDescriptor) Create a new type descriptor as an array of the specified type.private voidstatic TypeDescriptorTypeDescriptor.collection(Class<?> collectionType, TypeDescriptor elementDescriptor) Create a new type descriptor from aCollectiontype.intintbooleanCheck whether this exception contains an exception of the given type: either it is of the given class itself or it contains a nested cause of the given type.ApplicationTemp.createFile(String subDir, String prefix) Creates a new empty file in the specified directory, using the given prefix and suffix strings to generate its name.ApplicationTemp.createFile(String subDir, String prefix, String suffix) Creates a new empty file in the specified directory, using the given prefix and suffix strings to generate its name.ApplicationTemp.createFile(String subDir, String prefix, String suffix) Creates a new empty file in the specified directory, using the given prefix and suffix strings to generate its name.ApplicationTemp.createFile(String subDir, String prefix, String suffix) Creates a new empty file in the specified directory, using the given prefix and suffix strings to generate its name.private intOrderComparator.doCompare(Object o1, Object o2, OrderSourceProvider sourceProvider) private intOrderComparator.doCompare(Object o1, Object o2, OrderSourceProvider sourceProvider) private intOrderComparator.doCompare(Object o1, Object o2, OrderSourceProvider sourceProvider) protected booleanAntPathMatcher.doMatch(String pattern, String path, boolean fullMatch, Map<String, String> uriTemplateVariables) Actually match the givenpathagainst the givenpattern.booleanbooleanbooleanprotected IntegerFind an order value indicated by the given object.static String[]ParameterNameDiscoverer.findParameterNames(Executable executable) Return parameter names for an Executable(method or constructor), ornullif they cannot be determined.private FileApplicationHome.findSource(Class<?> sourceClass) static ResolvableTypeReturn aResolvableTypefor the specifiedClass, using the full generic type information for assignability checks.static ResolvableTypeReturn aResolvableTypefor the specifiedFieldwith a given implementation and the given nesting level.static ResolvableTypeResolvableType.forField(Field field, ResolvableType implementationType) Return aResolvableTypefor the specifiedFieldwith a given implementation.static ResolvableTypeResolvableType.forInstance(Object instance) Return aResolvableTypefor the specified instance.static ResolvableTypeResolvableType.forMethodParameter(MethodParameter methodParameter, ResolvableType implementationType) Return aResolvableTypefor the specifiedMethodParameterwith a given implementation type.static ResolvableTypeResolvableType.forMethodParameter(MethodParameter methodParameter, Type targetType) Return aResolvableTypefor the specifiedMethodParameter, overriding the target type to resolve with a specific given type.static ResolvableTypeResolvableType.forMethodParameter(MethodParameter methodParameter, Type targetType, int nestingLevel) Return aResolvableTypefor the specifiedMethodParameterat a specific nesting level, overriding the target type to resolve with a specific given type.static TypeDescriptorCreate a new type descriptor for an object.static ResolvableTypeResolvableType.forParameter(Executable executable, int parameterIndex, Class<?> implementationClass) Return aResolvableTypefor the specifiedMethodparameter with a given implementation.static ResolvableTypeResolvableType.forParameter(Parameter parameter, ResolvableType implementationType) Return aResolvableTypefor the specifiedParameterwith a given implementation type.static ResolvableTypeResolvableType.forParameter(Parameter parameter, Type targetType) Return aResolvableTypefor the specifiedParameter, overriding the target type to resolve with a specific given type.static ResolvableTypeResolvableType.forRawClass(Class<?> clazz) Return aResolvableTypefor the specifiedClass, doing assignability checks against the raw class only (analogous toClass.isAssignableFrom(java.lang.Class<?>), which this serves as a wrapper for.static ResolvableTypeResolvableType.forReturnType(Method method, Class<?> implementationClass) Return aResolvableTypefor the specifiedMethodreturn type.static ResolvableTypeReturn aResolvableTypefor the specifiedType.static ResolvableTypeResolvableType.forType(Type type, ResolvableType owner) Return aResolvableTypefor the specifiedTypebacked by the given owner type.static ResolvableTypeResolvableType.forType(Type type, ResolvableType owner) Return aResolvableTypefor the specifiedTypebacked by the given owner type.static ResolvableTypeResolvableType.forType(Type type, ResolvableType.VariableResolver variableResolver) static ResolvableTypeResolvableType.forType(Type type, ResolvableType.VariableResolver variableResolver) static ResolvableTypeResolvableType.forType(Type type, SerializableTypeWrapper.TypeProvider typeProvider, ResolvableType.VariableResolver variableResolver) static ResolvableTypeResolvableType.forType(Type type, SerializableTypeWrapper.TypeProvider typeProvider, ResolvableType.VariableResolver variableResolver) static ResolvableTypeResolvableType.forType(Type type, SerializableTypeWrapper.TypeProvider typeProvider, ResolvableType.VariableResolver variableResolver) ReactiveAdapterRegistry.getAdapter(Class<?> reactiveType, Object source) Get the adapter for the given reactive type.ReactiveAdapterRegistry.getAdapter(Class<?> reactiveType, Object source) Get the adapter for the given reactive type.Return a sub-directory of the application temp.static <T> TResolvableType.getGeneric(int... indexes) Return aResolvableTyperepresenting the generic parameter for the given indexes.Return all names of the given group of constants.Constants.getNamesForSuffix(String nameSuffix) Return all names of the given group of constants.Return aResolvableTypefor the specified nesting level.intDetermine the order value for the given object.private intOrderComparator.getOrder(Object obj, OrderSourceProvider sourceProvider) Determine the order value for the given object.private intOrderComparator.getOrder(Object obj, OrderSourceProvider sourceProvider) Determine the order value for the given object.String[]CompositeParameterNameDiscoverer.getParameterNames(Executable executable) String[]ParameterNameDiscoverer.getParameterNames(Executable executable) Return parameter names for an Executable(method or constructor), ornullif they cannot be determined.private static StringConstants.getPrefixToUse(String namePrefix) static <T> Tprivate static StringApplicationTemp.getTempSubDir(Class<?> sourceClass) Return all values of the given group of constants.Constants.getValuesForSuffix(String nameSuffix) Return all values of the given group of constants.static StringConventions.getVariableNameForReturnType(Method method, Class<?> resolvedType, Object value) Determine the conventional variable name for the return type of the given method, taking the generic collection type, if any, into account, falling back on the given return value if the method declaration is not specific enough, e.g.static StringConventions.getVariableNameForReturnType(Method method, Object value) Determine the conventional variable name for the return type of the given method, taking the generic collection type, if any, into account, falling back on the given actual return value if the method declaration is not specific enough, e.g.voidMethodParameter.initParameterNameDiscovery(ParameterNameDiscoverer parameterNameDiscoverer) Initialize parameter name discovery for this method parameter.private booleanResolvableType.isAssignableFrom(ResolvableType other, Map<Type, Type> matchedBefore) booleanResolvableType.isInstance(Object obj) Determine whether the given object is an instance of thisResolvableType.private booleanTypeDescriptor.isNestedAssignable(TypeDescriptor nestedTypeDescriptor, TypeDescriptor otherNestedTypeDescriptor) private booleanTypeDescriptor.isNestedAssignable(TypeDescriptor nestedTypeDescriptor, TypeDescriptor otherNestedTypeDescriptor) static TypeDescriptorTypeDescriptor.map(Class<?> mapType, TypeDescriptor keyDescriptor, TypeDescriptor valueDescriptor) Create a new type descriptor from aMaptype.static TypeDescriptorTypeDescriptor.map(Class<?> mapType, TypeDescriptor keyDescriptor, TypeDescriptor valueDescriptor) Create a new type descriptor from aMaptype.booleanAntPathMatcher.AntPathStringMatcher.matchStrings(String str, Map<String, String> uriTemplateVariables) Main entry point.private booleanTest whether or not a string matches against a pattern.Narrows thisTypeDescriptorby setting its type to the class of the provided value.private TypeDescriptorTypeDescriptor.narrow(Object value, TypeDescriptor typeDescriptor) private TypeDescriptorTypeDescriptor.narrow(Object value, TypeDescriptor typeDescriptor) private MethodParameterReturn a variant of thisMethodParameterwhich points to the same parameter but one nesting level deeper.static <A,B> Pair<A, B> Pair.of(A first, B second) static <A,B> Pair<A, B> Pair.of(A first, B second) static <A,B, C> Triple<A, B, C> Triple.of(A first, B second, C third) static <A,B, C> Triple<A, B, C> Triple.of(A first, B second, C third) static <A,B, C> Triple<A, B, C> Triple.of(A first, B second, C third) default Class<?>SmartClassLoader.publicDefineClass(String name, byte[] b, ProtectionDomain protectionDomain) Define a custom class (typically a CGLIB proxy class) in this class loader.static TypeGenericTypeResolver.resolveType(Type genericType, Class<?> contextClass) Resolve the given generic type against the given context class, substituting type variables as far as possible.voidAttributeAccessor.setAttribute(String name, Object value) Set the attribute defined bynameto the suppliedvalue.voidAttributeAccessorSupport.setAttribute(String name, Object value) Look up the given value within the given group of constants.<T> org.reactivestreams.Publisher<T>ReactiveAdapter.toPublisher(Object source) Adapt the given instance to a Reactive StreamsPublisher.<T> org.reactivestreams.Publisher<T>ReactiveAdapterRegistry.ReactorAdapter.toPublisher(Object source) Cast thisTypeDescriptorto a superclass or implemented interface preserving annotations and nested type context.static TypeDescriptorCreate a new type descriptor from the given type.MethodParameter.withContainingClass(Class<?> containingClass) Return a variant of thisMethodParameterwhich refers to the given containing class.Pair.withSecond(B second) Triple.withSecond(B second) 注释类型为Nullable的cn.taketoday.core中的构造器参数限定符构造器说明AnnotatedElementAdapter(Annotation[] annotations, AnnotatedElement annotated) AnnotatedElementAdapter(Annotation[] annotations, AnnotatedElement annotated) ApplicationHome(Class<?> sourceClass) Create a newApplicationHomeinstance for the specified source class.ApplicationTemp(Class<?> sourceClass) Create a newApplicationTempinstance for the specified source class.ConfigurableObjectInputStream(InputStream in, ClassLoader classLoader) Create a new ConfigurableObjectInputStream for the given InputStream and ClassLoader.ConfigurableObjectInputStream(InputStream in, ClassLoader classLoader, boolean acceptProxyClasses) Create a new ConfigurableObjectInputStream for the given InputStream and ClassLoader.ConstructorNotFoundException(Class<?> type, String msg, Class<?>[] parameterTypes, Throwable e) ConstructorNotFoundException(Class<?> type, String msg, Class<?>[] parameterTypes, Throwable e) DecoratingClassLoader(ClassLoader parent) Create a new DecoratingClassLoader using the given parent ClassLoader for delegation.(专用程序包)MethodParameter(Executable executable, int parameterIndex, Class<?> containingClass) Internal constructor used to create aMethodParameterwith a containing class already set.Construct aNestedRuntimeExceptionwith the specified detail message.NestedRuntimeException(String msg, Throwable cause) Construct aNestedRuntimeExceptionwith the specified detail message and nested exception.NestedRuntimeException(String msg, Throwable cause) Construct aNestedRuntimeExceptionwith the specified detail message and nested exception.NestedRuntimeException(Throwable cause) Construct aNestedRuntimeExceptionwith the specified nested exception.Construct aNestedRuntimeExceptionwith the specified detail message.NoStackTraceRuntimeException(String msg, Throwable cause) Construct aNestedRuntimeExceptionwith the specified detail message and nested exception.NoStackTraceRuntimeException(String msg, Throwable cause) Construct aNestedRuntimeExceptionwith the specified detail message and nested exception.Construct aNestedRuntimeExceptionwith the specified nested exception.OverridingClassLoader(ClassLoader parent) Create a new OverridingClassLoader for the given ClassLoader.OverridingClassLoader(ClassLoader parent, ClassLoader overrideDelegate) Create a new OverridingClassLoader for the given ClassLoader.OverridingClassLoader(ClassLoader parent, ClassLoader overrideDelegate) Create a new OverridingClassLoader for the given ClassLoader.privateReactiveTypeDescriptor(Class<?> reactiveType, boolean multiValue, boolean noValue, Supplier<?> emptySupplier) privateReactiveTypeDescriptor(Class<?> reactiveType, boolean multiValue, boolean noValue, Supplier<?> emptySupplier, boolean deferred) privateResolvableType(Class<?> clazz) Private constructor used to create a newResolvableTypeon aClassbasis.privateResolvableType(Type type, SerializableTypeWrapper.TypeProvider typeProvider, ResolvableType.VariableResolver variableResolver) Private constructor used to create a newResolvableTypefor cache key purposes, with no upfront resolution.privateResolvableType(Type type, SerializableTypeWrapper.TypeProvider typeProvider, ResolvableType.VariableResolver variableResolver) Private constructor used to create a newResolvableTypefor cache key purposes, with no upfront resolution.privateResolvableType(Type type, SerializableTypeWrapper.TypeProvider typeProvider, ResolvableType.VariableResolver variableResolver, ResolvableType componentType) Private constructor used to create a newResolvableTypefor uncached purposes, with upfront resolution but lazily calculated hash.privateResolvableType(Type type, SerializableTypeWrapper.TypeProvider typeProvider, ResolvableType.VariableResolver variableResolver, ResolvableType componentType) Private constructor used to create a newResolvableTypefor uncached purposes, with upfront resolution but lazily calculated hash.privateResolvableType(Type type, SerializableTypeWrapper.TypeProvider typeProvider, ResolvableType.VariableResolver variableResolver, ResolvableType componentType) Private constructor used to create a newResolvableTypefor uncached purposes, with upfront resolution but lazily calculated hash.privateResolvableType(Type type, SerializableTypeWrapper.TypeProvider typeProvider, ResolvableType.VariableResolver variableResolver, Integer hash) Private constructor used to create a newResolvableTypefor cache value purposes, with upfront resolution and a pre-calculated hash.privateResolvableType(Type type, SerializableTypeWrapper.TypeProvider typeProvider, ResolvableType.VariableResolver variableResolver, Integer hash) Private constructor used to create a newResolvableTypefor cache value purposes, with upfront resolution and a pre-calculated hash.privateResolvableType(Type type, SerializableTypeWrapper.TypeProvider typeProvider, ResolvableType.VariableResolver variableResolver, Integer hash) Private constructor used to create a newResolvableTypefor cache value purposes, with upfront resolution and a pre-calculated hash.TypeDescriptor(ResolvableType resolvableType, Class<?> type, Annotation[] annotations) Create a new type descriptor from aResolvableType.TypeDescriptor(ResolvableType resolvableType, Class<?> type, Annotation[] annotations) Create a new type descriptor from aResolvableType.TypeDescriptor(ResolvableType resolvableType, Class<?> type, AnnotatedElement annotated) Create a new type descriptor from aResolvableType.TypeDescriptor(ResolvableType resolvableType, Class<?> type, AnnotatedElement annotated) Create a new type descriptor from aResolvableType. -
cn.taketoday.core.annotation中Nullable的使用
注释类型为Nullable的cn.taketoday.core.annotation中的字段修饰符和类型字段说明private List<TypeMappedAnnotations.Aggregate>TypeMappedAnnotations.aggregatesfinal AnnotationAnnotationTypeMapping.annotationGet the source annotation for this mapping.private final Annotation[]TypeMappedAnnotations.annotationsprivate final Class<? extends Annotation>AnnotationAttributes.annotationTypeprivate final Class<? extends Annotation>AttributeMethods.annotationTypeTypeMappedAnnotation.attributeFilterprivate final ClassLoaderTypeMappedAnnotation.classLoaderprivate final AnnotatedElementTypeMappedAnnotations.elementprivate IntegerSynthesizedMergedAnnotationInvocationHandler.hashprivate ObjectMergedAnnotationPredicates.FirstRunOfPredicate.lastValueprivate static LoggerIntrospectionFailureLogger.loggerprivate int[]TypeMappedAnnotations.AggregatesSpliterator.mappingCursorsprivate final RepeatableContainersRepeatableContainers.parentprivate final Predicate<? super MergedAnnotation<A>>TypeMappedAnnotations.MergedAnnotationFinder.predicateprivate final ObjectMergedAnnotationsCollection.AnnotationsSpliterator.requiredTypeprivate final ObjectTypeMappedAnnotations.AggregatesSpliterator.requiredTypeprivate MergedAnnotation<A>TypeMappedAnnotations.MergedAnnotationFinder.resultprivate final ObjectTypeMappedAnnotation.rootAttributesprivate final MergedAnnotations.SearchStrategyTypeMappedAnnotations.searchStrategyfinal AnnotationTypeMappingAnnotationTypeMapping.sourceGet the source of the mapping ornull.private final ObjectTypeMappedAnnotation.sourceprivate final ObjectTypeMappedAnnotations.Aggregate.sourceprivate final ObjectTypeMappedAnnotations.sourceprivate StringSynthesizedMergedAnnotationInvocationHandler.stringprivate AAbstractMergedAnnotation.synthesizedAnnotation注释类型为Nullable的cn.taketoday.core.annotation中的方法修饰符和类型方法说明private <T> Tprivate static ObjectAnnotationUtils.adaptValue(Object annotatedElement, Object value, boolean classValuesAsString) Class<? extends Annotation>AnnotationAttributes.annotationType()Get the type of annotation represented by thisAnnotationAttributes.(专用程序包) static <A extends Annotation>
TypeMappedAnnotation<A>TypeMappedAnnotation.createIfPossible(AnnotationTypeMapping mapping, MergedAnnotation<?> annotation, IntrospectionFailureLogger logger) (专用程序包) static <A extends Annotation>
TypeMappedAnnotation<A>TypeMappedAnnotation.createIfPossible(AnnotationTypeMapping mapping, Object source, Annotation annotation, int aggregateIndex, IntrospectionFailureLogger logger) private static <A extends Annotation>
TypeMappedAnnotation<A>TypeMappedAnnotation.createIfPossible(AnnotationTypeMapping mapping, Object source, Object rootAttribute, ValueExtractor valueExtractor, int aggregateIndex, IntrospectionFailureLogger logger) private MergedAnnotation<A>MergedAnnotationsCollection.AnnotationsSpliterator.createMergedAnnotationIfPossible(int annotationIndex, int mappingIndex) (专用程序包) <A extends Annotation>
MergedAnnotation<A>TypeMappedAnnotations.Aggregate.createMergedAnnotationIfPossible(int annotationIndex, int mappingIndex, IntrospectionFailureLogger logger) default RAnnotationsProcessor.doWithAggregate(C context, int aggregateIndex) Called when an aggregate is about to be processed.TypeMappedAnnotations.MergedAnnotationFinder.doWithAggregate(Object context, int aggregateIndex) AnnotationsProcessor.doWithAnnotations(C context, int aggregateIndex, Object source, Annotation[] annotations) Called when an array of annotations can be processed.TypeMappedAnnotations.AggregatesCollector.doWithAnnotations(Object criteria, int aggregateIndex, Object source, Annotation[] annotations) TypeMappedAnnotations.IsPresent.doWithAnnotations(Object requiredType, int aggregateIndex, Object source, Annotation[] annotations) TypeMappedAnnotations.MergedAnnotationFinder.doWithAnnotations(Object type, int aggregateIndex, Object source, Annotation[] annotations) (专用程序包) static ObjectTypeMappedAnnotation.extractFromMap(Method attribute, Object map) private <A extends Annotation>
MergedAnnotation<A>MergedAnnotationsCollection.find(Object requiredType, Predicate<? super MergedAnnotation<A>> predicate, MergedAnnotationSelector<A> selector) static <A extends Annotation>
AAnnotationUtils.findAnnotation(Class<?> clazz, Class<A> annotationType) Find a singleAnnotationofannotationTypeon the suppliedClass, traversing its interfaces, annotations, and superclasses if the annotation is not directly present on the given class itself.static <A extends Annotation>
AAnnotationUtils.findAnnotation(AnnotatedElement annotatedElement, Class<A> annotationType) static <A extends Annotation>
AAnnotationUtils.findAnnotation(Method method, Class<A> annotationType) Find a singleAnnotationofannotationTypeon the suppliedMethod, traversing its super methods (i.e. from superclasses and interfaces) if the annotation is not directly present on the given method itself.static Class<?>AnnotationUtils.findAnnotationDeclaringClass(Class<? extends Annotation> annotationType, Class<?> clazz) Find the firstClassin the inheritance hierarchy of the specifiedclazz(including the specifiedclazzitself) on which an annotation of the specifiedannotationTypeis directly present.static Class<?>AnnotationUtils.findAnnotationDeclaringClassForTypes(List<Class<? extends Annotation>> annotationTypes, Class<?> clazz) Find the firstClassin the inheritance hierarchy of the specifiedclazz(including the specifiedclazzitself) on which at least one of the specifiedannotationTypesis directly present.static <A extends Annotation>
AAnnotatedElementUtils.findMergedAnnotation(AnnotatedElement element, Class<A> annotationType) Find the first annotation of the specifiedannotationTypewithin the annotation hierarchy above the suppliedelement, merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy, and synthesize the result back into an annotation of the specifiedannotationType.static AnnotationAttributesAnnotatedElementUtils.findMergedAnnotationAttributes(AnnotatedElement element, Class<? extends Annotation> annotationType, boolean classValuesAsString, boolean nestedAnnotationsAsMap) Find the first annotation of the specifiedannotationTypewithin the annotation hierarchy above the suppliedelementand merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy.static AnnotationAttributesAnnotatedElementUtils.findMergedAnnotationAttributes(AnnotatedElement element, String annotationName, boolean classValuesAsString, boolean nestedAnnotationsAsMap) Find the first annotation of the specifiedannotationNamewithin the annotation hierarchy above the suppliedelementand merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy.protected Integerprivate static IntegerOrderUtils.findOrder(MergedAnnotations annotations) private IntegerAnnotationAwareOrderComparator.findOrderFromAnnotation(Object obj) (专用程序包) Annotation[]RepeatableContainers.ExplicitRepeatableContainer.findRepeatedAnnotations(Annotation annotation) (专用程序包) Annotation[]RepeatableContainers.findRepeatedAnnotations(Annotation annotation) (专用程序包) Annotation[]RepeatableContainers.StandardRepeatableContainers.findRepeatedAnnotations(Annotation annotation) default RGet the final result to be returned.TypeMappedAnnotations.MergedAnnotationFinder.finish(MergedAnnotation<A> result) static AnnotationAttributesReturn anAnnotationAttributesinstance based on the given map.static AnnotationAttributesAnnotationAttributes.fromMetadata(AnnotatedTypeMetadata metadata, Class<?> annotationClass) static AnnotationAttributesAnnotationAttributes.fromMetadata(AnnotatedTypeMetadata metadata, String annotationClassName) (专用程序包) MethodGet the attribute with the specified name ornullif no matching attribute exists.static MultiValueMap<String,Object> AnnotatedElementUtils.getAllAnnotationAttributes(AnnotatedElement element, String annotationName) Get the annotation attributes of all annotations of the specifiedannotationNamein the annotation hierarchy above the suppliedAnnotatedElementand store the results in aMultiValueMap.static MultiValueMap<String,Object> AnnotatedElementUtils.getAllAnnotationAttributes(AnnotatedElement element, String annotationName, boolean classValuesAsString, boolean nestedAnnotationsAsMap) Get the annotation attributes of all annotations of the specifiedannotationNamein the annotation hierarchy above the suppliedAnnotatedElementand store the results in aMultiValueMap.<T extends Annotation>
TAnnotatedElementUtils.AnnotatedElementForAnnotations.getAnnotation(Class<T> annotationClass) static <A extends Annotation>
AAnnotationUtils.getAnnotation(Annotation annotation, Class<A> annotationType) Get a singleAnnotationofannotationTypefrom the supplied annotation: either the given annotation itself or a direct meta-annotation thereof.static <A extends Annotation>
AAnnotationUtils.getAnnotation(AnnotatedElement annotatedElement, Class<A> annotationType) Get a singleAnnotationofannotationTypefrom the suppliedAnnotatedElement, where the annotation is either present or meta-present on theAnnotatedElement.static <A extends Annotation>
AAnnotationUtils.getAnnotation(Method method, Class<A> annotationType) Get a singleAnnotationofannotationTypefrom the suppliedMethod, where the annotation is either present or meta-present on the method.private static AnnotationAttributesAnnotatedElementUtils.getAnnotationAttributes(MergedAnnotation<?> annotation, boolean classValuesAsString, boolean nestedAnnotationsAsMap) static Annotation[]AnnotationUtils.getAnnotations(AnnotatedElement annotatedElement) Get allAnnotationsthat are present on the suppliedAnnotatedElement.static Annotation[]AnnotationUtils.getAnnotations(Method method) Get allAnnotationsthat are present on the suppliedMethod.private static Class<? extends Annotation>AnnotationAttributes.getAnnotationType(String annotationType, ClassLoader classLoader) AnnotationTypeMapping.MirrorSets.getAssigned(int attributeIndex) protected abstract <T> TAbstractMergedAnnotation.getAttributeValue(String attributeName, Class<T> type) Get the underlying attribute value.protected <T> TTypeMappedAnnotation.getAttributeValue(String attributeName, Class<T> type) private ClassLoaderTypeMappedAnnotation.getClassLoader()(专用程序包) static <A extends Annotation>
AAnnotationsScanner.getDeclaredAnnotation(AnnotatedElement source, Class<A> annotationType) static ObjectAnnotationUtils.getDefaultValue(Annotation annotation) Retrieve the default value of thevalueattribute of a single-element Annotation, given an annotation instance.static ObjectAnnotationUtils.getDefaultValue(Annotation annotation, String attributeName) Retrieve the default value of a named attribute, given an annotation instance.static ObjectAnnotationUtils.getDefaultValue(Class<? extends Annotation> annotationType) Retrieve the default value of thevalueattribute of a single-element Annotation, given theannotation type.static ObjectAnnotationUtils.getDefaultValue(Class<? extends Annotation> annotationType, String attributeName) Retrieve the default value of a named attribute, given theannotation type.(专用程序包) ObjectAnnotationTypeMapping.getMappedAnnotationValue(int attributeIndex, boolean metaAnnotationsOnly) Get a mapped attribute value from the most suitablemeta-annotation.private AnnotationTypeMappingMergedAnnotationsCollection.AnnotationsSpliterator.getMapping(int annotationIndex, int mappingIndex) (专用程序包) AnnotationTypeMappingTypeMappedAnnotations.Aggregate.getMapping(int annotationIndex, int mappingIndex) static <A extends Annotation>
AAnnotatedElementUtils.getMergedAnnotation(AnnotatedElement element, Class<A> annotationType) Get the first annotation of the specifiedannotationTypewithin the annotation hierarchy above the suppliedelement, merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy, and synthesize the result back into an annotation of the specifiedannotationType.static AnnotationAttributesAnnotatedElementUtils.getMergedAnnotationAttributes(AnnotatedElement element, Class<? extends Annotation> annotationType) Get the first annotation of the specifiedannotationTypewithin the annotation hierarchy above the suppliedelementand merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy.static AnnotationAttributesAnnotatedElementUtils.getMergedAnnotationAttributes(AnnotatedElement element, String annotationName) Get the first annotation of the specifiedannotationNamewithin the annotation hierarchy above the suppliedelementand merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy.static AnnotationAttributesAnnotatedElementUtils.getMergedAnnotationAttributes(AnnotatedElement element, String annotationName, boolean classValuesAsString, boolean nestedAnnotationsAsMap) Get the first annotation of the specifiedannotationNamewithin the annotation hierarchy above the suppliedelementand merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy.MergedAnnotation.getMetaSource()Get the source of the meta-annotation, ornullif the annotation is not meta-present.MissingMergedAnnotation.getMetaSource()TypeMappedAnnotation.getMetaSource()private AnnotationTypeMappingMergedAnnotationsCollection.AnnotationsSpliterator.getNextSuitableMapping(int annotationIndex) private AnnotationTypeMappingTypeMappedAnnotations.AggregatesSpliterator.getNextSuitableMapping(TypeMappedAnnotations.Aggregate aggregate, int annotationIndex) static IntegerReturn the order on the specifiedtype.static IntegerReturn the order on the specifiedtype, or the specified default value if none can be found.static IntegerOrderUtils.getOrder(AnnotatedElement element) Return the order declared on the specifiedelement.(专用程序包) static IntegerOrderUtils.getOrderFromAnnotations(AnnotatedElement element, MergedAnnotations annotations) Return the order from the specified annotation collection.AnnotationAwareOrderComparator.getPriority(Object obj) static IntegerOrderUtils.getPriority(Class<?> type) Return the value of thejakarta.annotation.Priorityannotation declared on the specified type, ornullif none.private MethodRepeatableContainers.StandardRepeatableContainers.getRepeatedAnnotationsMethod(Class<? extends Annotation> annotationType) MergedAnnotation.getSource()Get the source that ultimately declared the root annotation, ornullif the source is not known.MissingMergedAnnotation.getSource()TypeMappedAnnotation.getSource()static ObjectAnnotationUtils.getValue(Annotation annotation) Retrieve the value of thevalueattribute of a single-element Annotation, given an annotation instance.static ObjectAnnotationUtils.getValue(Annotation annotation, String attributeName) Retrieve the value of a named attribute, given an annotation instance.private ObjectTypeMappedAnnotation.getValue(int attributeIndex, boolean useConventionMapping, boolean forMirrorResolution) private <T> Tprivate ObjectTypeMappedAnnotation.getValueForMirrorResolution(Method attribute, Object annotation) private ObjectTypeMappedAnnotation.getValueFromMetaAnnotation(int attributeIndex, boolean forMirrorResolution) private static MultiValueMap<String,Object> AnnotatedElementUtils.nullIfEmpty(MultiValueMap<String, Object> map) private static <C,R> R AnnotationsScanner.process(C context, AnnotatedElement source, MergedAnnotations.SearchStrategy searchStrategy, Predicate<Class<?>> searchEnclosingClass, AnnotationsProcessor<C, R> processor) private MergedAnnotation<A>TypeMappedAnnotations.MergedAnnotationFinder.process(Object type, int aggregateIndex, Object source, Annotation annotation) private static <C,R> R AnnotationsScanner.processClass(C context, Class<?> source, MergedAnnotations.SearchStrategy searchStrategy, Predicate<Class<?>> searchEnclosingClass, AnnotationsProcessor<C, R> processor) private static <C,R> R AnnotationsScanner.processClassHierarchy(C context, int[] aggregateIndex, Class<?> source, AnnotationsProcessor<C, R> processor, boolean includeInterfaces, Predicate<Class<?>> searchEnclosingClass) private static <C,R> R AnnotationsScanner.processClassHierarchy(C context, Class<?> source, AnnotationsProcessor<C, R> processor, boolean includeInterfaces, Predicate<Class<?>> searchEnclosingClass) private static <C,R> R AnnotationsScanner.processClassInheritedAnnotations(C context, Class<?> source, MergedAnnotations.SearchStrategy searchStrategy, AnnotationsProcessor<C, R> processor) private static <C,R> R AnnotationsScanner.processElement(C context, AnnotatedElement source, AnnotationsProcessor<C, R> processor) private static <C,R> R AnnotationsScanner.processMethod(C context, Method source, MergedAnnotations.SearchStrategy searchStrategy, AnnotationsProcessor<C, R> processor) private static <C,R> R AnnotationsScanner.processMethodAnnotations(C context, int aggregateIndex, Method source, AnnotationsProcessor<C, R> processor) private static <C,R> R AnnotationsScanner.processMethodHierarchy(C context, int[] aggregateIndex, Class<?> sourceClass, AnnotationsProcessor<C, R> processor, Method rootMethod, boolean includeInterfaces) private static <C,R> R AnnotationsScanner.processMethodInheritedAnnotations(C context, Method source, AnnotationsProcessor<C, R> processor) (专用程序包) static <C,R> R AnnotationsScanner.scan(C context, AnnotatedElement source, MergedAnnotations.SearchStrategy searchStrategy, Predicate<Class<?>> searchEnclosingClass, AnnotationsProcessor<C, R> processor) Scan the hierarchy of the specified element for relevant annotations and call the processor as required.private <C,R> R TypeMappedAnnotations.scan(C criteria, AnnotationsProcessor<C, R> processor) MergedAnnotationsCollection.AnnotationsSpliterator.trySplit()TypeMappedAnnotations.AggregatesSpliterator.trySplit()注释类型为Nullable的cn.taketoday.core.annotation中的方法参数修饰符和类型方法说明private <T> Tprivate static ObjectAnnotationUtils.adaptValue(Object annotatedElement, Object value, boolean classValuesAsString) private static ObjectAnnotationUtils.adaptValue(Object annotatedElement, Object value, boolean classValuesAsString) private voidAnnotationTypeMappings.addIfPossible(Deque<AnnotationTypeMapping> queue, AnnotationTypeMapping source, Class<? extends Annotation> annotationType, Annotation ann, Set<Class<? extends Annotation>> visitedAnnotationTypes) private voidAnnotationTypeMappings.addIfPossible(Deque<AnnotationTypeMapping> queue, AnnotationTypeMapping source, Class<? extends Annotation> annotationType, Annotation ann, Set<Class<? extends Annotation>> visitedAnnotationTypes) private static booleanAnnotationTypeMapping.areEquivalent(Annotation annotation, Object extractedValue, ValueExtractor valueExtractor) private static booleanAnnotationTypeMapping.areEquivalent(Object value, Object extractedValue, ValueExtractor valueExtractor) private static booleanAnnotationTypeMapping.areEquivalent(Object value, Object extractedValue, ValueExtractor valueExtractor) private TypeMappedAnnotations.AggregateTypeMappedAnnotations.AggregatesCollector.createAggregate(int aggregateIndex, Object source, Annotation[] annotations) (专用程序包) static <A extends Annotation>
TypeMappedAnnotation<A>TypeMappedAnnotation.createIfPossible(AnnotationTypeMapping mapping, Object source, Annotation annotation, int aggregateIndex, IntrospectionFailureLogger logger) private static <A extends Annotation>
TypeMappedAnnotation<A>TypeMappedAnnotation.createIfPossible(AnnotationTypeMapping mapping, Object source, Object rootAttribute, ValueExtractor valueExtractor, int aggregateIndex, IntrospectionFailureLogger logger) private static <A extends Annotation>
TypeMappedAnnotation<A>TypeMappedAnnotation.createIfPossible(AnnotationTypeMapping mapping, Object source, Object rootAttribute, ValueExtractor valueExtractor, int aggregateIndex, IntrospectionFailureLogger logger) (专用程序包) static StringCreate a description for the given attribute method suitable to use in exception messages and logs.(专用程序包) static StringCreate a description for the given attribute method suitable to use in exception messages and logs.(专用程序包) static StringCreate a description for the given attribute method suitable to use in exception messages and logs.AnnotationsProcessor.doWithAnnotations(C context, int aggregateIndex, Object source, Annotation[] annotations) Called when an array of annotations can be processed.TypeMappedAnnotations.AggregatesCollector.doWithAnnotations(Object criteria, int aggregateIndex, Object source, Annotation[] annotations) TypeMappedAnnotations.IsPresent.doWithAnnotations(Object requiredType, int aggregateIndex, Object source, Annotation[] annotations) TypeMappedAnnotations.MergedAnnotationFinder.doWithAnnotations(Object type, int aggregateIndex, Object source, Annotation[] annotations) booleanbooleanboolean(专用程序包) static ObjectTypeMappedAnnotation.extractFromMap(Method attribute, Object map) private <A extends Annotation>
MergedAnnotation<A>MergedAnnotationsCollection.find(Object requiredType, Predicate<? super MergedAnnotation<A>> predicate, MergedAnnotationSelector<A> selector) private <A extends Annotation>
MergedAnnotation<A>MergedAnnotationsCollection.find(Object requiredType, Predicate<? super MergedAnnotation<A>> predicate, MergedAnnotationSelector<A> selector) static <A extends Annotation>
AAnnotationUtils.findAnnotation(Class<?> clazz, Class<A> annotationType) Find a singleAnnotationofannotationTypeon the suppliedClass, traversing its interfaces, annotations, and superclasses if the annotation is not directly present on the given class itself.static <A extends Annotation>
AAnnotationUtils.findAnnotation(AnnotatedElement annotatedElement, Class<A> annotationType) static <A extends Annotation>
AAnnotationUtils.findAnnotation(Method method, Class<A> annotationType) Find a singleAnnotationofannotationTypeon the suppliedMethod, traversing its super methods (i.e. from superclasses and interfaces) if the annotation is not directly present on the given method itself.static Class<?>AnnotationUtils.findAnnotationDeclaringClass(Class<? extends Annotation> annotationType, Class<?> clazz) Find the firstClassin the inheritance hierarchy of the specifiedclazz(including the specifiedclazzitself) on which an annotation of the specifiedannotationTypeis directly present.static Class<?>AnnotationUtils.findAnnotationDeclaringClassForTypes(List<Class<? extends Annotation>> annotationTypes, Class<?> clazz) Find the firstClassin the inheritance hierarchy of the specifiedclazz(including the specifiedclazzitself) on which at least one of the specifiedannotationTypesis directly present.static <A extends Annotation>
Set<A>AnnotatedElementUtils.findMergedRepeatableAnnotations(AnnotatedElement element, Class<A> annotationType, Class<? extends Annotation> containerType) Find all repeatable annotations of the specifiedannotationTypewithin the annotation hierarchy above the suppliedelement; and for each annotation found, merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy and synthesize the results back into an annotation of the specifiedannotationType.protected Integerprivate static MergedAnnotationsAnnotatedElementUtils.findRepeatableAnnotations(AnnotatedElement element, Class<? extends Annotation> containerType, Class<? extends Annotation> annotationType) default RGet the final result to be returned.TypeMappedAnnotations.AggregatesCollector.finish(List<TypeMappedAnnotations.Aggregate> processResult) TypeMappedAnnotations.MergedAnnotationFinder.finish(MergedAnnotation<A> result) (专用程序包) static AttributeMethodsAttributeMethods.forAnnotationType(Class<? extends Annotation> annotationType) Get the attribute methods for the given annotation type.static <A extends Annotation>
MergedAnnotation<A>Create a newMergedAnnotationinstance from the specified annotation.(专用程序包) static <A extends Annotation>
TypeMappedAnnotation<A>(专用程序包) static MergedAnnotationsTypeMappedAnnotations.from(Object source, Annotation[] annotations, RepeatableContainers repeatableContainers, AnnotationFilter filter) static AnnotationAttributesReturn anAnnotationAttributesinstance based on the given map.<A extends Annotation>
MergedAnnotation<A>MergedAnnotations.get(Class<A> annotationType, Predicate<? super MergedAnnotation<A>> predicate) Get the nearest matching annotation or meta-annotation of the specified type, orMergedAnnotation.missing()if none is present.<A extends Annotation>
MergedAnnotation<A>MergedAnnotations.get(Class<A> annotationType, Predicate<? super MergedAnnotation<A>> predicate, MergedAnnotationSelector<A> selector) Get a matching annotation or meta-annotation of the specified type, orMergedAnnotation.missing()if none is present.<A extends Annotation>
MergedAnnotation<A>MergedAnnotations.get(Class<A> annotationType, Predicate<? super MergedAnnotation<A>> predicate, MergedAnnotationSelector<A> selector) Get a matching annotation or meta-annotation of the specified type, orMergedAnnotation.missing()if none is present.<A extends Annotation>
MergedAnnotation<A>MergedAnnotations.get(String annotationType, Predicate<? super MergedAnnotation<A>> predicate) Get the nearest matching annotation or meta-annotation of the specified type, orMergedAnnotation.missing()if none is present.<A extends Annotation>
MergedAnnotation<A>MergedAnnotations.get(String annotationType, Predicate<? super MergedAnnotation<A>> predicate, MergedAnnotationSelector<A> selector) Get a matching annotation or meta-annotation of the specified type, orMergedAnnotation.missing()if none is present.<A extends Annotation>
MergedAnnotation<A>MergedAnnotations.get(String annotationType, Predicate<? super MergedAnnotation<A>> predicate, MergedAnnotationSelector<A> selector) Get a matching annotation or meta-annotation of the specified type, orMergedAnnotation.missing()if none is present.<A extends Annotation>
MergedAnnotation<A>MergedAnnotationsCollection.get(Class<A> annotationType, Predicate<? super MergedAnnotation<A>> predicate) <A extends Annotation>
MergedAnnotation<A>MergedAnnotationsCollection.get(Class<A> annotationType, Predicate<? super MergedAnnotation<A>> predicate, MergedAnnotationSelector<A> selector) <A extends Annotation>
MergedAnnotation<A>MergedAnnotationsCollection.get(Class<A> annotationType, Predicate<? super MergedAnnotation<A>> predicate, MergedAnnotationSelector<A> selector) <A extends Annotation>
MergedAnnotation<A>MergedAnnotationsCollection.get(String annotationType, Predicate<? super MergedAnnotation<A>> predicate) <A extends Annotation>
MergedAnnotation<A>MergedAnnotationsCollection.get(String annotationType, Predicate<? super MergedAnnotation<A>> predicate, MergedAnnotationSelector<A> selector) <A extends Annotation>
MergedAnnotation<A>MergedAnnotationsCollection.get(String annotationType, Predicate<? super MergedAnnotation<A>> predicate, MergedAnnotationSelector<A> selector) <A extends Annotation>
MergedAnnotation<A>TypeMappedAnnotations.get(Class<A> annotationType, Predicate<? super MergedAnnotation<A>> predicate) <A extends Annotation>
MergedAnnotation<A>TypeMappedAnnotations.get(Class<A> annotationType, Predicate<? super MergedAnnotation<A>> predicate, MergedAnnotationSelector<A> selector) <A extends Annotation>
MergedAnnotation<A>TypeMappedAnnotations.get(Class<A> annotationType, Predicate<? super MergedAnnotation<A>> predicate, MergedAnnotationSelector<A> selector) <A extends Annotation>
MergedAnnotation<A>TypeMappedAnnotations.get(String annotationType, Predicate<? super MergedAnnotation<A>> predicate) <A extends Annotation>
MergedAnnotation<A>TypeMappedAnnotations.get(String annotationType, Predicate<? super MergedAnnotation<A>> predicate, MergedAnnotationSelector<A> selector) <A extends Annotation>
MergedAnnotation<A>TypeMappedAnnotations.get(String annotationType, Predicate<? super MergedAnnotation<A>> predicate, MergedAnnotationSelector<A> selector) static AnnotationAttributesAnnotationUtils.getAnnotationAttributes(AnnotatedElement annotatedElement, Annotation annotation) Retrieve the given annotation's attributes as anAnnotationAttributesmap.static AnnotationAttributesAnnotationUtils.getAnnotationAttributes(AnnotatedElement annotatedElement, Annotation annotation, boolean classValuesAsString, boolean nestedAnnotationsAsMap) Retrieve the given annotation's attributes as anAnnotationAttributesmap.private static Class<? extends Annotation>AnnotationAttributes.getAnnotationType(String annotationType, ClassLoader classLoader) static <A extends Annotation>
Set<A>AnnotationUtils.getDeclaredRepeatableAnnotations(AnnotatedElement annotatedElement, Class<A> annotationType, Class<? extends Annotation> containerAnnotationType) Get the declared repeatable annotations ofannotationTypefrom the suppliedAnnotatedElement, where such annotations are either directly present, indirectly present, or meta-present on the element.static ObjectAnnotationUtils.getDefaultValue(Annotation annotation, String attributeName) Retrieve the default value of a named attribute, given an annotation instance.static ObjectAnnotationUtils.getDefaultValue(Annotation annotation, String attributeName) Retrieve the default value of a named attribute, given an annotation instance.static ObjectAnnotationUtils.getDefaultValue(Class<? extends Annotation> annotationType, String attributeName) Retrieve the default value of a named attribute, given theannotation type.static ObjectAnnotationUtils.getDefaultValue(Class<? extends Annotation> annotationType, String attributeName) Retrieve the default value of a named attribute, given theannotation type.<T> Optional<T>MissingMergedAnnotation.getDefaultValue(String attributeName, Class<T> type) static <A extends Annotation>
Set<A>AnnotatedElementUtils.getMergedRepeatableAnnotations(AnnotatedElement element, Class<A> annotationType, Class<? extends Annotation> containerType) Get all repeatable annotations of the specifiedannotationTypewithin the annotation hierarchy above the suppliedelement; and for each annotation found, merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy and synthesize the results back into an annotation of the specifiedannotationType.AnnotatedElementUtils.getMetaAnnotationTypes(Annotation annotation) static IntegerReturn the order on the specifiedtype, or the specified default value if none can be found.private static MergedAnnotationsAnnotatedElementUtils.getRepeatableAnnotations(AnnotatedElement element, Class<? extends Annotation> containerType, Class<? extends Annotation> annotationType) static <A extends Annotation>
Set<A>AnnotationUtils.getRepeatableAnnotations(AnnotatedElement annotatedElement, Class<A> annotationType, Class<? extends Annotation> containerAnnotationType) Get the repeatable annotations ofannotationTypefrom the suppliedAnnotatedElement, where such annotations are either present, indirectly present, or meta-present on the element.static ObjectAnnotationUtils.getValue(Annotation annotation, String attributeName) Retrieve the value of a named attribute, given an annotation instance.static ObjectAnnotationUtils.getValue(Annotation annotation, String attributeName) Retrieve the value of a named attribute, given an annotation instance.(专用程序包) static voidAnnotationUtils.handleIntrospectionFailure(AnnotatedElement element, Throwable ex) Handle the supplied annotation introspection exception.(专用程序包) static booleanAnnotationsScanner.hasPlainJavaAnnotationsOnly(Object annotatedElement) static booleanAnnotationUtils.isAnnotationMetaPresent(Class<? extends Annotation> annotationType, Class<? extends Annotation> metaAnnotationType) Determine if an annotation of typemetaAnnotationTypeis meta-present on the suppliedannotationType.static booleanAnnotationUtils.isCandidateClass(Class<?> clazz, Class<? extends Annotation> annotationType) Determine whether the given class is a candidate for carrying the specified annotation (at type, method or field level).static booleanAnnotationUtils.isCandidateClass(Class<?> clazz, Class<? extends Annotation> annotationType1, Class<? extends Annotation> annotationType2) Determine whether the given class is a candidate for carrying the specified annotation (at type, method or field level).static booleanAnnotationUtils.isCandidateClass(Class<?> clazz, Class<? extends Annotation> annotationType1, Class<? extends Annotation> annotationType2) Determine whether the given class is a candidate for carrying the specified annotation (at type, method or field level).static booleanAnnotationUtils.isInJavaLangAnnotationPackage(Annotation annotation) Determine if the suppliedAnnotationis defined in the core JDKjava.lang.annotationpackage.static booleanAnnotationUtils.isInJavaLangAnnotationPackage(String annotationType) Determine if theAnnotationwith the supplied name is defined in the core JDKjava.lang.annotationpackage.private static booleanMergedAnnotationsCollection.isMappingForType(AnnotationTypeMapping mapping, Object requiredType) private static booleanTypeMappedAnnotations.isMappingForType(AnnotationTypeMapping mapping, AnnotationFilter filter, Object requiredType) private booleanAnnotationTypeMappings.isNotMappable(AnnotationTypeMapping source, Annotation metaAnnotation) static <A extends Annotation>
booleanAnnotationUtils.isPresent(AnnotatedElement element, Class<A> annType) Whether aAnnotationpresent onAnnotatedElementstatic <A extends Annotation>
booleanAnnotationUtils.isPresent(AnnotatedElement element, Class<A> annType) Whether aAnnotationpresent onAnnotatedElementstatic booleanAnnotationUtils.isSynthesizedAnnotation(Annotation annotation) Determine if the suppliedAnnotationhas been synthesized by Infra (i.e. wrapped in a dynamic proxy) with additional functionality such as attribute alias handling.(专用程序包) voidprivate static <T> List<T>(专用程序包) static <A extends Annotation>
MergedAnnotation<A>TypeMappedAnnotation.of(ClassLoader classLoader, Object source, Class<A> annotationType, Map<String, ?> attributes) (专用程序包) static <A extends Annotation>
MergedAnnotation<A>TypeMappedAnnotation.of(ClassLoader classLoader, Object source, Class<A> annotationType, Map<String, ?> attributes) (专用程序包) static <A extends Annotation>
MergedAnnotation<A>TypeMappedAnnotation.of(ClassLoader classLoader, Object source, Class<A> annotationType, Map<String, ?> attributes) static voidAnnotationUtils.postProcessAnnotationAttributes(Object annotatedElement, AnnotationAttributes attributes, boolean classValuesAsString) Post-process the suppliedAnnotationAttributes, preserving nested annotations asAnnotationinstances.static voidAnnotationUtils.postProcessAnnotationAttributes(Object annotatedElement, AnnotationAttributes attributes, boolean classValuesAsString) Post-process the suppliedAnnotationAttributes, preserving nested annotations asAnnotationinstances.private MergedAnnotation<A>TypeMappedAnnotations.MergedAnnotationFinder.process(Object type, int aggregateIndex, Object source, Annotation annotation) (专用程序包) <A> intAnnotationTypeMapping.MirrorSets.MirrorSet.resolve(Object source, A annotation, ValueExtractor valueExtractor) (专用程序包) <A> intAnnotationTypeMapping.MirrorSets.MirrorSet.resolve(Object source, A annotation, ValueExtractor valueExtractor) (专用程序包) int[]AnnotationTypeMapping.MirrorSets.resolve(Object source, Object annotation, ValueExtractor valueExtractor) (专用程序包) int[]AnnotationTypeMapping.MirrorSets.resolve(Object source, Object annotation, ValueExtractor valueExtractor) static voidAnnotationAwareOrderComparator.sortIfNecessary(Object value) Sort the given array or List with a default AnnotationAwareOrderComparator, if necessary.private <A extends Annotation>
Spliterator<MergedAnnotation<A>>MergedAnnotationsCollection.spliterator(Object annotationType) private <A extends Annotation>
Spliterator<MergedAnnotation<A>>TypeMappedAnnotations.spliterator(Object annotationType) static <A extends Annotation>
AAnnotationUtils.synthesizeAnnotation(A annotation, AnnotatedElement annotatedElement) Synthesize an annotation from the suppliedannotationby wrapping it in a dynamic proxy that transparently enforces attribute alias semantics for annotation attributes that are annotated with@AliasFor.static <A extends Annotation>
AAnnotationUtils.synthesizeAnnotation(Map<String, Object> attributes, Class<A> annotationType, AnnotatedElement annotatedElement) Synthesize an annotation from the supplied map of annotation attributes by wrapping the map in a dynamic proxy that implements an annotation of the specifiedannotationTypeand transparently enforces attribute alias semantics for annotation attributes that are annotated with@AliasFor.booleanMergedAnnotationPredicates.FirstRunOfPredicate.test(MergedAnnotation<A> annotation) booleanMergedAnnotationPredicates.UniquePredicate.test(MergedAnnotation<A> annotation) static <A extends Annotation>
MergedAnnotation<A>Create a newMergedAnnotationinstance of the specified annotation type with attribute values supplied by a map.static <A extends Annotation>
MergedAnnotation<A>MergedAnnotation.valueOf(ClassLoader classLoader, Object source, Class<A> annotationType, Map<String, ?> attributes) Create a newMergedAnnotationinstance of the specified annotation type with attribute values supplied by a map.static <A extends Annotation>
MergedAnnotation<A>MergedAnnotation.valueOf(ClassLoader classLoader, Object source, Class<A> annotationType, Map<String, ?> attributes) Create a newMergedAnnotationinstance of the specified annotation type with attribute values supplied by a map.static <A extends Annotation>
MergedAnnotation<A>MergedAnnotation.valueOf(ClassLoader classLoader, Object source, Class<A> annotationType, Map<String, ?> attributes) Create a newMergedAnnotationinstance of the specified annotation type with attribute values supplied by a map.static <A extends Annotation>
MergedAnnotation<A>MergedAnnotation.valueOf(AnnotatedElement source, Class<A> annotationType, Map<String, ?> attributes) Create a newMergedAnnotationinstance of the specified annotation type with attribute values supplied by a map.static <A extends Annotation>
MergedAnnotation<A>MergedAnnotation.valueOf(AnnotatedElement source, Class<A> annotationType, Map<String, ?> attributes) Create a newMergedAnnotationinstance of the specified annotation type with attribute values supplied by a map.static MergedAnnotationsMergedAnnotations.valueOf(Collection<MergedAnnotation<?>> annotations) Create a newMergedAnnotationsinstance from the specified collection of directly present annotations.(专用程序包) static MergedAnnotationsMergedAnnotationsCollection.valueOf(Collection<MergedAnnotation<?>> annotations) static RepeatableContainersRepeatableContainers.valueOf(Class<? extends Annotation> repeatable, Class<? extends Annotation> container) Create aRepeatableContainersinstance that uses predefined repeatable and container types.注释类型为Nullable的cn.taketoday.core.annotation中的构造器参数限定符构造器说明(专用程序包)Aggregate(int aggregateIndex, Object source, ArrayList<Annotation> annotations) (专用程序包)AggregatesSpliterator(Object requiredType, List<TypeMappedAnnotations.Aggregate> aggregates) AnnotationAttributes(String annotationType, ClassLoader classLoader) Create a new, emptyAnnotationAttributesinstance for the specifiedannotationType.AnnotationsSpliterator(Object requiredType) (专用程序包)AnnotationTypeMapping(AnnotationTypeMapping source, Class<? extends Annotation> annotationType, Annotation annotation, Set<Class<? extends Annotation>> visitedAnnotationTypes) (专用程序包)AnnotationTypeMapping(AnnotationTypeMapping source, Class<? extends Annotation> annotationType, Annotation annotation, Set<Class<? extends Annotation>> visitedAnnotationTypes) privateAttributeMethods(Class<? extends Annotation> annotationType, Method[] attributes) (专用程序包)ExplicitRepeatableContainer(RepeatableContainers parent, Class<? extends Annotation> repeatable, Class<? extends Annotation> container) (专用程序包)ExplicitRepeatableContainer(RepeatableContainers parent, Class<? extends Annotation> repeatable, Class<? extends Annotation> container) (专用程序包)MergedAnnotationFinder(Object requiredType, Predicate<? super MergedAnnotation<A>> predicate, MergedAnnotationSelector<A> selector) (专用程序包)MergedAnnotationFinder(Object requiredType, Predicate<? super MergedAnnotation<A>> predicate, MergedAnnotationSelector<A> selector) privateprivateTypeMappedAnnotation(AnnotationTypeMapping mapping, ClassLoader classLoader, Object source, Object rootAttributes, ValueExtractor valueExtractor, int aggregateIndex) privateTypeMappedAnnotation(AnnotationTypeMapping mapping, ClassLoader classLoader, Object source, Object rootAttributes, ValueExtractor valueExtractor, int aggregateIndex) privateTypeMappedAnnotation(AnnotationTypeMapping mapping, ClassLoader classLoader, Object source, Object rootAttributes, ValueExtractor valueExtractor, int aggregateIndex) privateTypeMappedAnnotation(AnnotationTypeMapping mapping, ClassLoader classLoader, Object source, Object rootAnnotation, ValueExtractor valueExtractor, int aggregateIndex, boolean useMergedValues, Predicate<String> attributeFilter, int[] resolvedRootMirrors, int[] resolvedMirrors) privateTypeMappedAnnotation(AnnotationTypeMapping mapping, ClassLoader classLoader, Object source, Object rootAnnotation, ValueExtractor valueExtractor, int aggregateIndex, boolean useMergedValues, Predicate<String> attributeFilter, int[] resolvedRootMirrors, int[] resolvedMirrors) privateTypeMappedAnnotation(AnnotationTypeMapping mapping, ClassLoader classLoader, Object source, Object rootAnnotation, ValueExtractor valueExtractor, int aggregateIndex, boolean useMergedValues, Predicate<String> attributeFilter, int[] resolvedRootMirrors, int[] resolvedMirrors) privateTypeMappedAnnotation(AnnotationTypeMapping mapping, ClassLoader classLoader, Object source, Object rootAnnotation, ValueExtractor valueExtractor, int aggregateIndex, boolean useMergedValues, Predicate<String> attributeFilter, int[] resolvedRootMirrors, int[] resolvedMirrors) privateTypeMappedAnnotation(AnnotationTypeMapping mapping, ClassLoader classLoader, Object source, Object rootAttributes, ValueExtractor valueExtractor, int aggregateIndex, int[] resolvedRootMirrors) privateTypeMappedAnnotation(AnnotationTypeMapping mapping, ClassLoader classLoader, Object source, Object rootAttributes, ValueExtractor valueExtractor, int aggregateIndex, int[] resolvedRootMirrors) privateTypeMappedAnnotation(AnnotationTypeMapping mapping, ClassLoader classLoader, Object source, Object rootAttributes, ValueExtractor valueExtractor, int aggregateIndex, int[] resolvedRootMirrors) privateTypeMappedAnnotation(AnnotationTypeMapping mapping, ClassLoader classLoader, Object source, Object rootAttributes, ValueExtractor valueExtractor, int aggregateIndex, int[] resolvedRootMirrors) privateTypeMappedAnnotations(Object source, Annotation[] annotations, RepeatableContainers repeatableContainers, AnnotationFilter annotationFilter) privateTypeMappedAnnotations(Object source, Annotation[] annotations, RepeatableContainers repeatableContainers, AnnotationFilter annotationFilter) privateTypeMappedAnnotations(AnnotatedElement element, MergedAnnotations.SearchStrategy searchStrategy, Predicate<Class<?>> searchEnclosingClass, RepeatableContainers repeatableContainers, AnnotationFilter annotationFilter) privateTypeMappedAnnotations(AnnotatedElement element, MergedAnnotations.SearchStrategy searchStrategy, Predicate<Class<?>> searchEnclosingClass, RepeatableContainers repeatableContainers, AnnotationFilter annotationFilter) -
cn.taketoday.core.codec中Nullable的使用
注释类型为Nullable的cn.taketoday.core.codec中的方法修饰符和类型方法说明default TDecoder.decode(DataBuffer buffer, ResolvableType targetType, MimeType mimeType, Map<String, Object> hints) Decode a data buffer to an Object of type T.注释类型为Nullable的cn.taketoday.core.codec中的方法参数修饰符和类型方法说明booleanAbstractDecoder.canDecode(ResolvableType elementType, MimeType mimeType) booleanByteArrayDecoder.canDecode(ResolvableType elementType, MimeType mimeType) booleanByteBufferDecoder.canDecode(ResolvableType elementType, MimeType mimeType) booleanCharBufferDecoder.canDecode(ResolvableType elementType, MimeType mimeType) booleanDataBufferDecoder.canDecode(ResolvableType elementType, MimeType mimeType) booleanDecoder.canDecode(ResolvableType elementType, MimeType mimeType) Whether the decoder supports the given target element type and the MIME type of the source stream.booleanNetty5BufferDecoder.canDecode(ResolvableType elementType, MimeType mimeType) booleanNettyByteBufDecoder.canDecode(ResolvableType elementType, MimeType mimeType) booleanResourceDecoder.canDecode(ResolvableType elementType, MimeType mimeType) booleanStringDecoder.canDecode(ResolvableType elementType, MimeType mimeType) booleanAbstractEncoder.canEncode(ResolvableType elementType, MimeType mimeType) booleanByteArrayEncoder.canEncode(ResolvableType elementType, MimeType mimeType) booleanByteBufferEncoder.canEncode(ResolvableType elementType, MimeType mimeType) booleanCharSequenceEncoder.canEncode(ResolvableType elementType, MimeType mimeType) booleanDataBufferEncoder.canEncode(ResolvableType elementType, MimeType mimeType) booleanEncoder.canEncode(ResolvableType elementType, MimeType mimeType) Whether the encoder supports the given source element type and the MIME type for the output stream.booleanNetty5BufferEncoder.canEncode(ResolvableType type, MimeType mimeType) booleanNettyByteBufEncoder.canEncode(ResolvableType type, MimeType mimeType) booleanResourceEncoder.canEncode(ResolvableType elementType, MimeType mimeType) booleanResourceRegionEncoder.canEncode(ResolvableType elementType, MimeType mimeType) final TAbstractCharSequenceDecoder.decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) final TAbstractCharSequenceDecoder.decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) final reactor.core.publisher.Flux<T>AbstractCharSequenceDecoder.decode(org.reactivestreams.Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) final reactor.core.publisher.Flux<T>AbstractCharSequenceDecoder.decode(org.reactivestreams.Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<T>AbstractDataBufferDecoder.decode(org.reactivestreams.Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<T>AbstractDataBufferDecoder.decode(org.reactivestreams.Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) byte[]ByteArrayDecoder.decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) byte[]ByteArrayDecoder.decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) ByteBufferDecoder.decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) ByteBufferDecoder.decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) DataBufferDecoder.decode(DataBuffer buffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) DataBufferDecoder.decode(DataBuffer buffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>DataBufferDecoder.decode(org.reactivestreams.Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>DataBufferDecoder.decode(org.reactivestreams.Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) default TDecoder.decode(DataBuffer buffer, ResolvableType targetType, MimeType mimeType, Map<String, Object> hints) Decode a data buffer to an Object of type T.default TDecoder.decode(DataBuffer buffer, ResolvableType targetType, MimeType mimeType, Map<String, Object> hints) Decode a data buffer to an Object of type T.reactor.core.publisher.Flux<T>Decoder.decode(org.reactivestreams.Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Decode aDataBufferinput stream into a Flux ofT.reactor.core.publisher.Flux<T>Decoder.decode(org.reactivestreams.Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Decode aDataBufferinput stream into a Flux ofT.io.netty5.buffer.BufferNetty5BufferDecoder.decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) io.netty5.buffer.BufferNetty5BufferDecoder.decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) io.netty.buffer.ByteBufNettyByteBufDecoder.decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) io.netty.buffer.ByteBufNettyByteBufDecoder.decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) ResourceDecoder.decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) ResourceDecoder.decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<Resource>ResourceDecoder.decode(org.reactivestreams.Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<Resource>ResourceDecoder.decode(org.reactivestreams.Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Mono<T>AbstractDataBufferDecoder.decodeToMono(org.reactivestreams.Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Mono<T>AbstractDataBufferDecoder.decodeToMono(org.reactivestreams.Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Mono<T>AbstractDecoder.decodeToMono(org.reactivestreams.Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Mono<T>AbstractDecoder.decodeToMono(org.reactivestreams.Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Mono<T>Decoder.decodeToMono(org.reactivestreams.Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Decode aDataBufferinput stream into a Mono ofT.reactor.core.publisher.Mono<T>Decoder.decodeToMono(org.reactivestreams.Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Decode aDataBufferinput stream into a Mono ofT.final reactor.core.publisher.Flux<DataBuffer>AbstractSingleValueEncoder.encode(org.reactivestreams.Publisher<? extends T> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) final reactor.core.publisher.Flux<DataBuffer>AbstractSingleValueEncoder.encode(org.reactivestreams.Publisher<? extends T> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) protected abstract reactor.core.publisher.Flux<DataBuffer>AbstractSingleValueEncoder.encode(T t, DataBufferFactory dataBufferFactory, ResolvableType type, MimeType mimeType, Map<String, Object> hints) EncodeTto an outputDataBufferstream.protected abstract reactor.core.publisher.Flux<DataBuffer>AbstractSingleValueEncoder.encode(T t, DataBufferFactory dataBufferFactory, ResolvableType type, MimeType mimeType, Map<String, Object> hints) EncodeTto an outputDataBufferstream.reactor.core.publisher.Flux<DataBuffer>ByteArrayEncoder.encode(org.reactivestreams.Publisher<? extends byte[]> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>ByteArrayEncoder.encode(org.reactivestreams.Publisher<? extends byte[]> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>ByteBufferEncoder.encode(org.reactivestreams.Publisher<? extends ByteBuffer> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>ByteBufferEncoder.encode(org.reactivestreams.Publisher<? extends ByteBuffer> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>CharSequenceEncoder.encode(org.reactivestreams.Publisher<? extends CharSequence> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>CharSequenceEncoder.encode(org.reactivestreams.Publisher<? extends CharSequence> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>DataBufferEncoder.encode(org.reactivestreams.Publisher<? extends DataBuffer> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>DataBufferEncoder.encode(org.reactivestreams.Publisher<? extends DataBuffer> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>Encoder.encode(org.reactivestreams.Publisher<? extends T> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Encode a stream of Objects of typeTinto aDataBufferoutput stream.reactor.core.publisher.Flux<DataBuffer>Encoder.encode(org.reactivestreams.Publisher<? extends T> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Encode a stream of Objects of typeTinto aDataBufferoutput stream.reactor.core.publisher.Flux<DataBuffer>Netty5BufferEncoder.encode(org.reactivestreams.Publisher<? extends io.netty5.buffer.Buffer> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>Netty5BufferEncoder.encode(org.reactivestreams.Publisher<? extends io.netty5.buffer.Buffer> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>NettyByteBufEncoder.encode(org.reactivestreams.Publisher<? extends io.netty.buffer.ByteBuf> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>NettyByteBufEncoder.encode(org.reactivestreams.Publisher<? extends io.netty.buffer.ByteBuf> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) protected reactor.core.publisher.Flux<DataBuffer>ResourceEncoder.encode(Resource resource, DataBufferFactory bufferFactory, ResolvableType type, MimeType mimeType, Map<String, Object> hints) protected reactor.core.publisher.Flux<DataBuffer>ResourceEncoder.encode(Resource resource, DataBufferFactory bufferFactory, ResolvableType type, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>ResourceRegionEncoder.encode(org.reactivestreams.Publisher<? extends ResourceRegion> input, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>ResourceRegionEncoder.encode(org.reactivestreams.Publisher<? extends ResourceRegion> input, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) ByteArrayEncoder.encodeValue(byte[] bytes, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) ByteArrayEncoder.encodeValue(byte[] bytes, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) ByteBufferEncoder.encodeValue(ByteBuffer byteBuffer, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) ByteBufferEncoder.encodeValue(ByteBuffer byteBuffer, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) CharSequenceEncoder.encodeValue(CharSequence charSequence, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) CharSequenceEncoder.encodeValue(CharSequence charSequence, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) DataBufferEncoder.encodeValue(DataBuffer buffer, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) DataBufferEncoder.encodeValue(DataBuffer buffer, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) default DataBufferEncoder.encodeValue(T value, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) Encode an Object of type T to a data buffer.default DataBufferEncoder.encodeValue(T value, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) Encode an Object of type T to a data buffer.Netty5BufferEncoder.encodeValue(io.netty5.buffer.Buffer buffer, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) Netty5BufferEncoder.encodeValue(io.netty5.buffer.Buffer buffer, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) NettyByteBufEncoder.encodeValue(io.netty.buffer.ByteBuf byteBuf, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) NettyByteBufEncoder.encodeValue(io.netty.buffer.ByteBuf byteBuf, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) private CharsetAbstractCharSequenceDecoder.getCharset(MimeType mimeType) private CharsetCharSequenceEncoder.getCharset(MimeType mimeType) private byte[][]AbstractCharSequenceDecoder.getDelimiterBytes(MimeType mimeType) static StringHints.getLogPrefix(Map<String, Object> hints) Obtain the hintHints.LOG_PREFIX_HINT, if present, or an empty String.static <T> THints.getRequiredHint(Map<String, Object> hints, String hintName) Obtain the value for a required hint.static booleanHints.isLoggingSuppressed(Map<String, Object> hints) Whether to suppress logging based on the hintHints.SUPPRESS_LOGGING_HINT.private voidDataBufferEncoder.logValue(DataBuffer buffer, Map<String, Object> hints) Merge a single hint into a map of hints, possibly creating and copying all hints into a new map, or otherwise if the map of hints is empty, creating a new single entry map.Merge two maps of hints, creating and copying into a new map if both have values, or returning the non-empty map, or an empty map if both are empty.Merge two maps of hints, creating and copying into a new map if both have values, or returning the non-empty map, or an empty map if both are empty.static voidHints.touchDataBuffer(DataBuffer buffer, Map<String, Object> hints, Logger logger) If the hints contain aHints.LOG_PREFIX_HINTand the given logger has DEBUG level enabled, apply the log prefix as a hint to the given buffer viaDataBufferUtils.touch(DataBuffer, Object).private reactor.core.publisher.Flux<DataBuffer>ResourceRegionEncoder.writeResourceRegion(ResourceRegion region, DataBufferFactory bufferFactory, Map<String, Object> hints) 注释类型为Nullable的cn.taketoday.core.codec中的构造器参数限定符构造器说明CodecException(String msg, Throwable cause) Create a new CodecException.DecodingException(String msg, Throwable cause) Create a new DecodingException.EncodingException(String msg, Throwable cause) Create a new EncodingException. -
cn.taketoday.core.conversion中Nullable的使用
注释类型为Nullable的cn.taketoday.core.conversion中的字段修饰符和类型字段说明private final TypeDescriptorConversionFailedException.sourceTypeprivate final TypeDescriptorConverterNotFoundException.sourceTypeprivate final ObjectConversionFailedException.value注释类型为Nullable的cn.taketoday.core.conversion中的方法修饰符和类型方法说明<T> TConversionService.convert(Object source, TypeDescriptor targetType) Convert the givensourceto the specifiedtargetType.ConversionService.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) Convert the givensourceto the specifiedtargetType.<T> TConvert the givensourceto the specifiedtargetType.Convert the source object of typeSto target typeT.GenericConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) Convert the source object to the targetType described by theTypeDescriptor.ConversionService.getConverter(TypeDescriptor sourceType, TypeDescriptor targetType) Hook method to lookup the converter for a given sourceType/targetType pair.default GenericConverterConversionService.getConverter(Class<?> sourceType, TypeDescriptor targetType) Hook method to lookup the converter for a given sourceType/targetType pair.default GenericConverterConversionService.getConverter(Class<?> sourceType, Class<?> targetType) Hook method to lookup the converter for a given sourceType/targetType pair.default GenericConverterConversionService.getConverter(Object sourceObject, TypeDescriptor targetType) Hook method to lookup the converter for a given sourceType/targetType pair.default GenericConverterConversionService.getConverter(Object sourceObject, Class<?> targetType) Hook method to lookup the converter for a given sourceType/targetType pair.GenericConverter.getConvertibleTypes()Return the source and target types that this converter can convert between.ConversionFailedException.getSourceType()Return the source type we tried to convert the value from.ConverterNotFoundException.getSourceType()Return the source type that was requested to convert from.ConversionFailedException.getValue()Return the offending value.注释类型为Nullable的cn.taketoday.core.conversion中的方法参数修饰符和类型方法说明booleanConversionService.canConvert(TypeDescriptor sourceType, TypeDescriptor targetType) Returntrueif objects ofsourceTypecan be converted to thetargetType.booleanConversionService.canConvert(Class<?> sourceType, Class<?> targetType) Returntrueif objects ofsourceTypecan be converted to thetargetType.<T> TConversionService.convert(Object source, TypeDescriptor targetType) Convert the givensourceto the specifiedtargetType.ConversionService.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) Convert the givensourceto the specifiedtargetType.ConversionService.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) Convert the givensourceto the specifiedtargetType.<T> TConvert the givensourceto the specifiedtargetType.GenericConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) Convert the source object to the targetType described by theTypeDescriptor.boolean指示某个其他对象是否“等于”此对象。static voidConverterRegistry.registerConverters(Set<?> converters, ConverterRegistry registry) Register the given Converter objects with the given target ConverterRegistry.注释类型为Nullable的cn.taketoday.core.conversion中的构造器参数限定符构造器说明ConversionFailedException(TypeDescriptor sourceType, TypeDescriptor targetType, Object value, Throwable cause) Create a new conversion exception.ConversionFailedException(TypeDescriptor sourceType, TypeDescriptor targetType, Object value, Throwable cause) Create a new conversion exception.ConverterNotFoundException(TypeDescriptor sourceType, TypeDescriptor targetType) Create a new conversion executor not found exception. -
cn.taketoday.core.conversion.support中Nullable的使用
修饰符和类型字段说明private final ObjectMapToMapConverter.MapEntry.keykey记录组件的字段。private static DefaultConversionServiceDefaultConversionService.sharedInstanceprivate final ObjectMapToMapConverter.MapEntry.valuevalue记录组件的字段。修饰符和类型方法说明ArrayToArrayConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) ArrayToCollectionConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) ArrayToObjectConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) ArrayToStringConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) ByteBufferConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) CollectionToArrayConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) CollectionToCollectionConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) CollectionToObjectConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) CollectionToStringConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) FallbackObjectToStringConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) <T> TGenericConversionService.convert(Object source, TypeDescriptor targetType) Convenience operation for converting a source object to the specified targetType, where the target type is a descriptor that provides additional conversion context.GenericConversionService.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) <T> TGenericConversionService.ConverterAdapter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) GenericConversionService.ConverterFactoryAdapter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) GenericConversionService.NoOpConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) IdToEntityConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) MapToMapConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) ObjectToArrayConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) ObjectToCollectionConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) ObjectToObjectConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) StreamConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) StringToArrayConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) StringToCollectionConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) private ObjectByteBufferConverter.convertFromByteBuffer(ByteBuffer source, TypeDescriptor targetType) private ObjectStreamConverter.convertFromStream(Stream<?> source, TypeDescriptor streamType, TypeDescriptor targetType) private ObjectMapToMapConverter.convertKey(Object sourceKey, TypeDescriptor sourceType, TypeDescriptor targetType) protected ObjectGenericConversionService.convertNullSource(TypeDescriptor sourceType, TypeDescriptor targetType) Template method to convert anullsource.private ObjectMapToMapConverter.convertValue(Object sourceValue, TypeDescriptor sourceType, TypeDescriptor targetType) private static Constructor<?>ObjectToObjectConverter.determineFactoryConstructor(Class<?> targetClass, Class<?> sourceClass) private static MethodObjectToObjectConverter.determineFactoryMethod(Class<?> targetClass, Class<?> sourceClass) private static MethodObjectToObjectConverter.determineToMethod(Class<?> targetClass, Class<?> sourceClass) GenericConversionService.Converters.find(TypeDescriptor sourceType, TypeDescriptor targetType) Find aGenericConvertergiven a source and target type.ConvertingPropertyEditorAdapter.getAsText()GenericConversionService.ConvertersForPair.getConverter(TypeDescriptor sourceType, TypeDescriptor targetType) GenericConversionService.getConverter(TypeDescriptor sourceType, TypeDescriptor targetType) Hook method to lookup the converter for a given sourceType/targetType pair.GenericConversionService.NoOpConverter.getConvertibleTypes()protected GenericConverterGenericConversionService.getDefaultConverter(TypeDescriptor sourceType, TypeDescriptor targetType) Return the default converter if no converter is found for the given sourceType/targetType pair.private Methodprivate GenericConverterGenericConversionService.Converters.getRegisteredConverter(TypeDescriptor sourceType, TypeDescriptor targetType, GenericConverter.ConvertiblePair convertiblePair) private ResolvableType[]GenericConversionService.getRequiredTypeInfo(Class<?> converterClass, Class<?> genericIfc) private static ExecutableObjectToObjectConverter.getValidatedExecutable(Class<?> targetClass, Class<?> sourceClass) private ObjectGenericConversionService.handleConverterNotFound(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) private ObjectGenericConversionService.handleResult(TypeDescriptor sourceType, TypeDescriptor targetType, Object result) static ObjectConversionUtils.invokeConverter(GenericConverter converter, Object source, TypeDescriptor sourceType, TypeDescriptor targetType) MapToMapConverter.MapEntry.key()返回key记录组件的值。MapToMapConverter.MapEntry.value()返回value记录组件的值。注释类型为Nullable的cn.taketoday.core.conversion.support中的方法参数修饰符和类型方法说明private voidGenericConversionService.assertNotPrimitiveTargetType(TypeDescriptor sourceType, TypeDescriptor targetType) booleanGenericConversionService.canBypassConvert(TypeDescriptor sourceType, TypeDescriptor targetType) Return whether conversion between the source type and the target type can be bypassed.booleanGenericConversionService.canConvert(TypeDescriptor sourceType, TypeDescriptor targetType) booleanGenericConversionService.canConvert(Class<?> sourceType, Class<?> targetType) static booleanConversionUtils.canConvertElements(TypeDescriptor sourceElementType, TypeDescriptor targetElementType, ConversionService conversionService) static booleanConversionUtils.canConvertElements(TypeDescriptor sourceElementType, TypeDescriptor targetElementType, ConversionService conversionService) ArrayToArrayConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) ArrayToCollectionConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) ArrayToObjectConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) ArrayToStringConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) ByteBufferConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) CollectionToArrayConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) CollectionToCollectionConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) CollectionToObjectConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) CollectionToStringConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) FallbackObjectToStringConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) <T> TGenericConversionService.convert(Object source, TypeDescriptor targetType) Convenience operation for converting a source object to the specified targetType, where the target type is a descriptor that provides additional conversion context.GenericConversionService.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) GenericConversionService.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) <T> TGenericConversionService.ConverterAdapter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) GenericConversionService.ConverterFactoryAdapter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) GenericConversionService.NoOpConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) IdToEntityConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) MapToMapConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) ObjectToArrayConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) ObjectToCollectionConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) ObjectToObjectConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) ObjectToOptionalConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) StreamConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) StringToArrayConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) StringToCollectionConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) private ObjectStreamConverter.convertFromStream(Stream<?> source, TypeDescriptor streamType, TypeDescriptor targetType) private ObjectMapToMapConverter.convertKey(Object sourceKey, TypeDescriptor sourceType, TypeDescriptor targetType) protected ObjectGenericConversionService.convertNullSource(TypeDescriptor sourceType, TypeDescriptor targetType) Template method to convert anullsource.private ObjectByteBufferConverter.convertToByteBuffer(Object source, TypeDescriptor sourceType) private ObjectStreamConverter.convertToStream(Object source, TypeDescriptor sourceType, TypeDescriptor streamType) private ObjectMapToMapConverter.convertValue(Object sourceValue, TypeDescriptor sourceType, TypeDescriptor targetType) private Collection<Object>ArrayToCollectionConverter.createCollection(Class<?> targetType, Class<?> elementType, int length) boolean指示某个其他对象是否“等于”此对象。private ObjectGenericConversionService.handleConverterNotFound(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) private ObjectGenericConversionService.handleConverterNotFound(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) private ObjectGenericConversionService.handleResult(TypeDescriptor sourceType, TypeDescriptor targetType, Object result) private ObjectGenericConversionService.handleResult(TypeDescriptor sourceType, TypeDescriptor targetType, Object result) static ObjectConversionUtils.invokeConverter(GenericConverter converter, Object source, TypeDescriptor sourceType, TypeDescriptor targetType) booleanStreamConverter.matchesFromStream(TypeDescriptor elementType, TypeDescriptor targetType) Validate that aCollectionof the elements held within the stream can be converted to the specifiedtargetType.booleanStreamConverter.matchesToStream(TypeDescriptor elementType, TypeDescriptor sourceType) Validate that the specifiedsourceTypecan be converted to aCollectionof the type of the stream elements.void注释类型为Nullable的cn.taketoday.core.conversion.support中的构造器参数 -
cn.taketoday.core.env中Nullable的使用
注释类型为Nullable的cn.taketoday.core.env中的字段修饰符和类型字段说明private ConfigurableConversionServiceAbstractPropertyResolver.conversionServiceMapPropertyResolver.keyValuesprivate PropertyPlaceholderHandlerAbstractPropertyResolver.nonStrictHelperprivate final PropertySourcesPropertySourcesPropertyResolver.propertySourcesprivate LinkedHashSet<String>AbstractPropertyResolver.requiredPropertiesprivate PropertyPlaceholderHandlerAbstractPropertyResolver.strictHelperprivate StringAbstractPropertyResolver.valueSeparator注释类型为Nullable的cn.taketoday.core.env中的方法修饰符和类型方法说明private StringSystemEnvironmentPropertySource.checkPropertyName(String name) protected <T> TAbstractPropertyResolver.convertValueIfNecessary(Object value, Class<T> targetType) Convert the given value to the specified target type, if necessary.protected StringAbstractEnvironment.doGetActiveProfilesProperty()Return the property value for the active profiles.protected StringAbstractEnvironment.doGetDefaultProfilesProperty()Return the property value for the default profiles.Return the property source with the given name,nullif not found.CommandLineArgs.getOptionValues(String optionName) Return the list of values associated with the given option.CommandLinePropertySource.getOptionValues(String name) Return the collection of values associated with the command line option having the given name.JOptCommandLinePropertySource.getOptionValues(String name) SimpleCommandLinePropertySource.getOptionValues(String name) AbstractEnvironment.getProperty(String key) <T> TAbstractEnvironment.getProperty(String key, Class<T> targetType) AbstractPropertyResolver.getProperty(String key) final StringCommandLinePropertySource.getProperty(String name) This implementation first checks to see if the name specified is the special "non-option arguments" property, and if so delegates to the abstractCommandLinePropertySource.getNonOptionArgs()method.CompositePropertySource.getProperty(String name) <T> TMapPropertyResolver.getProperty(String key, Class<T> targetValueType, boolean resolveNestedPlaceholders) MapPropertySource.getProperty(String name) PropertyResolver.getProperty(String key) Return the property value associated with the given key, ornullif the key cannot be resolved.<T> TPropertyResolver.getProperty(String key, Class<T> targetType) Return the property value associated with the given key, ornullif the key cannot be resolved.PropertySource.ComparisonPropertySource.getProperty(String name) abstract ObjectPropertySource.getProperty(String name) Return the value associated with the given name, ornullif not found.PropertySource.StubPropertySource.getProperty(String name) Always returnsnull.<T> TPropertySourcesPropertyResolver.getProperty(String key, Class<T> targetValueType, boolean resolveNestedPlaceholders) SystemEnvironmentPropertySource.getProperty(String name) This implementation returnstrueif a property with the given name or any underscore/uppercase variant thereof exists in this property source.TypedPropertyResolver.getProperty(String key) <T> TTypedPropertyResolver.getProperty(String key, Class<T> targetValueType) protected abstract StringAbstractPropertyResolver.getPropertyAsRawString(String key) Retrieve the specified property as a raw String, i.e. without resolution of nested placeholders.protected StringTypedPropertyResolver.getPropertyAsRawString(String key) Remove and return the property source with the given name,nullif not found.AbstractPropertyResolver.resolvePlaceholder(String placeholderName) 注释类型为Nullable的cn.taketoday.core.env中的方法参数修饰符和类型方法说明voidCommandLineArgs.addOptionArg(String optionName, String optionValue) Add an option argument for the given option name and add the given value to the list of values associated with this option (of which there may be zero or more).protected <T> TAbstractPropertyResolver.convertValueIfNecessary(Object value, Class<T> targetType) Convert the given value to the specified target type, if necessary.booleanbooleanThisPropertySourceobject is equal to the given object if: they are the same instance thenameproperties for both objects are equalprivate static ProfilesProfilesParser.merge(String expression, List<Profiles> elements, ProfilesParser.Operator operator) voidAbstractEnvironment.setValueSeparator(String valueSeparator) voidAbstractPropertyResolver.setValueSeparator(String valueSeparator) Specify the separating character between the placeholders replaced by this resolver and their associated default value, ornullif no such special character should be processed as a value separator.voidConfigurablePropertyResolver.setValueSeparator(String valueSeparator) Specify the separating character between the placeholders replaced by this resolver and their associated default value, ornullif no such special character should be processed as a value separator.注释类型为Nullable的cn.taketoday.core.env中的构造器参数限定符构造器说明MapPropertyResolver(Map keyValues) Create a new resolver against the given Map.PropertiesPropertyResolver(Properties keyValues) Create a new resolver against the given Properties.PropertySourcesPropertyResolver(PropertySources propertySources) Create a new resolver against the given property sources. -
cn.taketoday.core.i18n中Nullable的使用
注释类型为Nullable的cn.taketoday.core.i18n中的字段修饰符和类型字段说明private static LocaleLocaleContextHolder.defaultLocaleprivate static TimeZoneLocaleContextHolder.defaultTimeZoneprivate final LocaleSimpleLocaleContext.localeprivate final TimeZoneSimpleTimeZoneAwareLocaleContext.timeZone注释类型为Nullable的cn.taketoday.core.i18n中的方法修饰符和类型方法说明LocaleContext.getLocale()Return the current Locale, which can be fixed or determined dynamically, depending on the implementation strategy.SimpleLocaleContext.getLocale()static LocaleContextLocaleContextHolder.getLocaleContext()Return the LocaleContext associated with the current thread, if any.SimpleTimeZoneAwareLocaleContext.getTimeZone()TimeZoneAwareLocaleContext.getTimeZone()Return the current TimeZone, which can be fixed or determined dynamically, depending on the implementation strategy.注释类型为Nullable的cn.taketoday.core.i18n中的方法参数修饰符和类型方法说明static LocaleLocaleContextHolder.getLocale(LocaleContext localeContext) Return the Locale associated with the given user context, if any, or the system default Locale otherwise.static TimeZoneLocaleContextHolder.getTimeZone(LocaleContext localeContext) Return the TimeZone associated with the given user context, if any, or the system default TimeZone otherwise.static voidLocaleContextHolder.setDefaultLocale(Locale locale) Set a shared default locale at the framework level, as an alternative to the JVM-wide default locale.static voidLocaleContextHolder.setDefaultTimeZone(TimeZone timeZone) Set a shared default time zone at the framework level, as an alternative to the JVM-wide default time zone.static voidAssociate the given Locale with the current thread, preserving any TimeZone that may have been set already.static voidAssociate the given Locale with the current thread, preserving any TimeZone that may have been set already.static voidLocaleContextHolder.setLocaleContext(LocaleContext localeContext) Associate the given LocaleContext with the current thread, not exposing it as inheritable for child threads.static voidLocaleContextHolder.setLocaleContext(LocaleContext localeContext, boolean inheritable) Associate the given LocaleContext with the current thread.static voidLocaleContextHolder.setTimeZone(TimeZone timeZone) Associate the given TimeZone with the current thread, preserving any Locale that may have been set already.static voidLocaleContextHolder.setTimeZone(TimeZone timeZone, boolean inheritable) Associate the given TimeZone with the current thread, preserving any Locale that may have been set already.注释类型为Nullable的cn.taketoday.core.i18n中的构造器参数限定符构造器说明SimpleLocaleContext(Locale locale) Create a new SimpleLocaleContext that exposes the specified Locale.SimpleTimeZoneAwareLocaleContext(Locale locale, TimeZone timeZone) Create a new SimpleTimeZoneAwareLocaleContext that exposes the specified Locale and TimeZone.SimpleTimeZoneAwareLocaleContext(Locale locale, TimeZone timeZone) Create a new SimpleTimeZoneAwareLocaleContext that exposes the specified Locale and TimeZone. -
cn.taketoday.core.io中Nullable的使用
注释类型为Nullable的cn.taketoday.core.io中的字段修饰符和类型字段说明private ClassLoaderDefaultResourceLoader.classLoaderprivate StringUrlResource.cleanedUrlCleaned URL String (with normalized path), used for comparisons.private final StringPropertySourceDescriptor.encodingencoding记录组件的字段。private final FileFileSystemResource.fileprivate FileFileUrlResource.fileprivate StringPropertiesLoaderSupport.fileEncodingprotected Properties[]PropertiesLoaderSupport.localPropertiesprivate Resource[]PropertiesLoaderSupport.locationsprivate final StringPropertySourceDescriptor.namename记录组件的字段。private PropertyResolverResourceArrayPropertyEditor.propertyResolverprivate PropertyResolverResourceEditor.propertyResolverprivate final Class<? extends PropertySourceFactory>PropertySourceDescriptor.propertySourceFactorypropertySourceFactory记录组件的字段。private LinkedHashSet<ProtocolResolver>DefaultResourceLoader.protocolResolversprivate final StringResourcePropertySource.resourceNameThe original resource name, if different from the given name.private final URIUrlResource.uriOriginal URI, if available; used for URI and File access.注释类型为Nullable的cn.taketoday.core.io中的方法修饰符和类型方法说明PropertySourceDescriptor.encoding()返回encoding记录组件的值。ResourceEditor.getAsText()final ClassLoaderClassPathResource.getClassLoader()Return theClassLoaderthat this resource will be obtained from.DefaultResourceLoader.getClassLoader()Return the ClassLoader to load class path resources with.ResourceLoader.getClassLoader()Expose theClassLoaderused by thisResourceLoader.AbstractResource.getName()Determine the filename for this resource — typically the last part of the path — for example,"myfile.txt".ModuleResource.getName()Resource.getName()Determine a name for this resource, i.e. typically the last part of the path: for example, "myfile.txt".UrlResource.getName()This implementation returns the URL-decoded name of the file that this URL refers to.DefaultResourceLoader.getProtocolResolvers()Return the collection of currently registered protocol resolvers, allowing for introspection as well as modification.PropertySourceDescriptor.name()返回name记录组件的值。Class<? extends PropertySourceFactory>PropertySourceDescriptor.propertySourceFactory()返回propertySourceFactory记录组件的值。ProtocolResolver.resolve(String location, ResourceLoader resourceLoader) Resolve the given location against the given resource loader if this implementation's protocol matches.protected URLClassPathResource.resolveURL()Resolves aURLfor the underlying class path resource.注释类型为Nullable的cn.taketoday.core.io中的方法参数修饰符和类型方法说明protected voidPathMatchingPatternResourceLoader.addAllClassLoaderJarRoots(ClassLoader classLoader, ResourceConsumer consumer) Search allURLClassLoaderURLs for jar file references and add them to the given set of resources in the form of pointers to the root of the jar file content.DefaultPropertySourceFactory.createPropertySource(String name, EncodedResource resource) PropertySourceFactory.createPropertySource(String name, EncodedResource resource) Create aPropertySourcethat wraps the given resource.booleanThis implementation compares the underlying class path locations and associated class loaders.booleanbooleanThis implementation compares the underlyingPathreferences.booleanThis implementation compares the underlying URL references.static PatternResourceLoaderPatternResourceLoader.fromResourceLoader(ResourceLoader resourceLoader) Return a defaultPatternResourceLoaderfor the givenResourceLoader.private static booleanPropertySourceProcessor.isIgnorableException(Throwable ex) Determine if the supplied exception can be ignored according toignoreResourceNotFoundsemantics.static booleanReturn whether the given resource location is a URL: either a special "classpath" or "classpath*" pseudo URL or a standard URL.Resource[]Resource.list(ResourceFilter filter) listResourceunder the directoryResource[]ResourceDecorator.list(ResourceFilter filter) static PropertiesPropertiesUtils.loadAllProperties(String resourceName, ClassLoader classLoader) Load all properties from the specified class path resource (in ISO-8859-1 encoding), using the given class loader.static PropertiesConvertStringintoProperties, considering it as properties content.voidDefaultResourceLoader.setClassLoader(ClassLoader classLoader) Specify the ClassLoader to load class path resources with, ornullfor using the thread context class loader at the time of actual resource access.voidPropertiesLoaderSupport.setPropertiesPersister(PropertiesPersister propertiesPersister) Set the PropertiesPersister to use for parsing properties files.注释类型为Nullable的cn.taketoday.core.io中的构造器参数限定符构造器说明ClassPathContextResource(String path, ClassLoader classLoader) DefaultResourceLoader(ClassLoader classLoader) Create a new DefaultResourceLoader.PathMatchingPatternResourceLoader(ClassLoader classLoader) Create a new PathMatchingResourcePatternResolver with a DefaultResourceLoader.PropertySourceDescriptor(List<String> locations, boolean ignoreResourceNotFound, String name, Class<? extends PropertySourceFactory> propertySourceFactory, String encoding) 创建PropertySourceDescriptor记录的实例。PropertySourceDescriptor(List<String> locations, boolean ignoreResourceNotFound, String name, Class<? extends PropertySourceFactory> propertySourceFactory, String encoding) 创建PropertySourceDescriptor记录的实例。PropertySourceDescriptor(List<String> locations, boolean ignoreResourceNotFound, String name, Class<? extends PropertySourceFactory> propertySourceFactory, String encoding) 创建PropertySourceDescriptor记录的实例。ResourceArrayPropertyEditor(PatternResourceLoader resourcePatternResolver, PropertyResolver propertyResolver) Create a new ResourceArrayPropertyEditor with the givenPatternResourceLoaderandPropertyResolver(typically anEnvironment).ResourceArrayPropertyEditor(PatternResourceLoader resourcePatternResolver, PropertyResolver propertyResolver, boolean ignoreUnresolvablePlaceholders) Create a new ResourceArrayPropertyEditor with the givenPatternResourceLoaderandPropertyResolver(typically anEnvironment).ResourceEditor(ResourceLoader resourceLoader, PropertyResolver propertyResolver) Create a new instance of theResourceEditorclass using the givenResourceLoaderandPropertyResolver.ResourceEditor(ResourceLoader resourceLoader, PropertyResolver propertyResolver, boolean ignoreUnresolvablePlaceholders) Create a new instance of theResourceEditorclass using the givenResourceLoader.privateUrlResource(String protocol, String location, String fragment) Create a newUrlResourcebased on a URI specification. -
cn.taketoday.core.io.buffer中Nullable的使用
注释类型为Nullable的cn.taketoday.core.io.buffer中的字段注释类型为Nullable的cn.taketoday.core.io.buffer中的方法参数修饰符和类型方法说明(专用程序包) static voidDataBufferUtils.closeChannel(Channel channel) booleanbooleanbooleanstatic booleanDataBufferUtils.release(DataBuffer dataBuffer) Release the given data buffer. -
cn.taketoday.core.serializer中Nullable的使用
注释类型为Nullable的cn.taketoday.core.serializer中的字段注释类型为Nullable的cn.taketoday.core.serializer中的构造器参数 -
cn.taketoday.core.ssl中Nullable的使用
注释类型为Nullable的cn.taketoday.core.ssl中的方法修饰符和类型方法说明Helper method that provides a null-safe way to convert aString[]to aCollectionfor client libraries to use.SslBundleKey.getAlias()Return the alias of the key ornullif the key has no alias.String[]SslOptions.getCiphers()Return the ciphers that can be used or an empty set.String[]SslOptions.getEnabledProtocols()Return the protocols that should be enabled or an empty set.SslStoreBundle.getKeyStore()Return a key store generated from the trust material ornull.SslStoreBundle.getKeyStorePassword()Return the password for the key in the key store ornull.SslBundleKey.getPassword()Return the password that should be used to access the key ornullif no password is required.SslStoreBundle.getTrustStore()Return a trust store generated from the trust material ornull.private static String[]SslOptions.toArray(Collection<String> collection) 注释类型为Nullable的cn.taketoday.core.ssl中的方法参数修饰符和类型方法说明default voidSslBundleKey.assertContainsAlias(KeyStore keyStore) Assert that the alias is contained in the given keystore.Helper method that provides a null-safe way to convert aString[]to aCollectionfor client libraries to use.static SslManagerBundleSslManagerBundle.from(SslStoreBundle storeBundle, SslBundleKey key) static SslManagerBundleSslManagerBundle.from(SslStoreBundle storeBundle, SslBundleKey key) static SslBundleSslBundle.of(SslStoreBundle stores, SslBundleKey key) Factory method to create a newSslBundleinstance.static SslBundleSslBundle.of(SslStoreBundle stores, SslBundleKey key) Factory method to create a newSslBundleinstance.static SslBundleSslBundle.of(SslStoreBundle stores, SslBundleKey key, SslOptions options) Factory method to create a newSslBundleinstance.static SslBundleSslBundle.of(SslStoreBundle stores, SslBundleKey key, SslOptions options) Factory method to create a newSslBundleinstance.static SslBundleSslBundle.of(SslStoreBundle stores, SslBundleKey key, SslOptions options) Factory method to create a newSslBundleinstance.static SslBundleSslBundle.of(SslStoreBundle stores, SslBundleKey key, SslOptions options, String protocol) Factory method to create a newSslBundleinstance.static SslBundleSslBundle.of(SslStoreBundle stores, SslBundleKey key, SslOptions options, String protocol) Factory method to create a newSslBundleinstance.static SslBundleSslBundle.of(SslStoreBundle stores, SslBundleKey key, SslOptions options, String protocol) Factory method to create a newSslBundleinstance.static SslBundleSslBundle.of(SslStoreBundle stores, SslBundleKey key, SslOptions options, String protocol) Factory method to create a newSslBundleinstance.static SslBundleSslBundle.of(SslStoreBundle stores, SslBundleKey key, SslOptions options, String protocol, SslManagerBundle managers) Factory method to create a newSslBundleinstance.static SslBundleSslBundle.of(SslStoreBundle stores, SslBundleKey key, SslOptions options, String protocol, SslManagerBundle managers) Factory method to create a newSslBundleinstance.static SslBundleSslBundle.of(SslStoreBundle stores, SslBundleKey key, SslOptions options, String protocol, SslManagerBundle managers) Factory method to create a newSslBundleinstance.static SslBundleSslBundle.of(SslStoreBundle stores, SslBundleKey key, SslOptions options, String protocol, SslManagerBundle managers) Factory method to create a newSslBundleinstance.static SslBundleSslBundle.of(SslStoreBundle stores, SslBundleKey key, SslOptions options, String protocol, SslManagerBundle managers) Factory method to create a newSslBundleinstance.static SslBundleKeyFactory method to create a newSslBundleKeyinstance.static SslBundleKeyFactory method to create a newSslBundleKeyinstance.static SslOptionsFactory method to create a newSslOptionsinstance.static SslOptionsFactory method to create a newSslOptionsinstance.static SslOptionsFactory method to create a newSslOptionsinstance.static SslOptionsFactory method to create a newSslOptionsinstance.static SslStoreBundleFactory method to create a newSslStoreBundleinstance.static SslStoreBundleFactory method to create a newSslStoreBundleinstance.static SslStoreBundleFactory method to create a newSslStoreBundleinstance.private static String[]SslOptions.toArray(Collection<String> collection) 注释类型为Nullable的cn.taketoday.core.ssl中的构造器参数限定符构造器说明(专用程序包)DefaultSslManagerBundle(SslStoreBundle storeBundle, SslBundleKey key) (专用程序包)DefaultSslManagerBundle(SslStoreBundle storeBundle, SslBundleKey key) NoSuchSslBundleException(String bundleName, String message, Throwable cause) Create a newSslBundleNotFoundExceptioninstance. -
cn.taketoday.core.ssl.jks中Nullable的使用
注释类型为Nullable的cn.taketoday.core.ssl.jks中的字段修饰符和类型字段说明private final KeyStoreJksSslStoreBundle.keyStoreprivate final JksSslStoreDetailsJksSslStoreBundle.keyStoreDetailsprivate final StringJksSslStoreDetails.locationlocation记录组件的字段。private final StringJksSslStoreDetails.passwordpassword记录组件的字段。private final StringJksSslStoreDetails.providerprovider记录组件的字段。private final KeyStoreJksSslStoreBundle.trustStoreprivate final StringJksSslStoreDetails.typetype记录组件的字段。注释类型为Nullable的cn.taketoday.core.ssl.jks中的方法修饰符和类型方法说明private KeyStoreJksSslStoreBundle.createKeyStore(String name, JksSslStoreDetails details) JksSslStoreBundle.getKeyStore()JksSslStoreBundle.getKeyStorePassword()JksSslStoreBundle.getTrustStore()JksSslStoreDetails.location()返回location记录组件的值。JksSslStoreDetails.password()返回password记录组件的值。JksSslStoreDetails.provider()返回provider记录组件的值。JksSslStoreDetails.type()返回type记录组件的值。注释类型为Nullable的cn.taketoday.core.ssl.jks中的方法参数修饰符和类型方法说明private KeyStoreJksSslStoreBundle.createKeyStore(String name, JksSslStoreDetails details) private KeyStoreJksSslStoreBundle.getKeyStoreInstance(String type, String provider) private booleanprivate voidJksSslStoreBundle.loadHardwareKeyStore(KeyStore store, String location, char[] password) private voidJksSslStoreBundle.loadHardwareKeyStore(KeyStore store, String location, char[] password) private voidJksSslStoreBundle.loadKeyStore(KeyStore store, String location, char[] password) private voidJksSslStoreBundle.loadKeyStore(KeyStore store, String location, char[] password) 注释类型为Nullable的cn.taketoday.core.ssl.jks中的构造器参数限定符构造器说明JksSslStoreBundle(JksSslStoreDetails keyStoreDetails, JksSslStoreDetails trustStoreDetails) Create a newJksSslStoreBundleinstance.JksSslStoreDetails(String type, String provider, String location, String password) 创建JksSslStoreDetails记录的实例。JksSslStoreDetails(String type, String provider, String location, String password) 创建JksSslStoreDetails记录的实例。JksSslStoreDetails(String type, String provider, String location, String password) 创建JksSslStoreDetails记录的实例。JksSslStoreDetails(String type, String provider, String location, String password) 创建JksSslStoreDetails记录的实例。 -
cn.taketoday.core.ssl.pem中Nullable的使用
注释类型为Nullable的cn.taketoday.core.ssl.pem中的字段修饰符和类型字段说明private final StringPemSslStoreDetails.certificatecertificate记录组件的字段。private final KeyStorePemSslStoreBundle.keyStoreprivate final StringPemSslStoreDetails.privateKeyprivateKey记录组件的字段。private final StringPemSslStoreDetails.privateKeyPasswordprivateKeyPassword记录组件的字段。private final KeyStorePemSslStoreBundle.trustStoreprivate final StringPemSslStoreDetails.typetype记录组件的字段。注释类型为Nullable的cn.taketoday.core.ssl.pem中的方法修饰符和类型方法说明private static byte[]PemPrivateKeyParser.DerEncoder.bytes(int... elements) PemSslStoreDetails.certificate()返回certificate记录组件的值。private KeyStorePemSslStoreBundle.createKeyStore(String name, PemSslStoreDetails details, String alias, String keyPassword) PemSslStoreBundle.getKeyStore()PemSslStoreBundle.getKeyStorePassword()PemSslStoreBundle.getTrustStore()(专用程序包) static String(专用程序包) static PemPrivateKeyParser.DerElementPemPrivateKeyParser.DerElement.of(byte[] bytes) (专用程序包) static PemPrivateKeyParser.DerElementPemPrivateKeyParser.DerElement.of(ByteBuffer bytes) (专用程序包) static X509Certificate[]Parse certificates from the specified string.(专用程序包) static PrivateKeyParse a private key from the specified string, using the provided password for decryption if necessary.private PrivateKey(专用程序包) PrivateKeyPemSslStoreDetails.privateKey()返回privateKey记录组件的值。PemSslStoreDetails.privateKeyPassword()返回privateKeyPassword记录组件的值。PemSslStoreDetails.type()返回type记录组件的值。注释类型为Nullable的cn.taketoday.core.ssl.pem中的方法参数修饰符和类型方法说明private voidPemSslStoreBundle.addCertificates(KeyStore keyStore, X509Certificate[] certificates, PrivateKey privateKey, String alias, String keyPassword) private voidPemSslStoreBundle.addCertificates(KeyStore keyStore, X509Certificate[] certificates, PrivateKey privateKey, String alias, String keyPassword) private voidPemSslStoreBundle.addCertificates(KeyStore keyStore, X509Certificate[] certificates, PrivateKey privateKey, String alias, String keyPassword) private static byte[]PemPrivateKeyParser.DerEncoder.bytes(int... elements) private static PKCS8EncodedKeySpecPemPrivateKeyParser.createKeySpecForAlgorithm(byte[] bytes, int[] algorithm, int[] parameters) private KeyStorePemSslStoreBundle.createKeyStore(String name, PemSslStoreDetails details, String alias, String keyPassword) private KeyStorePemSslStoreBundle.createKeyStore(String name, PemSslStoreDetails details, String alias, String keyPassword) private KeyStorePemSslStoreBundle.createKeyStore(String name, PemSslStoreDetails details, String alias, String keyPassword) static PemSslStoreDetailsPemSslStoreDetails.forCertificate(String certificate) Factory method to create a newPemSslStoreDetailsinstance for the given certificate.private static int[]PemPrivateKeyParser.getEcParameters(PemPrivateKeyParser.DerElement parameters) private booleanprivate static booleanPemContent.isPemContent(String content) (专用程序包) static String(专用程序包) voidPemPrivateKeyParser.DerEncoder.objectIdentifier(int... encodedObjectIdentifier) (专用程序包) static X509Certificate[]Parse certificates from the specified string.(专用程序包) static PrivateKeyParse a private key from the specified string, using the provided password for decryption if necessary.(专用程序包) static PrivateKeyParse a private key from the specified string, using the provided password for decryption if necessary.注释类型为Nullable的cn.taketoday.core.ssl.pem中的构造器参数限定符构造器说明PemSslStoreBundle(PemSslStoreDetails keyStoreDetails, PemSslStoreDetails trustStoreDetails) Create a newPemSslStoreBundleinstance.PemSslStoreBundle(PemSslStoreDetails keyStoreDetails, PemSslStoreDetails trustStoreDetails) Create a newPemSslStoreBundleinstance.PemSslStoreBundle(PemSslStoreDetails keyStoreDetails, PemSslStoreDetails trustStoreDetails, String keyAlias) Create a newPemSslStoreBundleinstance.PemSslStoreBundle(PemSslStoreDetails keyStoreDetails, PemSslStoreDetails trustStoreDetails, String keyAlias) Create a newPemSslStoreBundleinstance.PemSslStoreBundle(PemSslStoreDetails keyStoreDetails, PemSslStoreDetails trustStoreDetails, String keyAlias) Create a newPemSslStoreBundleinstance.PemSslStoreBundle(PemSslStoreDetails keyStoreDetails, PemSslStoreDetails trustStoreDetails, String keyAlias, String keyPassword) Create a newPemSslStoreBundleinstance.PemSslStoreBundle(PemSslStoreDetails keyStoreDetails, PemSslStoreDetails trustStoreDetails, String keyAlias, String keyPassword) Create a newPemSslStoreBundleinstance.PemSslStoreBundle(PemSslStoreDetails keyStoreDetails, PemSslStoreDetails trustStoreDetails, String keyAlias, String keyPassword) Create a newPemSslStoreBundleinstance.PemSslStoreBundle(PemSslStoreDetails keyStoreDetails, PemSslStoreDetails trustStoreDetails, String keyAlias, String keyPassword) Create a newPemSslStoreBundleinstance.PemSslStoreDetails(String type, String certificate, String privateKey) PemSslStoreDetails(String type, String certificate, String privateKey) PemSslStoreDetails(String type, String certificate, String privateKey) PemSslStoreDetails(String type, String certificate, String privateKey, String privateKeyPassword) 创建PemSslStoreDetails记录的实例。PemSslStoreDetails(String type, String certificate, String privateKey, String privateKeyPassword) 创建PemSslStoreDetails记录的实例。PemSslStoreDetails(String type, String certificate, String privateKey, String privateKeyPassword) 创建PemSslStoreDetails记录的实例。PemSslStoreDetails(String type, String certificate, String privateKey, String privateKeyPassword) 创建PemSslStoreDetails记录的实例。 -
cn.taketoday.core.style中Nullable的使用
注释类型为Nullable的cn.taketoday.core.style中的方法参数修饰符和类型方法说明Append a field value.Style the given value, returning a String representation.voidDefaultToStringStyler.styleField(StringBuilder buffer, String fieldName, Object value) voidToStringStyler.styleField(StringBuilder buffer, String fieldName, Object value) Style a field value as a string.voidDefaultToStringStyler.styleValue(StringBuilder buffer, Object value) 注释类型为Nullable的cn.taketoday.core.style中的构造器参数限定符构造器说明ToStringBuilder(Object obj, ToStringStyler styler) Create a ToStringBuilder for the given object, using the provided style.ToStringBuilder(Object obj, ValueStyler styler) Create a ToStringBuilder for the given object, using the provided style. -
cn.taketoday.core.task中Nullable的使用
注释类型为Nullable的cn.taketoday.core.task中的字段修饰符和类型字段说明SimpleAsyncTaskExecutor.activeThreadsprivate TaskDecoratorSimpleAsyncTaskExecutor.taskDecoratorprivate ThreadFactorySimpleAsyncTaskExecutor.threadFactoryprivate VirtualThreadDelegateSimpleAsyncTaskExecutor.virtualThreadDelegate注释类型为Nullable的cn.taketoday.core.task中的方法修饰符和类型方法说明final ThreadFactorySimpleAsyncTaskExecutor.getThreadFactory()Return the external factory to use for creating new Threads, if any.注释类型为Nullable的cn.taketoday.core.task中的方法参数修饰符和类型方法说明final voidSimpleAsyncTaskExecutor.setTaskDecorator(TaskDecorator taskDecorator) Specify a customTaskDecoratorto be applied to anyRunnableabout to be executed.voidSimpleAsyncTaskExecutor.setThreadFactory(ThreadFactory threadFactory) Specify an external factory to use for creating new Threads, instead of relying on the local properties of this executor.注释类型为Nullable的cn.taketoday.core.task中的构造器参数限定符构造器说明SimpleAsyncTaskExecutor(ThreadFactory threadFactory) Create a new SimpleAsyncTaskExecutor with the given external thread factory. -
cn.taketoday.core.task.support中Nullable的使用
注释类型为Nullable的cn.taketoday.core.task.support中的字段注释类型为Nullable的cn.taketoday.core.task.support中的方法参数修饰符和类型方法说明protected voidTaskExecutorAdapter.doExecute(Executor concurrentExecutor, TaskDecorator taskDecorator, Runnable runnable) Actually execute the givenRunnable(which may be a user-supplied task or a wrapper around a user-supplied task) with the given executor.final voidTaskExecutorAdapter.setTaskDecorator(TaskDecorator taskDecorator) Specify a customTaskDecoratorto be applied to anyRunnableabout to be executed. -
cn.taketoday.core.type中Nullable的使用
注释类型为Nullable的cn.taketoday.core.type中的字段注释类型为Nullable的cn.taketoday.core.type中的方法修饰符和类型方法说明default MultiValueMap<String,Object> AnnotatedTypeMetadata.getAllAnnotationAttributes(Class<? extends Annotation> annotationType) Retrieve all attributes of all annotations of the given type, if any (i.e. if defined on the underlying element, as direct annotation or meta-annotation).default MultiValueMap<String,Object> AnnotatedTypeMetadata.getAllAnnotationAttributes(Class<? extends Annotation> annotationType, boolean classValuesAsString) Retrieve all attributes of all annotations of the given type, if any (i.e. if defined on the underlying element, as direct annotation or meta-annotation).default MultiValueMap<String,Object> AnnotatedTypeMetadata.getAllAnnotationAttributes(String annotationName) Retrieve all attributes of all annotations of the given type, if any (i.e. if defined on the underlying element, as direct annotation or meta-annotation).default MultiValueMap<String,Object> AnnotatedTypeMetadata.getAllAnnotationAttributes(String annotationName, boolean classValuesAsString) Retrieve all attributes of all annotations of the given type, if any (i.e. if defined on the underlying element, as direct annotation or meta-annotation).StandardAnnotationMetadata.getAllAnnotationAttributes(String annotationName, boolean classValuesAsString) StandardMethodMetadata.getAllAnnotationAttributes(String annotationName, boolean classValuesAsString) AnnotatedTypeMetadata.getAnnotationAttributes(Class<? extends Annotation> annotationType) Retrieve the attributes of the annotation of the given type, if any (i.e. if defined on the underlying element, as direct annotation or meta-annotation).AnnotatedTypeMetadata.getAnnotationAttributes(Class<? extends Annotation> annotationType, boolean classValuesAsString) Retrieve the attributes of the annotation of the given type, if any (i.e. if defined on the underlying element, as direct annotation or meta-annotation).AnnotatedTypeMetadata.getAnnotationAttributes(String annotationName) Retrieve the attributes of the annotation of the given type, if any (i.e. if defined on the underlying element, as direct annotation or meta-annotation).AnnotatedTypeMetadata.getAnnotationAttributes(String annotationName, boolean classValuesAsString) Retrieve the attributes of the annotation of the given type, if any (i.e. if defined on the underlying element, as direct annotation or meta-annotation).StandardAnnotationMetadata.getAnnotationAttributes(String annotationName, boolean classValuesAsString) StandardMethodMetadata.getAnnotationAttributes(String annotationName, boolean classValuesAsString) ClassMetadata.getEnclosingClassName()Return the name of the enclosing class of the underlying class, ornullif the underlying class is a top-level class.StandardClassMetadata.getEnclosingClassName()ClassMetadata.getSuperClassName()Return the name of the super class of the underlying class, ornullif there is no super class defined.StandardClassMetadata.getSuperClassName()注释类型为Nullable的cn.taketoday.core.type中的方法参数 -
cn.taketoday.core.type.classreading中Nullable的使用
修饰符和类型字段说明private ArrayList<MergedAnnotation<?>>SimpleAnnotationMetadataReadingVisitor.annotationsprivate ArrayList<MergedAnnotation<?>>SimpleMethodMetadataReadingVisitor.annotationsSimpleAnnotationMetadata.annotationTypesprivate final ClassLoaderMergedAnnotationReadingVisitor.classLoaderprivate final ClassLoaderSimpleAnnotationMetadataReadingVisitor.classLoaderprivate final ClassLoaderSimpleMethodMetadata.classLoaderprivate final ClassLoaderSimpleMethodMetadataReadingVisitor.classLoaderprivate final Set<MethodMetadata>SimpleAnnotationMetadata.declaredMethodsprivate LinkedHashSet<MethodMetadata>SimpleAnnotationMetadataReadingVisitor.declaredMethodsprivate final StringSimpleAnnotationMetadata.enclosingClassNameprivate StringSimpleAnnotationMetadataReadingVisitor.enclosingClassNameSimpleAnnotationMetadata.interfaceNamesprivate LinkedHashSet<String>SimpleAnnotationMetadataReadingVisitor.interfaceNamesSimpleAnnotationMetadata.memberClassNamesprivate LinkedHashSet<String>SimpleAnnotationMetadataReadingVisitor.memberClassNamesprivate SimpleAnnotationMetadataSimpleAnnotationMetadataReadingVisitor.metadataprivate Map<Resource,MetadataReader> CachingMetadataReaderFactory.metadataReaderCacheMetadataReader cache: either local or shared at the ResourceLoader level.private StringSimpleMethodMetadata.returnTypeNameprivate final ObjectMergedAnnotationReadingVisitor.sourceSimpleAnnotationMetadataReadingVisitor.sourceSimpleMethodMetadataReadingVisitor.sourceprivate final StringSimpleAnnotationMetadata.superClassNameprivate StringSimpleAnnotationMetadataReadingVisitor.superClassNameprivate StringSimpleMethodMetadataReadingVisitor.Source.toStringValue修饰符和类型方法说明(专用程序包) static <A extends Annotation>
AnnotationVisitorMergedAnnotationReadingVisitor.get(ClassLoader classLoader, Object source, String descriptor, boolean visible, Consumer<MergedAnnotation<A>> consumer) SimpleAnnotationMetadata.getEnclosingClassName()SimpleAnnotationMetadata.getSuperClassName()MergedAnnotationReadingVisitor.ArrayVisitor.visitAnnotation(String name, String descriptor) MergedAnnotationReadingVisitor.visitAnnotation(String name, String descriptor) private <T extends Annotation>
AnnotationVisitorMergedAnnotationReadingVisitor.visitAnnotation(String descriptor, Consumer<MergedAnnotation<T>> consumer) SimpleAnnotationMetadataReadingVisitor.visitAnnotation(String descriptor, boolean visible) SimpleMethodMetadataReadingVisitor.visitAnnotation(String descriptor, boolean visible) SimpleAnnotationMetadataReadingVisitor.visitMethod(int access, String name, String descriptor, String signature, String[] exceptions) 注释类型为Nullable的cn.taketoday.core.type.classreading中的方法参数修饰符和类型方法说明booleanboolean指示某个其他对象是否“等于”此对象。booleanboolean(专用程序包) static <A extends Annotation>
AnnotationVisitorMergedAnnotationReadingVisitor.get(ClassLoader classLoader, Object source, String descriptor, boolean visible, Consumer<MergedAnnotation<A>> consumer) (专用程序包) static <A extends Annotation>
AnnotationVisitorMergedAnnotationReadingVisitor.get(ClassLoader classLoader, Object source, String descriptor, boolean visible, Consumer<MergedAnnotation<A>> consumer) voidSimpleAnnotationMetadataReadingVisitor.visit(int version, int access, String name, String signature, String supername, String[] interfaces) voidSimpleAnnotationMetadataReadingVisitor.visitInnerClass(String name, String outerName, String innerName, int access) 注释类型为Nullable的cn.taketoday.core.type.classreading中的构造器参数限定符构造器说明CachingMetadataReaderFactory(ResourceLoader resourceLoader) Create a new CachingMetadataReaderFactory for the givenResourceLoader, using a shared resource cache if supported or a local resource cache otherwise.CachingMetadataReaderFactory(ClassLoader classLoader) Create a new CachingMetadataReaderFactory for the givenClassLoader, using a local resource cache.MergedAnnotationReadingVisitor(ClassLoader classLoader, Object source, Class<A> annotationType, Consumer<MergedAnnotation<A>> consumer) MergedAnnotationReadingVisitor(ClassLoader classLoader, Object source, Class<A> annotationType, Consumer<MergedAnnotation<A>> consumer) (专用程序包)SimpleAnnotationMetadata(String className, int access, String enclosingClassName, String superClassName, boolean independentInnerClass, Set<String> interfaceNames, Set<String> memberClassNames, Set<MethodMetadata> declaredMethods, MergedAnnotations annotations) (专用程序包)SimpleAnnotationMetadata(String className, int access, String enclosingClassName, String superClassName, boolean independentInnerClass, Set<String> interfaceNames, Set<String> memberClassNames, Set<MethodMetadata> declaredMethods, MergedAnnotations annotations) (专用程序包)SimpleAnnotationMetadata(String className, int access, String enclosingClassName, String superClassName, boolean independentInnerClass, Set<String> interfaceNames, Set<String> memberClassNames, Set<MethodMetadata> declaredMethods, MergedAnnotations annotations) (专用程序包)SimpleAnnotationMetadata(String className, int access, String enclosingClassName, String superClassName, boolean independentInnerClass, Set<String> interfaceNames, Set<String> memberClassNames, Set<MethodMetadata> declaredMethods, MergedAnnotations annotations) (专用程序包)SimpleAnnotationMetadata(String className, int access, String enclosingClassName, String superClassName, boolean independentInnerClass, Set<String> interfaceNames, Set<String> memberClassNames, Set<MethodMetadata> declaredMethods, MergedAnnotations annotations) (专用程序包)SimpleAnnotationMetadataReadingVisitor(ClassLoader classLoader) (专用程序包)SimpleMetadataReader(Resource resource, ClassLoader classLoader) SimpleMetadataReaderFactory(ResourceLoader resourceLoader) Create a new SimpleMetadataReaderFactory for the given resource loader.SimpleMetadataReaderFactory(ClassLoader classLoader) Create a new SimpleMetadataReaderFactory for the given class loader.(专用程序包)SimpleMethodMetadata(int access, String declaringClassName, Object source, MergedAnnotations annotations, MethodSignature methodSignature, ClassLoader classLoader) (专用程序包)SimpleMethodMetadataReadingVisitor(ClassLoader classLoader, String declaringClassName, int access, String methodName, String descriptor, Consumer<SimpleMethodMetadata> consumer) -
cn.taketoday.core.type.filter中Nullable的使用
注释类型为Nullable的cn.taketoday.core.type.filter中的方法修饰符和类型方法说明protected BooleanAnnotationTypeFilter.hasAnnotation(String typeName) protected BooleanAbstractTypeHierarchyTraversingFilter.matchInterface(String interfaceName) Override this to match on interface type name.protected BooleanAnnotationTypeFilter.matchInterface(String interfaceName) protected BooleanAssignableTypeFilter.matchInterface(String interfaceName) protected BooleanAbstractTypeHierarchyTraversingFilter.matchSuperClass(String superClassName) Override this to match on super type name.protected BooleanAnnotationTypeFilter.matchSuperClass(String superClassName) protected BooleanAssignableTypeFilter.matchSuperClass(String superClassName) protected BooleanAssignableTypeFilter.matchTargetType(String typeName) 注释类型为Nullable的cn.taketoday.core.type.filter中的构造器参数 -
cn.taketoday.expression中Nullable的使用
注释类型为Nullable的cn.taketoday.expression中的字段修饰符和类型字段说明protected final StringExpressionException.expressionStringprivate TypeDescriptorTypedValue.typeDescriptorprivate final ObjectTypedValue.value注释类型为Nullable的cn.taketoday.expression中的方法修饰符和类型方法说明TypeConverter.convertValue(Object value, TypeDescriptor sourceType, TypeDescriptor targetType) Convert (or coerce) a value from one type to another, for example from abooleanto aString.EvaluationContext.getBeanResolver()Return a bean resolver that can look up beans by name.final StringExpressionException.getExpressionString()Return the expression string.Class<?>[]PropertyAccessor.getSpecificTargetClasses()Return an array of classes for which this resolver should be called.TypedValue.getTypeDescriptor()Expression.getValue()Evaluate this expression in the default standard context.Expression.getValue(EvaluationContext context) Evaluate this expression in the provided context and return the result of evaluation.<T> TExpression.getValue(EvaluationContext context, Class<T> desiredResultType) Evaluate the expression in a specified context which can resolve references to properties, methods, types, etc.Expression.getValue(EvaluationContext context, Object rootObject) Evaluate this expression in the provided context and return the result of evaluation, but use the supplied root context as an override for any default root object specified in the context.<T> TExpression.getValue(EvaluationContext context, Object rootObject, Class<T> desiredResultType) Evaluate the expression in a specified context which can resolve references to properties, methods, types, etc.<T> TEvaluate the expression in the default context.Evaluate this expression against the specified root object.<T> TEvaluate the expression in the default context against the specified root object.TypedValue.getValue()Class<?>Expression.getValueType()Return the most general type that can be passed to aExpression.setValue(java.lang.Object, java.lang.Object)method using the default context.Class<?>Expression.getValueType(EvaluationContext context) Return the most general type that can be passed to theExpression.setValue(EvaluationContext, Object)method for the given context.Class<?>Expression.getValueType(EvaluationContext context, Object rootObject) Return the most general type that can be passed to theExpression.setValue(EvaluationContext, Object, Object)method for the given context.Class<?>Expression.getValueType(Object rootObject) Return the most general type that can be passed to theExpression.setValue(Object, Object)method using the default context.Expression.getValueTypeDescriptor()Return the most general type that can be passed to aExpression.setValue(java.lang.Object, java.lang.Object)method using the default context.Expression.getValueTypeDescriptor(EvaluationContext context) Return the most general type that can be passed to theExpression.setValue(EvaluationContext, Object)method for the given context.Expression.getValueTypeDescriptor(EvaluationContext context, Object rootObject) Return the most general type that can be passed to theExpression.setValue(EvaluationContext, Object, Object)method for the given context.Expression.getValueTypeDescriptor(Object rootObject) Return the most general type that can be passed to theExpression.setValue(Object, Object)method using the default context.EvaluationContext.lookupVariable(String name) Look up a named variable within this evaluation context.ConstructorResolver.resolve(EvaluationContext context, String typeName, List<TypeDescriptor> argumentTypes) Within the supplied context determine a suitable constructor on the supplied type that can handle the specified arguments.MethodResolver.resolve(EvaluationContext context, Object targetObject, String name, List<TypeDescriptor> argumentTypes) Within the supplied context determine a suitable method on the supplied object that can handle the specified arguments.注释类型为Nullable的cn.taketoday.expression中的方法参数修饰符和类型方法说明booleanTypeComparator.canCompare(Object firstObject, Object secondObject) Returntrueif the comparator can compare these two objects.booleanTypeComparator.canCompare(Object firstObject, Object secondObject) Returntrueif the comparator can compare these two objects.booleanTypeConverter.canConvert(TypeDescriptor sourceType, TypeDescriptor targetType) Returntrueif the type converter can convert the specified type to the desired target type.booleanPropertyAccessor.canRead(EvaluationContext context, Object target, String name) Called to determine if a resolver instance is able to access a specified property on a specified target object.booleanPropertyAccessor.canWrite(EvaluationContext context, Object target, String name) Called to determine if a resolver instance is able to write to a specified property on a specified target object.intCompare two given objects.intCompare two given objects.TypeConverter.convertValue(Object value, TypeDescriptor sourceType, TypeDescriptor targetType) Convert (or coerce) a value from one type to another, for example from abooleanto aString.TypeConverter.convertValue(Object value, TypeDescriptor sourceType, TypeDescriptor targetType) Convert (or coerce) a value from one type to another, for example from abooleanto aString.boolean<T> TExpression.getValue(EvaluationContext context, Class<T> desiredResultType) Evaluate the expression in a specified context which can resolve references to properties, methods, types, etc.Expression.getValue(EvaluationContext context, Object rootObject) Evaluate this expression in the provided context and return the result of evaluation, but use the supplied root context as an override for any default root object specified in the context.<T> TExpression.getValue(EvaluationContext context, Object rootObject, Class<T> desiredResultType) Evaluate the expression in a specified context which can resolve references to properties, methods, types, etc.<T> TExpression.getValue(EvaluationContext context, Object rootObject, Class<T> desiredResultType) Evaluate the expression in a specified context which can resolve references to properties, methods, types, etc.<T> TEvaluate the expression in the default context.Evaluate this expression against the specified root object.<T> TEvaluate the expression in the default context against the specified root object.<T> TEvaluate the expression in the default context against the specified root object.Class<?>Expression.getValueType(EvaluationContext context, Object rootObject) Return the most general type that can be passed to theExpression.setValue(EvaluationContext, Object, Object)method for the given context.Class<?>Expression.getValueType(Object rootObject) Return the most general type that can be passed to theExpression.setValue(Object, Object)method using the default context.Expression.getValueTypeDescriptor(EvaluationContext context, Object rootObject) Return the most general type that can be passed to theExpression.setValue(EvaluationContext, Object, Object)method for the given context.Expression.getValueTypeDescriptor(Object rootObject) Return the most general type that can be passed to theExpression.setValue(Object, Object)method using the default context.booleanExpression.isWritable(EvaluationContext context, Object rootObject) Determine if an expression can be written to, i.e. setValue() can be called.booleanExpression.isWritable(Object rootObject) Determine if an expression can be written to, i.e. setValue() can be called.Execute the specified operation on two operands, returning a result.Execute the specified operation on two operands, returning a result.booleanOperatorOverloader.overridesOperation(Operation operation, Object leftOperand, Object rightOperand) Return true if the operator overloader supports the specified operation between the two operands and so should be invoked to handle it.booleanOperatorOverloader.overridesOperation(Operation operation, Object leftOperand, Object rightOperand) Return true if the operator overloader supports the specified operation between the two operands and so should be invoked to handle it.PropertyAccessor.read(EvaluationContext context, Object target, String name) Called to read a property from a specified target object.voidExpression.setValue(EvaluationContext context, Object value) Set this expression in the provided context to the value provided.voidExpression.setValue(EvaluationContext context, Object rootObject, Object value) Set this expression in the provided context to the value provided.voidExpression.setValue(EvaluationContext context, Object rootObject, Object value) Set this expression in the provided context to the value provided.voidSet this expression in the provided context to the value provided.voidSet this expression in the provided context to the value provided.voidEvaluationContext.setVariable(String name, Object value) Set a named variable within this evaluation context to a specified value.voidPropertyAccessor.write(EvaluationContext context, Object target, String name, Object newValue) Called to write to a property on a specified target object.voidPropertyAccessor.write(EvaluationContext context, Object target, String name, Object newValue) Called to write to a property on a specified target object.注释类型为Nullable的cn.taketoday.expression中的构造器参数限定符构造器说明ExpressionException(String expressionString, int position, String message) Construct a new expression exception.ExpressionException(String expressionString, String message) Construct a new expression exception.ParseException(String expressionString, int position, String message) Create a new expression parsing exception.TypedValue(Object value) Create aTypedValuefor a simple object.TypedValue(Object value, TypeDescriptor typeDescriptor) Create aTypedValuefor a particular value with a particularTypeDescriptorwhich may contain additional generic declarations.TypedValue(Object value, TypeDescriptor typeDescriptor) Create aTypedValuefor a particular value with a particularTypeDescriptorwhich may contain additional generic declarations. -
cn.taketoday.expression.common中Nullable的使用
注释类型为Nullable的cn.taketoday.expression.common中的方法修饰符和类型方法说明static <T> TExpressionUtils.convertTypedValue(EvaluationContext context, TypedValue typedValue, Class<T> targetType) Determines if there is a type converter available in the specified context and attempts to use it to convert the supplied value to the specified type.<T> TCompositeStringExpression.getValue(EvaluationContext context, Class<T> expectedResultType) <T> TCompositeStringExpression.getValue(EvaluationContext context, Object rootObject, Class<T> desiredResultType) <T> T<T> T<T> TLiteralExpression.getValue(EvaluationContext context, Class<T> expectedResultType) <T> TLiteralExpression.getValue(EvaluationContext context, Object rootObject, Class<T> desiredResultType) <T> T<T> T注释类型为Nullable的cn.taketoday.expression.common中的方法参数修饰符和类型方法说明static <T> TExpressionUtils.convertTypedValue(EvaluationContext context, TypedValue typedValue, Class<T> targetType) Determines if there is a type converter available in the specified context and attempts to use it to convert the supplied value to the specified type.static <T> TExpressionUtils.convertTypedValue(EvaluationContext context, TypedValue typedValue, Class<T> targetType) Determines if there is a type converter available in the specified context and attempts to use it to convert the supplied value to the specified type.protected abstract ExpressionTemplateAwareExpressionParser.doParseExpression(String expressionString, ParserContext context) Actually parse the expression string and return an Expression object.<T> TCompositeStringExpression.getValue(EvaluationContext context, Class<T> expectedResultType) CompositeStringExpression.getValue(EvaluationContext context, Object rootObject) <T> TCompositeStringExpression.getValue(EvaluationContext context, Object rootObject, Class<T> desiredResultType) <T> TCompositeStringExpression.getValue(EvaluationContext context, Object rootObject, Class<T> desiredResultType) <T> T<T> T<T> T<T> TLiteralExpression.getValue(EvaluationContext context, Class<T> expectedResultType) LiteralExpression.getValue(EvaluationContext context, Object rootObject) <T> TLiteralExpression.getValue(EvaluationContext context, Object rootObject, Class<T> desiredResultType) <T> TLiteralExpression.getValue(EvaluationContext context, Object rootObject, Class<T> desiredResultType) <T> T<T> T<T> TClass<?>CompositeStringExpression.getValueType(EvaluationContext context, Object rootObject) Class<?>CompositeStringExpression.getValueType(Object rootObject) Class<?>LiteralExpression.getValueType(EvaluationContext context, Object rootObject) Class<?>LiteralExpression.getValueType(Object rootObject) CompositeStringExpression.getValueTypeDescriptor(EvaluationContext context, Object rootObject) CompositeStringExpression.getValueTypeDescriptor(Object rootObject) LiteralExpression.getValueTypeDescriptor(EvaluationContext context, Object rootObject) LiteralExpression.getValueTypeDescriptor(Object rootObject) booleanCompositeStringExpression.isWritable(EvaluationContext context, Object rootObject) booleanCompositeStringExpression.isWritable(Object rootObject) booleanLiteralExpression.isWritable(EvaluationContext context, Object rootObject) booleanLiteralExpression.isWritable(Object rootObject) TemplateAwareExpressionParser.parseExpression(String expressionString, ParserContext context) voidCompositeStringExpression.setValue(EvaluationContext context, Object value) voidCompositeStringExpression.setValue(EvaluationContext context, Object rootObject, Object value) voidCompositeStringExpression.setValue(EvaluationContext context, Object rootObject, Object value) voidvoidvoidLiteralExpression.setValue(EvaluationContext context, Object value) voidLiteralExpression.setValue(EvaluationContext context, Object rootObject, Object value) voidLiteralExpression.setValue(EvaluationContext context, Object rootObject, Object value) voidvoid -
cn.taketoday.expression.spel中Nullable的使用
注释类型为Nullable的cn.taketoday.expression.spel中的字段修饰符和类型字段说明private final ClassLoaderSpelParserConfiguration.compilerClassLoaderprivate Deque<TypedValue>ExpressionState.contextObjectsprivate ArrayDeque<TypedValue>ExpressionState.scopeRootObjectsprivate Deque<ExpressionState.VariableScope>ExpressionState.variableScopes注释类型为Nullable的cn.taketoday.expression.spel中的方法修饰符和类型方法说明ExpressionState.convertValue(TypedValue value, TypeDescriptor targetTypeDescriptor) SpelParserConfiguration.getCompilerClassLoader()Return the ClassLoader to use as the basis for expression compilation.Class<?>SpelNode.getObjectClass(Object obj) Determine the class of the object passed in, unless it is already a class object.SpelNode.getValue(ExpressionState expressionState) Evaluate the expression node in the context of the supplied expression state and return the value.ExpressionState.lookupLocalVariable(String name) 注释类型为Nullable的cn.taketoday.expression.spel中的方法参数修饰符和类型方法说明Class<?>SpelNode.getObjectClass(Object obj) Determine the class of the object passed in, unless it is already a class object.abstract ObjectCompiledExpression.getValue(Object target, EvaluationContext context) Subclasses of CompiledExpression generated by SpelCompiler will provide an implementation of this method.abstract ObjectCompiledExpression.getValue(Object target, EvaluationContext context) Subclasses of CompiledExpression generated by SpelCompiler will provide an implementation of this method.voidSpelNode.setValue(ExpressionState expressionState, Object newValue) Evaluate the expression to a node and then set the new value on that node.voidExpressionState.setVariable(String name, Object value) Set a named variable in the evaluation context to a specified value.注释类型为Nullable的cn.taketoday.expression.spel中的构造器参数限定符构造器说明SpelParseException(String expressionString, int position, SpelMessage message, Object... inserts) SpelParserConfiguration(SpelCompilerMode compilerMode, ClassLoader compilerClassLoader) Create a newSpelParserConfigurationinstance.SpelParserConfiguration(SpelCompilerMode compilerMode, ClassLoader compilerClassLoader) Create a newSpelParserConfigurationinstance.SpelParserConfiguration(SpelCompilerMode compilerMode, ClassLoader compilerClassLoader, boolean autoGrowNullReferences, boolean autoGrowCollections, int maximumAutoGrowSize) Create a newSpelParserConfigurationinstance.SpelParserConfiguration(SpelCompilerMode compilerMode, ClassLoader compilerClassLoader, boolean autoGrowNullReferences, boolean autoGrowCollections, int maximumAutoGrowSize) Create a newSpelParserConfigurationinstance.SpelParserConfiguration(SpelCompilerMode compilerMode, ClassLoader compilerClassLoader, boolean autoGrowNullReferences, boolean autoGrowCollections, int maximumAutoGrowSize, int maximumExpressionLength) Create a newSpelParserConfigurationinstance.SpelParserConfiguration(SpelCompilerMode compilerMode, ClassLoader compilerClassLoader, boolean autoGrowNullReferences, boolean autoGrowCollections, int maximumAutoGrowSize, int maximumExpressionLength) Create a newSpelParserConfigurationinstance.VariableScope(Map<String, Object> arguments) -
cn.taketoday.expression.spel.ast中Nullable的使用
注释类型为Nullable的cn.taketoday.expression.spel.ast中的字段修饰符和类型字段说明private ConstructorExecutorConstructorReference.cachedExecutorThe cached executor that may be reused on subsequent evaluations.MethodReference.cachedExecutorprivate PropertyAccessorIndexer.cachedReadAccessorprivate PropertyAccessorPropertyOrFieldReference.cachedReadAccessorprivate StringIndexer.cachedReadNameprivate Class<?>Indexer.cachedReadTargetTypeprivate PropertyAccessorIndexer.cachedWriteAccessorprivate PropertyAccessorPropertyOrFieldReference.cachedWriteAccessorprivate StringIndexer.cachedWriteNameprivate Class<?>Indexer.cachedWriteTargetTypeprivate final TypedValueInlineList.constantprivate final TypedValueInlineMap.constantprivate final SpelNodeImpl[]ConstructorReference.dimensionsprotected StringSpelNodeImpl.exitTypeDescriptorIndicates the type descriptor for the result of this expression node.private Indexer.IndexedTypeIndexer.indexedTypeprivate final ObjectIndexer.MapIndexingValueRef.keyprotected StringOperator.leftActualDescriptorprivate MethodFunctionReference.methodprivate StringMethodReference.originalPrimitiveExitTypeDescriptorprivate StringPropertyOrFieldReference.originalPrimitiveExitTypeDescriptorprivate final StringLiteral.originalValueprivate SpelNodeImplSpelNodeImpl.parentprotected StringOperator.rightActualDescriptorprivate final Class<?>MethodReference.CachedMethodExecutor.staticClassstaticClass记录组件的字段。private final TypeDescriptorMethodReference.CachedMethodExecutor.targettarget记录组件的字段。private final TypeDescriptorMethodReference.MethodValueRef.targetTypeprivate Class<?>OperatorInstanceof.typeprivate Class<?>TypeReference.typeprivate final ObjectMethodReference.MethodValueRef.valueprivate TypedValueQualifiedIdentifier.value注释类型为Nullable的cn.taketoday.expression.spel.ast中的方法修饰符和类型方法说明private TypedValueInlineList.computeConstant()If all the components of the list are constants, or lists that themselves contain constants, then a constant list can be built to represent this node.private TypedValueInlineMap.computeConstantValue()If all the components of the map are constants, or lists/maps that themselves contain constants, then a constant list can be built to represent this node.private MethodExecutorMethodReference.getCachedExecutor(EvaluationContext evaluationContext, Object value, TypeDescriptor target, List<TypeDescriptor> argumentTypes) InlineList.getConstantValue()InlineMap.getConstantValue()private Constructor<?>Indexer.CollectionIndexingValueRef.getDefaultConstructor(Class<?> type) SpelNodeImpl.getExitDescriptor()Class<?>SpelNodeImpl.getObjectClass(Object obj) final StringLiteral.getOriginalValue()final ObjectSpelNodeImpl.getValue(ExpressionState expressionState) protected final <T> TSpelNodeImpl.getValue(ExpressionState state, Class<T> desiredReturnType) Class<?>MethodReference.CachedMethodExecutor.staticClass()返回staticClass记录组件的值。MethodReference.CachedMethodExecutor.target()返回target记录组件的值。注释类型为Nullable的cn.taketoday.expression.spel.ast中的方法参数修饰符和类型方法说明private voidOpAnd.assertValueNotNull(Boolean value) private voidOpOr.assertValueNotNull(Boolean value) Operator.DescriptorComparison.checkNumericCompatibility(String leftDeclaredDescriptor, String rightDeclaredDescriptor, String leftActualDescriptor, String rightActualDescriptor) Return an object that indicates whether the input descriptors are compatible.Operator.DescriptorComparison.checkNumericCompatibility(String leftDeclaredDescriptor, String rightDeclaredDescriptor, String leftActualDescriptor, String rightActualDescriptor) Return an object that indicates whether the input descriptors are compatible.Operator.DescriptorComparison.checkNumericCompatibility(String leftDeclaredDescriptor, String rightDeclaredDescriptor, String leftActualDescriptor, String rightActualDescriptor) Return an object that indicates whether the input descriptors are compatible.Operator.DescriptorComparison.checkNumericCompatibility(String leftDeclaredDescriptor, String rightDeclaredDescriptor, String leftActualDescriptor, String rightActualDescriptor) Return an object that indicates whether the input descriptors are compatible.private <T> TIndexer.convertValue(TypeConverter converter, Object value, Class<T> targetType) private Class<?>Projection.determineCommonType(Class<?> oldType, Class<?> newType) static booleanOperator.equalityCheck(EvaluationContext context, Object left, Object right) Perform an equality check for the given operand values.static booleanOperator.equalityCheck(EvaluationContext context, Object left, Object right) Perform an equality check for the given operand values.static StringFormatHelper.formatClassNameForMessage(Class<?> clazz) Determine a readable name for a given Class object.private MethodExecutorMethodReference.getCachedExecutor(EvaluationContext evaluationContext, Object value, TypeDescriptor target, List<TypeDescriptor> argumentTypes) Class<?>SpelNodeImpl.getObjectClass(Object obj) static List<PropertyAccessor>AstUtils.getPropertyAccessorsToTry(Class<?> targetType, List<PropertyAccessor> propertyAccessors) Determines the set of property resolvers that should be used to try and access a property on the specified target type.private List<PropertyAccessor>PropertyOrFieldReference.getPropertyAccessorsToTry(Object contextObject, List<PropertyAccessor> propertyAccessors) Determines the set of property resolvers that should be used to try and access a property on the specified target type.private TypedValueMethodReference.getValueInternal(EvaluationContext evaluationContext, Object value, TypeDescriptor targetType, Object[] arguments) private TypedValueMethodReference.getValueInternal(EvaluationContext evaluationContext, Object value, TypeDescriptor targetType, Object[] arguments) booleanMethodReference.CachedMethodExecutor.isSuitable(Object value, TypeDescriptor target, List<TypeDescriptor> argumentTypes) private voidIndexer.setArrayElement(TypeConverter converter, Object ctx, int idx, Object newValue, Class<?> arrayComponentType) voidvoidvoidvoidvoidIndexer.setValue(ExpressionState state, Object newValue) voidvoidvoidvoidSpelNodeImpl.setValue(ExpressionState expressionState, Object newValue) voidvoidSets the value this ValueRef points to, it should not require expression component re-evaluation.voidvoidprivate voidOpPlus.walk(MethodVisitor mv, CodeFlow cf, SpelNodeImpl operand) Walk through a possible tree of nodes that combine strings and append them all to the same (on stack) StringBuilder.private voidPropertyOrFieldReference.writeProperty(TypedValue contextObject, EvaluationContext evalContext, String name, Object newValue) 注释类型为Nullable的cn.taketoday.expression.spel.ast中的构造器参数限定符构造器说明privateCachedMethodExecutor(MethodExecutor methodExecutor, Class<?> staticClass, TypeDescriptor target, List<TypeDescriptor> argumentTypes) 创建CachedMethodExecutor记录的实例。privateCachedMethodExecutor(MethodExecutor methodExecutor, Class<?> staticClass, TypeDescriptor target, List<TypeDescriptor> argumentTypes) 创建CachedMethodExecutor记录的实例。MapIndexingValueRef(TypeConverter typeConverter, Map map, Object key, TypeDescriptor mapEntryDescriptor) -
cn.taketoday.expression.spel.standard中Nullable的使用
修饰符和类型字段说明private CompiledExpressionSpelExpression.compiledAstToken.dataprivate EvaluationContextSpelExpression.evaluationContext修饰符和类型方法说明SpelCompiler.compile(SpelNodeImpl expression) Attempt compilation of the supplied expression.private Class<? extends CompiledExpression>SpelCompiler.createExpressionClass(SpelNodeImpl expressionToCompile) Generate the class that encapsulates the compiled expression and define it.private SpelNodeImplInternalSpelExpressionParser.eatExpression()private SpelNodeImplInternalSpelExpressionParser.eatLogicalAndExpression()private SpelNodeImplInternalSpelExpressionParser.eatLogicalOrExpression()private SpelNodeImplInternalSpelExpressionParser.eatNode()private SpelNodeImplInternalSpelExpressionParser.eatNonDottedNode()private SpelNodeImplInternalSpelExpressionParser.eatPowerIncDecExpression()private SpelNodeImplInternalSpelExpressionParser.eatPrimaryExpression()private SpelNodeImplInternalSpelExpressionParser.eatProductExpression()private SpelNodeImplInternalSpelExpressionParser.eatRelationalExpression()private SpelNodeImplInternalSpelExpressionParser.eatStartNode()private SpelNodeImplInternalSpelExpressionParser.eatSumExpression()private SpelNodeImplInternalSpelExpressionParser.eatUnaryExpression()SpelExpression.getValue()SpelExpression.getValue(EvaluationContext context) <T> TSpelExpression.getValue(EvaluationContext context, Class<T> expectedResultType) SpelExpression.getValue(EvaluationContext context, Object rootObject) <T> TSpelExpression.getValue(EvaluationContext context, Object rootObject, Class<T> expectedResultType) <T> T<T> TClass<?>SpelExpression.getValueType()Class<?>SpelExpression.getValueType(EvaluationContext context) Class<?>SpelExpression.getValueType(EvaluationContext context, Object rootObject) Class<?>SpelExpression.getValueType(Object rootObject) SpelExpression.getValueTypeDescriptor()SpelExpression.getValueTypeDescriptor(EvaluationContext context) SpelExpression.getValueTypeDescriptor(EvaluationContext context, Object rootObject) SpelExpression.getValueTypeDescriptor(Object rootObject) private SpelNodeImpl[]InternalSpelExpressionParser.maybeEatMethodArgs()private TokenInternalSpelExpressionParser.maybeEatRelationalOperator()private TokenInternalSpelExpressionParser.nextToken()private TokenInternalSpelExpressionParser.peekToken()注释类型为Nullable的cn.taketoday.expression.spel.standard中的方法参数修饰符和类型方法说明private voidInternalSpelExpressionParser.checkLeftOperand(Token token, SpelNodeImpl operandExpression) private voidInternalSpelExpressionParser.checkOperands(Token token, SpelNodeImpl left, SpelNodeImpl right) private voidInternalSpelExpressionParser.checkOperands(Token token, SpelNodeImpl left, SpelNodeImpl right) private voidInternalSpelExpressionParser.checkRightOperand(Token token, SpelNodeImpl operandExpression) protected SpelExpressionInternalSpelExpressionParser.doParseExpression(String expressionString, ParserContext context) protected SpelExpressionSpelExpressionParser.doParseExpression(String expressionString, ParserContext context) static SpelCompilerSpelCompiler.getCompiler(ClassLoader classLoader) Factory method for compiler instances.<T> TSpelExpression.getValue(EvaluationContext context, Class<T> expectedResultType) SpelExpression.getValue(EvaluationContext context, Object rootObject) <T> TSpelExpression.getValue(EvaluationContext context, Object rootObject, Class<T> expectedResultType) <T> TSpelExpression.getValue(EvaluationContext context, Object rootObject, Class<T> expectedResultType) <T> T<T> T<T> TClass<?>SpelExpression.getValueType(EvaluationContext context, Object rootObject) Class<?>SpelExpression.getValueType(Object rootObject) SpelExpression.getValueTypeDescriptor(EvaluationContext context, Object rootObject) SpelExpression.getValueTypeDescriptor(Object rootObject) private booleanInternalSpelExpressionParser.isValidQualifiedId(Token node) booleanSpelExpression.isWritable(EvaluationContext context, Object rootObject) booleanSpelExpression.isWritable(Object rootObject) private intInternalSpelExpressionParser.positionOf(Token t) voidSpelExpression.setValue(EvaluationContext context, Object value) voidSpelExpression.setValue(EvaluationContext context, Object rootObject, Object value) voidSpelExpression.setValue(EvaluationContext context, Object rootObject, Object value) voidvoidprivate TypedValueSpelExpression.toTypedValue(Object object) 注释类型为Nullable的cn.taketoday.expression.spel.standard中的构造器参数 -
cn.taketoday.expression.spel.support中Nullable的使用
修饰符和类型字段说明private BeanResolverStandardEvaluationContext.beanResolverprivate final ClassLoaderStandardTypeLocator.classLoaderprivate List<ConstructorResolver>StandardEvaluationContext.constructorResolversprivate Map<Class<?>,MethodFilter> ReflectiveMethodResolver.filtersprivate List<MethodResolver>StandardEvaluationContext.methodResolversprivate List<PropertyAccessor>StandardEvaluationContext.propertyAccessorsprivate Class<?>ReflectiveMethodExecutor.publicDeclaringClassprivate ReflectiveMethodResolverStandardEvaluationContext.reflectiveMethodResolverprivate TypedValueSimpleEvaluationContext.Builder.rootObjectprivate TypeConverterSimpleEvaluationContext.Builder.typeConverterprivate TypeConverterStandardEvaluationContext.typeConverterprivate TypeLocatorStandardEvaluationContext.typeLocatorprivate final IntegerReflectiveConstructorExecutor.varargsPositionprivate final IntegerReflectiveMethodExecutor.varargsPosition修饰符和类型方法说明(专用程序包) static ReflectionHelper.ArgumentsMatchInfoReflectionHelper.compareArguments(List<TypeDescriptor> expectedArgTypes, List<TypeDescriptor> suppliedArgTypes, TypeConverter typeConverter) Compare argument arrays and return information about whether they match.(专用程序包) static ReflectionHelper.ArgumentsMatchInfoReflectionHelper.compareArgumentsVarargs(List<TypeDescriptor> expectedArgTypes, List<TypeDescriptor> suppliedArgTypes, TypeConverter typeConverter) Compare argument arrays and return information about whether they match.StandardTypeConverter.convertValue(Object value, TypeDescriptor sourceType, TypeDescriptor targetType) private Class<?>ReflectiveMethodExecutor.discoverPublicDeclaringClass(Method method, Class<?> clazz) protected FieldFind a field of a certain name on a specified class.private Fieldprotected MethodReflectivePropertyAccessor.findGetterForProperty(String propertyName, Class<?> clazz, boolean mustBeStatic) Find a getter method for the specified property.private MethodReflectivePropertyAccessor.findGetterForProperty(String propertyName, Class<?> clazz, Object target) private MethodReflectivePropertyAccessor.findMethodForProperty(String[] methodSuffixes, String prefix, Class<?> clazz, boolean mustBeStatic, int numberOfParams, Set<Class<?>> requiredReturnTypes) protected MethodReflectivePropertyAccessor.findSetterForProperty(String propertyName, Class<?> clazz, boolean mustBeStatic) Find a setter method for the specified property.private MethodReflectivePropertyAccessor.findSetterForProperty(String propertyName, Class<?> clazz, Object target) SimpleEvaluationContext.getBeanResolver()SimpleEvaluationContextdoes not support the use of bean references.StandardEvaluationContext.getBeanResolver()Class<?>StandardTypeLocator.getClassFor(String className) Class<?>ReflectiveMethodExecutor.getPublicDeclaringClass()Find the first public class in the methods declaring class hierarchy that declares this method.Class<?>[]ReflectivePropertyAccessor.getSpecificTargetClasses()Returnsnullwhich means this is a general purpose accessor.Class<?>[]ReflectivePropertyAccessor.OptimalPropertyAccessor.getSpecificTargetClasses()private TypeDescriptorReflectivePropertyAccessor.getTypeDescriptor(EvaluationContext context, Object target, String name) SimpleEvaluationContext.lookupVariable(String name) StandardEvaluationContext.lookupVariable(String name) DataBindingMethodResolver.resolve(EvaluationContext context, Object targetObject, String name, List<TypeDescriptor> argumentTypes) ReflectiveConstructorResolver.resolve(EvaluationContext context, String typeName, List<TypeDescriptor> argumentTypes) Locate a constructor on the type.ReflectiveMethodResolver.resolve(EvaluationContext context, Object targetObject, String name, List<TypeDescriptor> argumentTypes) Locate a method on a type.private Class<?>StandardTypeLocator.resolveClassFor(String className) 注释类型为Nullable的cn.taketoday.expression.spel.support中的方法参数修饰符和类型方法说明booleanStandardTypeComparator.canCompare(Object left, Object right) booleanStandardTypeComparator.canCompare(Object left, Object right) booleanStandardTypeConverter.canConvert(TypeDescriptor sourceType, TypeDescriptor targetType) booleanReflectivePropertyAccessor.canRead(EvaluationContext context, Object target, String name) booleanReflectivePropertyAccessor.OptimalPropertyAccessor.canRead(EvaluationContext context, Object target, String name) booleanReflectivePropertyAccessor.canWrite(EvaluationContext context, Object target, String name) booleanReflectivePropertyAccessor.OptimalPropertyAccessor.canWrite(EvaluationContext context, Object target, String name) intintstatic booleanReflectionHelper.convertAllMethodHandleArguments(TypeConverter converter, Object[] arguments, MethodHandle methodHandle, Integer varargsPosition) Takes an input set of argument values and converts them to the types specified as the required parameter types.(专用程序包) static booleanReflectionHelper.convertArguments(TypeConverter converter, Object[] arguments, Executable executable, Integer varargsPosition) Takes an input set of argument values and converts them to the types specified as the required parameter types.StandardTypeConverter.convertValue(Object value, TypeDescriptor sourceType, TypeDescriptor targetType) StandardTypeConverter.convertValue(Object value, TypeDescriptor sourceType, TypeDescriptor targetType) ReflectivePropertyAccessor.createOptimalAccessor(EvaluationContext context, Object target, String name) Attempt to create an optimized property accessor tailored for a property of a particular name on a particular class.booleanprivate TypeDescriptorReflectivePropertyAccessor.getTypeDescriptor(Method readMethod, Method writeMethod, Class<?> declaringClass) private TypeDescriptorReflectivePropertyAccessor.getTypeDescriptor(Method readMethod, Method writeMethod, Class<?> declaringClass) private TypeDescriptorReflectivePropertyAccessor.getTypeDescriptor(Method readMethod, Method writeMethod, Class<?> declaringClass) private static booleanReflectionHelper.isFirstEntryInArray(Object value, Object possibleArray) Check if the supplied value is the first entry in the array represented by the possibleArray value.booleanStandardOperatorOverloader.overridesOperation(Operation operation, Object leftOperand, Object rightOperand) booleanStandardOperatorOverloader.overridesOperation(Operation operation, Object leftOperand, Object rightOperand) ReflectivePropertyAccessor.OptimalPropertyAccessor.read(EvaluationContext context, Object target, String name) ReflectivePropertyAccessor.read(EvaluationContext context, Object target, String name) voidReflectiveMethodResolver.registerMethodFilter(Class<?> type, MethodFilter filter) Register a filter for methods on the given type.voidStandardEvaluationContext.setRootObject(Object rootObject) voidStandardEvaluationContext.setRootObject(Object rootObject, TypeDescriptor typeDescriptor) voidSimpleEvaluationContext.setVariable(String name, Object value) voidStandardEvaluationContext.setVariable(String name, Object value) voidStandardEvaluationContext.setVariable(String name, Object value) voidReflectivePropertyAccessor.OptimalPropertyAccessor.write(EvaluationContext context, Object target, String name, Object newValue) voidReflectivePropertyAccessor.OptimalPropertyAccessor.write(EvaluationContext context, Object target, String name, Object newValue) voidReflectivePropertyAccessor.write(EvaluationContext context, Object target, String name, Object newValue) voidReflectivePropertyAccessor.write(EvaluationContext context, Object target, String name, Object newValue) 注释类型为Nullable的cn.taketoday.expression.spel.support中的构造器参数限定符构造器说明ReflectiveMethodExecutor(Method method, Class<?> targetClass) Create a new executor for the given method.privateSimpleEvaluationContext(List<PropertyAccessor> accessors, List<MethodResolver> resolvers, TypeConverter converter, TypedValue rootObject) privateSimpleEvaluationContext(List<PropertyAccessor> accessors, List<MethodResolver> resolvers, TypeConverter converter, TypedValue rootObject) StandardEvaluationContext(Object rootObject) Create aStandardEvaluationContextwith the given root object.StandardTypeLocator(ClassLoader classLoader) Create aStandardTypeLocatorfor the givenClassLoader. -
cn.taketoday.lang中Nullable的使用
注释类型为Nullable的cn.taketoday.lang中的字段修饰符和类型字段说明private final TodayStrategies.ArgumentResolverTodayStrategies.DefaultInstantiator.argumentResolverprivate final StringVersion.extensionextension记录组件的字段。注释类型为Nullable的cn.taketoday.lang中的方法修饰符和类型方法说明Version.extension()返回extension记录组件的值。private static Constructor<?>TodayStrategies.DefaultInstantiator.findConstructor(Class<?> implementationClass) private static Constructor<?>TodayStrategies.DefaultInstantiator.findDeclaredConstructor(Class<?> implementationClass) private static Constructor<?>TodayStrategies.DefaultInstantiator.findSingleConstructor(Constructor<?>[] constructors) static StringReturn the version information for the providedClass.static Stringget first strategystatic IntegerTodayStrategies.getInteger(String key) Determines the integer value of the property with the specified name.static IntegerTodayStrategies.getInteger(String key, Integer val) Returns the integer value of the property with the specified name.static LongDetermines thelongvalue of the system property with the specified name.static LongReturns thelongvalue of the system property with the specified name.static StringTodayStrategies.getProperty(String key) Retrieve the property value for the given key, checking local properties first and falling back to JVM-level system properties.static <T extends Enumerable<V>,V>
VGet the value corresponding to the nameprotected <T> TTodayStrategies.instantiateStrategy(String implementationName, Class<T> type, ClassInstantiator instantiator, TodayStrategies.FailureHandler failureHandler) static <T extends Enumerable<V>,V>
TReturns Enumerable byenum value<T> TResolve the given argument if possible.注释类型为Nullable的cn.taketoday.lang中的方法参数修饰符和类型方法说明static <T> List<T>TodayStrategies.find(Class<T> strategyType, ClassLoader classLoader) Load and instantiate the strategy implementations of the given type from "META-INF/today.strategies", using the given class loader.static <T> List<T>TodayStrategies.find(Class<T> strategyType, ClassLoader classLoader, ClassInstantiator instantiator) Load and instantiate the strategy implementations of the given type from "META-INF/today.strategies", using the given class loader.TodayStrategies.findNames(Class<?> strategyType, ClassLoader classLoader) Load the fully qualified class names of strategy implementations of the given type from "META-INF/today.strategies", using the given class loader.TodayStrategies.findNames(String strategyKey, ClassLoader classLoader) Load the fully qualified class names of strategy implementations of the given type from "META-INF/today.strategies", using the given class loader.static TodayStrategiesTodayStrategies.forDefaultResourceLocation(ClassLoader classLoader) Create aTodayStrategiesinstance that will load and instantiate the strategy implementations from "META-INF/today.strategies", using the given class loader.static TodayStrategiesTodayStrategies.forLocation(String resourceLocation, ClassLoader classLoader) Create aTodayStrategiesinstance that will load and instantiate the strategy implementations from the given location, using the given class loader.static <T> Tget first strategystatic IntegerTodayStrategies.getInteger(String key, Integer val) Returns the integer value of the property with the specified name.<T> List<T>TodayStrategies.load(Class<T> strategyType, ClassInstantiator instantiator, TodayStrategies.FailureHandler failureHandler) Load and instantiate the strategy implementations of the given type from "META-INF/today.strategies", using the configured class loader, the given argument resolver, and custom failure handling provided by the given failure handler.<T> List<T>TodayStrategies.load(Class<T> strategyType, TodayStrategies.ArgumentResolver argumentResolver) Load and instantiate the strategy implementations of the given type from "META-INF/today.strategies", using the configured class loader and the given argument resolver.<T> List<T>TodayStrategies.load(Class<T> strategyType, TodayStrategies.ArgumentResolver argumentResolver, TodayStrategies.FailureHandler failureHandler) Load and instantiate the strategy implementations of the given type from "META-INF/today.strategies", using the configured class loader, the given argument resolver, and custom failure handling provided by the given failure handler.<T> List<T>TodayStrategies.load(Class<T> strategyType, TodayStrategies.ArgumentResolver argumentResolver, TodayStrategies.FailureHandler failureHandler) Load and instantiate the strategy implementations of the given type from "META-INF/today.strategies", using the configured class loader, the given argument resolver, and custom failure handling provided by the given failure handler.<T> List<T>TodayStrategies.load(Class<T> strategyType, TodayStrategies.FailureHandler failureHandler) Load and instantiate the strategy implementations of the given type from "META-INF/today.strategies", using the configured class loader with custom failure handling provided by the given failure handler.static <T extends Enumerable<V>,V>
TReturns Enumerable byenum valuestatic voidTodayStrategies.setProperty(String key, String value) Programmatically set a local property, overriding an entry in theTodayStrategies.PROPERTIES_RESOURCE_LOCATIONfile (if any).注释类型为Nullable的cn.taketoday.lang中的构造器参数限定符构造器说明(专用程序包)DefaultInstantiator(TodayStrategies.ArgumentResolver argumentResolver) protectedTodayStrategies(ClassLoader classLoader, Map<String, List<String>> strategies) Create a newTodayStrategiesinstance.Version(int major, int minor, int micro, String type, int step, String extension, String implementationVersion) 创建Version记录的实例。 -
cn.taketoday.logging中Nullable的使用
注释类型为Nullable的cn.taketoday.logging中的字段注释类型为Nullable的cn.taketoday.logging中的方法参数修饰符和类型方法说明protected abstract voidLogger.logInternal(Level level, String msg, Throwable t, Object[] args) -
cn.taketoday.reflect中Nullable的使用
注释类型为Nullable的cn.taketoday.reflect中的字段修饰符和类型字段说明private Annotation[]Property.annotationsprivate final FieldReflectivePropertyAccessor.fieldprivate final FieldReflectiveReadOnlyPropertyAccessor.fieldprotected final MethodProperty.readMethodprivate TypeDescriptorProperty.typeDescriptorprotected final MethodProperty.writeMethod注释类型为Nullable的cn.taketoday.reflect中的方法修饰符和类型方法说明<T extends Annotation>
TProperty.getAnnotation(Class<T> annotationClass) Property.getField()get or find a Fielddefault MethodGetterMethod.getReadMethod()Property.getReadMethod()Property.getWriteMethod()default MethodSetterMethod.getWriteMethod()Property.getWriteMethodParameter()private MethodParameterProperty.resolveReadMethodParameter()注释类型为Nullable的cn.taketoday.reflect中的方法参数修饰符和类型方法说明private voidProperty.addAnnotationsToMap(Map<Class<? extends Annotation>, Annotation> annotationMap, AnnotatedElement object) static PropertyAccessorstatic PropertyAccessorstatic PropertyAccessorPropertyAccessor.fromMethod(GetterMethod readMethod, SetterMethod writeMethod) use GetterMethod and SetterMethod tech to access propertystatic PropertyAccessorPropertyAccessor.fromMethod(Method readMethod, Method writeMethod) getter setter is exists in a bean or pojo, use fast invoke techMethodInvokerstatic PropertyAccessorPropertyAccessor.fromMethod(Method readMethod, Method writeMethod) getter setter is exists in a bean or pojo, use fast invoke techMethodInvokerstatic PropertyAccessorPropertyAccessor.fromReflective(Field field, Method readMethod, Method writeMethod) use java reflectFieldtechstatic PropertyAccessorPropertyAccessor.fromReflective(Field field, Method readMethod, Method writeMethod) use java reflectFieldtechstatic PropertyAccessorPropertyAccessor.fromReflective(Field field, Method readMethod, Method writeMethod) use java reflectFieldtech注释类型为Nullable的cn.taketoday.reflect中的构造器参数限定符构造器说明(专用程序包)ReflectivePropertyAccessor(Field field, Method readMethod, Method writeMethod) (专用程序包)ReflectivePropertyAccessor(Field field, Method readMethod, Method writeMethod) (专用程序包)ReflectivePropertyAccessor(Field field, Method readMethod, Method writeMethod) (专用程序包)ReflectiveReadOnlyPropertyAccessor(Field field, Method readMethod) -
cn.taketoday.util中Nullable的使用
注释类型为Nullable的cn.taketoday.util中的字段修饰符和类型字段说明private Object[]ReflectiveMethodInvoker.argumentsprivate final IntFunction<E[]>ArrayHolder.arrayGeneratorprivate static final MethodDefineClassHelper.classLoaderDefineClassMethodprivate byte[]FastByteArrayOutputStream.FastByteArrayInputStream.currentBufferprivate StringStopWatch.currentTaskNameName of the current task.ArrayHolder.elementClassConcurrentReferenceHashMap.entrySetLate binding entry set.UnmodifiableMultiValueMap.entrySet(专用程序包) ConcurrentLruCache.Node<K,V> ConcurrentLruCache.EvictionQueue.firstprivate static BiConsumer<String,byte[]> DefineClassHelper.generatedClassHandlerprivate final KConcurrentReferenceHashMap.Entry.keyUnmodifiableMultiValueMap.keySet(专用程序包) ConcurrentLruCache.Node<K,V> ConcurrentLruCache.EvictionQueue.lastprivate ConcurrentReferenceHashMap.Entry<K,V> ConcurrentReferenceHashMap.EntryIterator.lastprivate StopWatch.TaskInfoStopWatch.lastTaskInfoDefineClassHelper.loadedClassHandlerMapCache.mappingFunctiondefault mapping functionprivate MethodReflectiveMethodInvoker.methodObjectThe method we will call.(专用程序包) ConcurrentLruCache.Node<K,V> ConcurrentLruCache.Node.nextprivate ConcurrentReferenceHashMap.Entry<K,V> ConcurrentReferenceHashMap.EntryIterator.nextprivate final ConcurrentReferenceHashMap.Reference<K,V> ConcurrentReferenceHashMap.SoftEntryReference.nextReferenceprivate final ConcurrentReferenceHashMap.Reference<K,V> ConcurrentReferenceHashMap.WeakEntryReference.nextReferenceprivate final PropertyMapperPropertyMapper.parent(专用程序包) ConcurrentLruCache.Node<K,V> ConcurrentLruCache.Node.prevprivate static final ProtectionDomainDefineClassHelper.PROTECTION_DOMAINprivate static RandomMimeTypeUtils.randomprivate ConcurrentReferenceHashMap.Reference<K,V> ConcurrentReferenceHashMap.EntryIterator.referenceprivate ConcurrentReferenceHashMap.Reference<K,V>[] ConcurrentReferenceHashMap.EntryIterator.referencesprivate CharsetMimeType.resolvedCharsetprivate final PropertyMapper.SourceOperatorPropertyMapper.sourceOperatorprivate StringReflectiveMethodInvoker.staticMethodprivate final Class<?>MethodClassKey.targetClassprotected Class<?>ReflectiveMethodInvoker.targetClassprivate StringReflectiveMethodInvoker.targetMethodprivate ObjectReflectiveMethodInvoker.targetObjectprivate ArrayList<StopWatch.TaskInfo>StopWatch.taskListprivate ThreadGroupCustomizableThreadCreator.threadGroupprivate static final ThrowableDefineClassHelper.THROWABLEprivate StringMimeType.toStringValueprivate VConcurrentReferenceHashMap.Entry.valueprivate VKeyValueHolder.valueprivate Collection<List<V>>UnmodifiableMultiValueMap.valuesprivate final StringPropertyPlaceholderHandler.valueSeparator注释类型为Nullable的cn.taketoday.util中的方法修饰符和类型方法说明StopWatch.currentTaskName()Get the name of the currently running task, if any.static ObjectSerializationUtils.deserialize(byte[] bytes) 已过时。This utility uses Java Object Serialization, which allows arbitrary code to be run and is known for being the source of many Remote Code Execution (RCE) vulnerabilities.static Class<?>ClassUtils.determineCommonAncestor(Class<?> clazz1, Class<?> clazz2) Determine the common ancestor of the given classes, if any.private <T> T<T> TConcurrentReferenceHashMap.Segment.doTask(int hash, Object key, ConcurrentReferenceHashMap<K, V>.Task<T> task) Apply an update operation to this segment.protected TConcurrentReferenceHashMap.Task.execute(ConcurrentReferenceHashMap.Reference<K, V> ref, ConcurrentReferenceHashMap.Entry<K, V> entry) Convenience method that can be used for tasks that do not need access toConcurrentReferenceHashMap.Entries.protected TConcurrentReferenceHashMap.Task.execute(ConcurrentReferenceHashMap.Reference<K, V> ref, ConcurrentReferenceHashMap.Entry<K, V> entry, ConcurrentReferenceHashMap.Entries entries) Execute the task.static MethodReflectionUtils.findDeclaredMethodWithMinimalParameters(Class<?> clazz, String methodName) Find a method with the given method name and minimal parameters (best case: none), declared on the given class or one of its superclasses.ReflectionUtils.findDefaultMethodsOnInterfaces(Class<?> clazz) static Fieldstatic Fieldstatic FieldReflectionUtils.findFieldIgnoreCase(Class<?> clazz, String name) static <E> ECollectionUtils.findFirstMatch(Collection<?> source, Collection<E> candidates) Return the first element in 'candidates' that is contained in 'source'.private static <K,V> ConcurrentReferenceHashMap.Reference<K, V> ConcurrentReferenceHashMap.findInChain(ConcurrentReferenceHashMap.Reference<K, V> ref, Object key, int hash) private static ConcurrentReferenceHashMap.ReferenceConcurrentReferenceHashMap.findInChain(Object key, int hash, ConcurrentReferenceHashMap.Reference[] references) protected MethodReflectiveMethodInvoker.findMatchingMethod()Find a matching method with the specified name for the specified arguments.static MethodReflectionUtils.findMethod(Class<?> clazz, String name) Attempt to find aMethodon the supplied class with the supplied name and no parameters.static MethodReflectionUtils.findMethod(Class<?> clazz, String name, Class<?>... paramTypes) Attempt to find aMethodon the supplied class with the supplied name and parameter types.static MethodReflectionUtils.findMethodWithMinimalParameters(Class<?> clazz, String methodName) Find a method with the given method name and minimal parameters (best case: none), declared on the given class or one of its superclasses.static MethodReflectionUtils.findMethodWithMinimalParameters(Method[] methods, String methodName) Find a method with the given method name and minimal parameters (best case: none) in the given list of methods.static ObjectCollectionUtils.findValueOfType(Collection<?> collection, Class<?>[] types) Find a single value of one of the given types in the given Collection: searching the Collection for a value of the first type, then searching for a value of the second type, etc.static <T> TCollectionUtils.findValueOfType(Collection<?> collection, Class<T> type) Find a single value of the given type in the given Collection.static <T> TCollectionUtils.firstElement(Iterable<T> iterable) Retrieve the first element of the given Iterable, usingSortedSet.first()or otherwise using the iterator.static <T> TCollectionUtils.firstElement(List<T> list) Retrieve the first element of the given List, accessing the zero index.static <T> TCollectionUtils.firstElement(T[] array) Retrieve the first element of the given Array, accessing the zero index.E[]ArrayHolder.get()ConcurrentReferenceHashMap.Reference.get()Return the referenced entry, ornullif the entry is no longer available.private Object[]Instantiator.getAvailableParameter(Class<?> parameterType) MimeType.getCharset()Return the character set, as indicated by acharsetparameter, if any.static <T> Constructor<T>ReflectionUtils.getConstructorIfAvailable(Class<T> clazz, Class<?>... paramTypes) Determine whether the given class has a declared constructor with the given signature, and return it if available (else returnnull).static ClassLoaderClassUtils.getDefaultClassLoader()Return the default ClassLoader to use: typically the thread context ClassLoader, if available; the ClassLoader that loaded the ClassUtils class will be used as fallback.static StringClassUtils.getDescriptiveType(Object value) Return a descriptive name for the given object's type: usually simply the class name, but component type class name + "[]" for arrays, and an appended list of implemented interfaces for JDK proxies.static <T> TCollectionUtils.getElement(List<T> list, int index) Returns the element at the specified position in this list.static <T> TCollectionUtils.getElement(T[] array, int index) Returns the element at the specified position in this list.static ObjectGet the field represented by the suppliedfield objecton the specifiedtarget object.static StringStringUtils.getFilename(String path) Extract the filename from the given Java resource path, e.g.static StringStringUtils.getFilenameExtension(String path) Extract the filename extension from the given Java resource path, e.g.Return the first value for the given key.static Class<?>[]ClassUtils.getGenerics(Class<?> type, Class<?> superClass) Find generics in target classConcurrentReferenceHashMap.Entry.getKey()static MethodReflectionUtils.getMethodIfAvailable(Class<?> clazz, String methodName, Class<?>... paramTypes) Determine whether the given class has a public method with the given signature, and return it if available (else returnnull).(专用程序包) static MethodReflectionUtils.getMethodOrNull(Class<?> clazz, String methodName, Class<?>[] paramTypes) ConcurrentLruCache.Node.getNext()ConcurrentReferenceHashMap.Reference.getNext()Return the next reference in the chain, ornullif none.ConcurrentReferenceHashMap.SoftEntryReference.getNext()ConcurrentReferenceHashMap.WeakEntryReference.getNext()ConcurrentReferenceHashMap.getOrDefault(Object key, V defaultValue) MimeType.getParameter(String name) Return a generic parameter value, given a parameter name.ConcurrentLruCache.Node.getPrevious()static StringReflectionUtils.getPropertyName(Method readMethod, Method writeMethod) get property name from readMethod or writeMethodstatic ProtectionDomainReflectionUtils.getProtectionDomain(Class<?> source) static MethodReflectionUtils.getReadMethod(Class<?> declaredClass, Class<?> type, String name) find getter methodstatic MethodReflectionUtils.getReadMethod(Field field) find getter methodprotected final ConcurrentReferenceHashMap.Reference<K,V> ConcurrentReferenceHashMap.getReference(Object key, ConcurrentReferenceHashMap.Restructure restructure) Return aConcurrentReferenceHashMap.Referenceto theConcurrentReferenceHashMap.Entryfor the specifiedkey, ornullif not found.ConcurrentReferenceHashMap.Segment.getReference(Object key, int hash, ConcurrentReferenceHashMap.Restructure restructure) static MethodReflectionUtils.getStaticMethod(Class<?> clazz, String methodName, Class<?>... args) Return a public static method of a class.MimeType.getSubtypeSuffix()Return the subtype suffix as defined in RFC 6839.Class<?>ReflectiveMethodInvoker.getTargetClass()Return the target class on which to call the target method.ReflectiveMethodInvoker.getTargetMethod()Return the name of the method to be invoked.ReflectiveMethodInvoker.getTargetObject()Return the target object on which to call the target method.CustomizableThreadCreator.getThreadGroup()Return the thread group that threads should be created in (ornullfor the default group).static <T> Class<T>ClassUtils.getUserClass(String name) If the class is dynamically generated then the user class will be extracted in a specific format.ConcurrentReferenceHashMap.Entry.getValue()KeyValueHolder.getValue()Gets the value from this holder.static MethodReflectionUtils.getWriteMethod(Class<?> declaredClass, Class<?> type, String name) find setter methodstatic MethodReflectionUtils.getWriteMethod(Field field) find setter methodprivate TInstantiator.instantiate(Instantiator.TypeSupplier typeSupplier) ReflectiveMethodInvoker.invoke()Invoke the specified method.static ObjectReflectionUtils.invokeMethod(Method method, Object target) Invoke the specifiedMethodagainst the supplied target object with no arguments.static ObjectReflectionUtils.invokeMethod(Method method, Object target, Object... args) Invoke the specifiedMethodagainst the supplied target object with the supplied arguments.static <T> TCollectionUtils.lastElement(List<T> list) Retrieve the last element of the given List, accessing the highest index.static <T> TCollectionUtils.lastElement(Set<T> set) Retrieve the last element of the given Set, usingSortedSet.last()or otherwise iterating over all elements (assuming a linked set).static <T> TCollectionUtils.lastElement(T[] array) Retrieve the last element of the given array, accessing the highest index.static <T> Class<T>Load classstatic <T> Class<T>ClassUtils.load(String name, ClassLoader classLoader) Load class with given class name andClassLoader<U> U<U> URouteMatcher.matchAndExtract(String pattern, RouteMatcher.Route route) Match the pattern to the route and extract template variables.SimpleRouteMatcher.matchAndExtract(String pattern, RouteMatcher.Route route) static ClassLoaderClassUtils.overrideThreadContextClassLoader(ClassLoader classLoaderToUse) Override the thread context ClassLoader with the environment's bean ClassLoader if necessary, i.e. if the bean ClassLoader is not equivalent to the thread context ClassLoader already.static LocaleStringUtils.parseLocale(String localeValue) Parse the givenStringvalue into aLocale, accepting theLocale.toString()format as well as BCP 47 language tags.static LocaleStringUtils.parseLocaleString(String localeString) Parse the givenStringrepresentation into aLocale.(专用程序包) ConcurrentLruCache.Node<K,V> ConcurrentLruCache.EvictionQueue.poll()ConcurrentReferenceHashMap.ReferenceManager.pollForPurge()Return any reference that has been garbage collected and can be purged from the underlying structure ornullif no references need purging.private VConcurrentReferenceHashMap.putIfAbsent(K key, V value) MultiValueMapAdapter.putIfAbsent(K key, List<V> value) static StringQuote the givenStringwith single quotes.static ObjectStringUtils.quoteIfString(Object obj) Turn the given Object into aStringwith single quotes if it is aString; keeping the Object as-is else.PlaceholderResolver.resolvePlaceholder(String placeholderName) Resolve the supplied placeholder name to the replacement value.SystemPropertyUtils.SystemPropertyPlaceholderResolver.resolvePlaceholder(String placeholderName) static Class<?>ClassUtils.resolvePrimitiveClassName(String name) static byte[]Serialize the given object to a byte array.Replaces the value corresponding to this entry with the specified value (optional operation).static String[]Split aStringat the first occurrence of the delimiter.static PropertiesStringUtils.splitArrayElementsIntoProperties(String[] array, String delimiter) Take an array of strings and split each element based on the given delimiter.static PropertiesStringUtils.splitArrayElementsIntoProperties(String[] array, String delimiter, String charsToDelete) Take an array of strings and split each element based on the given delimiter.static StringReturn a String from none-null object'stoString.static StringStringUtils.trimAllWhitespace(String str) Trim all whitespace from the givenString: leading, trailing, and in between characters.static StringStringUtils.trimLeadingCharacter(String str, char leadingCharacter) Trim all occurrences of the supplied leading character from the givenString.static StringStringUtils.trimLeadingWhitespace(String str) Trim leading whitespace from the givenString.static StringStringUtils.trimTrailingCharacter(String str, char trailingCharacter) Trim all occurrences of the supplied trailing character from the givenString.static StringStringUtils.trimTrailingWhitespace(String str) Trim trailing whitespace from the givenString.static StringStringUtils.trimWhitespace(String str) Trim leading and trailing whitespace from the givenString.Spliterator<Map.Entry<K,List<V>>> UnmodifiableMultiValueMap.UnmodifiableEntrySet.UnmodifiableEntrySpliterator.trySplit()Spliterator<List<T>>UnmodifiableMultiValueMap.UnmodifiableValueCollection.UnmodifiableValueSpliterator.trySplit()static ObjectObjectUtils.unwrapOptional(Object obj) Unwrap the given object which is potentially aOptional.注释类型为Nullable的cn.taketoday.util中的方法参数修饰符和类型方法说明static Object[]ClassUtils.adaptArgumentsIfNecessary(Method method, Object[] arguments) Adapt the given arguments to the target signature in the given method, if necessary: in particular, if a given vararg argument array does not match the array type of the declared vararg parameter in the method.final voidvoidAdd a new entry with the specified value.voidvoidAdd the given single value to the current list of values for the given key.voidvoidvoidArrayHolder.addAll(Collection<E> list) add list at end of the arraystatic voidCollectionUtils.addAll(ArrayHolder c, Object[] elements) static voidCollectionUtils.addAll(ArrayHolder c, Collection elements) static voidCollectionUtils.addAll(Collection c, Object[] elements) Adds all of the specified elements to the specified collection.static voidCollectionUtils.addAll(Collection c, Collection elements) Adds all of the specified elements to the specified collection.static voidCollectionUtils.addAll(Collection c, Enumeration values) Adds all of the specified elements to the specified collection.voidDefaultMultiValueMap.addAll(K key, Collection<? extends V> values) voidDefaultMultiValueMap.addAll(K key, Enumeration<? extends V> values) default voidAdd all the values of the givenMultiValueMapto the current values.default voidMultiValueMap.addAll(K key, Collection<? extends V> values) Add all the values of the given list to the current list of values for the given key.default voidMultiValueMap.addAll(K key, Enumeration<? extends V> values) Add all the values of the given enumeration to the current enumeration of values for the given key.voidMultiValueMapAdapter.addAll(K key, Collection<? extends V> values) voidvoidUnmodifiableMultiValueMap.addAll(K key, Collection<? extends V> values) voidUnmodifiableMultiValueMap.addAll(K key, Enumeration<? extends V> values) default voidMultiValueMap.addIfAbsent(K key, V value) voidUnmodifiableMultiValueMap.addIfAbsent(K key, V value) static <A,O extends A>
A[]ObjectUtils.addObjectToArray(A[] array, O obj) Append the given object to the given array, returning a new array consisting of the input array contents plus the given object.static <A,O extends A>
A[]ObjectUtils.addObjectToArray(A[] array, O obj) Append the given object to the given array, returning a new array consisting of the input array contents plus the given object.static <A,O extends A>
A[]ObjectUtils.addObjectToArray(A[] array, O obj, int position) Add the given object to the given array at the specified position, returning a new array consisting of the input array contents plus the given object.static <A,O extends A>
A[]ObjectUtils.addObjectToArray(A[] array, O obj, int position) Add the given object to the given array at the specified position, returning a new array consisting of the input array contents plus the given object.static String[]StringUtils.addStringToArray(String[] array, String str) Append the givenStringto the givenStringarray, returning a new array consisting of the input array contents plus the givenString.static StringStringUtils.arrayToCommaDelimitedString(Object[] arr) Convert aStringarray into a comma delimitedString(i.e., CSV).static StringStringUtils.arrayToDelimitedString(Object[] arr, String delim) Convert aStringarray into a delimitedString(e.g.static List<?>CollectionUtils.arrayToList(Object source) Convert the supplied array into a List.static StringStringUtils.camelCaseToUnderscore(String name) Convert a name in camelCase to an underscored name in lower case.static StringClassUtils.classPackageAsResourcePath(Class<?> clazz) Given an input class object, return a string which consists of the class's package name as a pathname, i.e., all dots ('.') are replaced by slashes ('/').private static voidAttempt to close the suppliedCloseable, silently swallowing any exceptions.static StringStringUtils.collectionToCommaDelimitedString(Collection<?> coll) Convert aCollectioninto a delimitedString(e.g., CSV).static StringStringUtils.collectionToDelimitedString(Collection<?> coll, String delim) Convert aCollectioninto a delimitedString(e.g.static StringStringUtils.collectionToDelimitedString(Collection<?> coll, String delim, String prefix, String suffix) Convert aCollectionto a delimitedString(e.g.StringUtils.commaDelimitedListToSet(String str) Convert a comma delimited list (e.g., a row from a CSV file) into a set.static String[]StringUtils.commaDelimitedListToStringArray(String str) Convert a comma delimited list (e.g., a row from a CSV file) into an array of strings.static booleanCheck whether the given Iterable contains the given element.static booleanCollectionUtils.contains(Enumeration<?> enumeration, Object element) Check whether the given Enumeration contains the given element.static booleanCheck whether the given Iterator contains the given element.booleanstatic booleanObjectUtils.containsElement(Object[] array, Object element) Check whether the given array contains the given element.static booleanCollectionUtils.containsInstance(Collection<?> collection, Object element) Check whether the given Collection contains the given element instance.booleanConcurrentReferenceHashMap.containsKey(Object key) static byte[]FileCopyUtils.copyToByteArray(InputStream in) Copy the contents of the given InputStream into a new byte array.static byte[]StreamUtils.copyToByteArray(InputStream in) Copy the contents of the given InputStream into a new byte array.static StringFileCopyUtils.copyToString(Reader in) Copy the contents of the given Reader into a String.static StringFileCopyUtils.copyToString(Reader in, int bufferSize) Copy the contents of the given Reader into a String.static StringStreamUtils.copyToString(InputStream in) Copy the contents of the given InputStream into a String.static StringStreamUtils.copyToString(InputStream in, Charset charset) Copy the contents of the given InputStream into a String.static StringStreamUtils.copyToString(InputStream in, Charset charset, int bufferSize) Copy the contents of the given InputStream into a String.static <K,V> Map<K, V> CollectionUtils.createApproximateMap(Object map) Create the most approximate map for the given map.static <K,V> Map<K, V> CollectionUtils.createApproximateMap(Object map, int capacity) Create the most approximate map for the given map.static <E> Collection<E>CollectionUtils.createCollection(Class<?> collectionType, Class<?> elementType, int capacity) Create the most appropriate collection for the given collection type.static Class<?>ClassUtils.createCompositeInterface(Class<?>[] interfaces, ClassLoader classLoader) Create a composite interface Class for the given interfaces, implementing the given interfaces in one single Class.static <K,V> Map<K, V> Create the most appropriate map for the given map type.ConcurrentReferenceHashMap.ReferenceManager.createReference(ConcurrentReferenceHashMap.Entry<K, V> entry, int hash, ConcurrentReferenceHashMap.Reference<K, V> next) Factory method used to create a newConcurrentReferenceHashMap.Reference.protected ValueMapCache.createValue(Key key, Param param) static Class<?>DefineClassHelper.defineClass(String className, Class<?> neighbor, ClassLoader loader, ProtectionDomain domain, byte[] classFile) Loads a class file by a given class loader.static Class<?>DefineClassHelper.defineClass(String className, Class<?> neighbor, ClassLoader loader, ProtectionDomain domain, byte[] classFile) Loads a class file by a given class loader.static StringDelete any character in a givenString.static booleanFileSystemUtils.deleteRecursively(File root) Delete the suppliedFile- for directories, recursively delete any nested directories or files as well.static booleanFileSystemUtils.deleteRecursively(Path root) Delete the suppliedPath— for directories, recursively delete any nested directories or files as well.static String[]StringUtils.delimitedListToStringArray(String str, String delimiter) Take aStringthat is a delimited list and convert it into aStringarray.static String[]StringUtils.delimitedListToStringArray(String str, String delimiter) Take aStringthat is a delimited list and convert it into aStringarray.static String[]StringUtils.delimitedListToStringArray(String str, String delimiter, String charsToDelete) Take aStringthat is a delimited list and convert it into aStringarray.static String[]StringUtils.delimitedListToStringArray(String str, String delimiter, String charsToDelete) Take aStringthat is a delimited list and convert it into aStringarray.static String[]StringUtils.delimitedListToStringArray(String str, String delimiter, String charsToDelete) Take aStringthat is a delimited list and convert it into aStringarray.static ObjectSerializationUtils.deserialize(byte[] bytes) 已过时。This utility uses Java Object Serialization, which allows arbitrary code to be run and is known for being the source of many Remote Code Execution (RCE) vulnerabilities.static Class<?>ClassUtils.determineCommonAncestor(Class<?> clazz1, Class<?> clazz2) Determine the common ancestor of the given classes, if any.static Class<?>ClassUtils.determineCommonAncestor(Class<?> clazz1, Class<?> clazz2) Determine the common ancestor of the given classes, if any.private static DataUnitDataSize.DataSizeUtils.determineDataUnit(String suffix, DataUnit defaultUnit) private static Class<?>ClassUtils.doForName(String name, ClassLoader classLoader) private <T> T<T> TConcurrentReferenceHashMap.Segment.doTask(int hash, Object key, ConcurrentReferenceHashMap<K, V>.Task<T> task) Apply an update operation to this segment.static voidReflectionUtils.doWithFields(Class<?> clazz, ReflectionUtils.FieldCallback fc, ReflectionUtils.FieldFilter ff) Invoke the given callback on all fields in the target class, going up the class hierarchy to get all declared fields.static voidReflectionUtils.doWithMethods(Class<?> clazz, ReflectionUtils.MethodCallback mc, ReflectionUtils.MethodFilter mf) Perform the given callback operation on all matching methods of the given class and superclasses (or given interface and super-interfaces).static booleanStringUtils.endsWithIgnoreCase(String str, String suffix) Test if the givenStringends with the specified suffix, ignoring upper/lower case.static booleanStringUtils.endsWithIgnoreCase(String str, String suffix) Test if the givenStringends with the specified suffix, ignoring upper/lower case.final booleanbooleanbooleanbooleanbooleanbooleanMimeType.equalsTypeAndSubtype(MimeType other) Similar toMimeType.equals(Object)but based on the type and subtype only, i.e. ignoring parameters.protected TConcurrentReferenceHashMap.Task.execute(ConcurrentReferenceHashMap.Reference<K, V> ref, ConcurrentReferenceHashMap.Entry<K, V> entry) Convenience method that can be used for tasks that do not need access toConcurrentReferenceHashMap.Entries.protected TConcurrentReferenceHashMap.Task.execute(ConcurrentReferenceHashMap.Reference<K, V> ref, ConcurrentReferenceHashMap.Entry<K, V> entry) Convenience method that can be used for tasks that do not need access toConcurrentReferenceHashMap.Entries.protected TConcurrentReferenceHashMap.Task.execute(ConcurrentReferenceHashMap.Reference<K, V> ref, ConcurrentReferenceHashMap.Entry<K, V> entry, ConcurrentReferenceHashMap.Entries entries) Execute the task.protected TConcurrentReferenceHashMap.Task.execute(ConcurrentReferenceHashMap.Reference<K, V> ref, ConcurrentReferenceHashMap.Entry<K, V> entry, ConcurrentReferenceHashMap.Entries entries) Execute the task.protected TConcurrentReferenceHashMap.Task.execute(ConcurrentReferenceHashMap.Reference<K, V> ref, ConcurrentReferenceHashMap.Entry<K, V> entry, ConcurrentReferenceHashMap.Entries entries) Execute the task.static Fieldstatic Fieldprivate static <K,V> ConcurrentReferenceHashMap.Reference<K, V> ConcurrentReferenceHashMap.findInChain(ConcurrentReferenceHashMap.Reference<K, V> ref, Object key, int hash) private static ConcurrentReferenceHashMap.ReferenceConcurrentReferenceHashMap.findInChain(Object key, int hash, ConcurrentReferenceHashMap.Reference[] references) static MethodReflectionUtils.findMethod(Class<?> clazz, String name, Class<?>... paramTypes) Attempt to find aMethodon the supplied class with the supplied name and parameter types.static <T> TCollectionUtils.findValueOfType(Collection<?> collection, Class<T> type) Find a single value of the given type in the given Collection.static <T> TCollectionUtils.firstElement(Iterable<T> iterable) Retrieve the first element of the given Iterable, usingSortedSet.first()or otherwise using the iterator.static <T> TCollectionUtils.firstElement(List<T> list) Retrieve the first element of the given List, accessing the zero index.static <T> TCollectionUtils.firstElement(T[] array) Retrieve the first element of the given Array, accessing the zero index.static <E> ArrayHolder<E>static <E> ArrayHolder<E>ArrayHolder.forGenerator(IntFunction<E[]> arrayGenerator) static StringLogFormatUtils.formatValue(Object value, boolean limitLength) Convenience variant ofLogFormatUtils.formatValue(Object, int, boolean)that limits the length of a log message to 100 characters and also replaces newline and control characters iflimitLengthis set to "true".static StringLogFormatUtils.formatValue(Object value, int maxLength, boolean replaceNewlinesAndControlCharacters) Format the given value viatoString(), quoting it if it is aCharSequence, truncating at the specifiedmaxLength, and compacting it into a single line whenreplaceNewLinesis set.static <T> Class<T>ClassUtils.forName(String name, ClassLoader classLoader) Replacement forClass.forName()that also returns Class instances for primitives (e.g.(专用程序包) static Instantiator.TypeSupplierInstantiator.TypeSupplier.forName(ClassLoader classLoader, String name) <T> PropertyMapper.Source<T>PropertyMapper.from(T value) Return a newPropertyMapper.Sourcefrom the specified value that can be used to perform the mapping.final ValueIf the specified key is not already associated with a value (or is mapped tonull), attempts to compute its value using the given mapping function and enters it into this map unlessnull.static Class<?>[]ClassUtils.getAllInterfacesForClass(Class<?> clazz, ClassLoader classLoader) Return all interfaces that the given class implements as an array, including ones implemented by superclasses.ClassUtils.getAllInterfacesForClassAsSet(Class<?> clazz, ClassLoader classLoader) Return all interfaces that the given class implements as a Set, including ones implemented by superclasses.static StringClassUtils.getDescriptiveType(Object value) Return a descriptive name for the given object's type: usually simply the class name, but component type class name + "[]" for arrays, and an appended list of implemented interfaces for JDK proxies.static StringObjectUtils.getDisplayString(Object obj) Return a content-based String representation ifobjis notnull; otherwise returns an empty String.static <T> TCollectionUtils.getElement(List<T> list, int index) Returns the element at the specified position in this list.static <T> TCollectionUtils.getElement(T[] array, int index) Returns the element at the specified position in this list.static ObjectGet the field represented by the suppliedfield objecton the specifiedtarget object.static StringStringUtils.getFilename(String path) Extract the filename from the given Java resource path, e.g.static StringStringUtils.getFilenameExtension(String path) Extract the filename extension from the given Java resource path, e.g.protected intGet the hash for a given object, apply an additional hash function to reduce collisions.static MethodReflectionUtils.getInterfaceMethodIfPossible(Method method, Class<?> targetClass) Determine a corresponding interface method for the given method handle, if possible.static MethodDetermine whether the given class has a public method with the given signature, and return it if available (else throws anIllegalStateException).static MethodReflectionUtils.getMethodIfAvailable(Class<?> clazz, String methodName, Class<?>... paramTypes) Determine whether the given class has a public method with the given signature, and return it if available (else returnnull).static MethodReflectionUtils.getMostSpecificMethod(Method method, Class<?> targetClass) Given a method, which may come from an interface, and a target class used in the current reflective invocation, find the corresponding target method if there is one.ConcurrentReferenceHashMap.getOrDefault(Object key, V defaultValue) ConcurrentReferenceHashMap.getOrDefault(Object key, V defaultValue) static StringReflectionUtils.getPropertyName(Method readMethod, Method writeMethod) get property name from readMethod or writeMethodstatic StringReflectionUtils.getPropertyName(Method readMethod, Method writeMethod) get property name from readMethod or writeMethodstatic ProtectionDomainReflectionUtils.getProtectionDomain(Class<?> source) static StringClassUtils.getQualifiedMethodName(Method method, Class<?> clazz) Return the qualified name of the given method, consisting of fully qualified interface/class name + "." + method name.static MethodReflectionUtils.getReadMethod(Class<?> declaredClass, Class<?> type, String name) find getter methodprotected final ConcurrentReferenceHashMap.Reference<K,V> ConcurrentReferenceHashMap.getReference(Object key, ConcurrentReferenceHashMap.Restructure restructure) Return aConcurrentReferenceHashMap.Referenceto theConcurrentReferenceHashMap.Entryfor the specifiedkey, ornullif not found.ConcurrentReferenceHashMap.Segment.getReference(Object key, int hash, ConcurrentReferenceHashMap.Restructure restructure) static Resource[]ResourceUtils.getResources(String pathPattern, ClassLoader classLoader) Resolve the given location pattern into Resource objects.(专用程序包) static StringReflectionUtils.getterPropertyName(String name, Class<?> type) getterPropertyName("isName", boolean.class); -> isName getterPropertyName("isName", String.class); -> getIsNamestatic Method[]ReflectionUtils.getUniqueDeclaredMethods(Class<?> leafClass, ReflectionUtils.MethodFilter mf) Get the unique set of declared methods on the leaf class and all superclasses.static MethodReflectionUtils.getWriteMethod(Class<?> declaredClass, Class<?> type, String name) find setter methodstatic booleanStringUtils.hasText(CharSequence str) Check whether the givenCharSequencecontains actual text.static booleanCheck whether the givenStringcontains actual text.static StringObjectUtils.identityToString(Object obj) Return a String representation of an object's overall identity.booleanIndicate whether this MIME Type includes the given MIME Type.static <T> intSmartList.indexOf(T[] src, T obj, int start, int end) Instantiator.instantiate(ClassLoader classLoader, Collection<String> names) Instantiate the given set of class name, injecting constructor arguments as necessary.static <T> TReflectionUtils.invokeConstructor(Constructor<T> constructor, Object[] args) static ObjectReflectionUtils.invokeMethod(Method method, Object target) Invoke the specifiedMethodagainst the supplied target object with no arguments.static ObjectReflectionUtils.invokeMethod(Method method, Object target, Object... args) Invoke the specifiedMethodagainst the supplied target object with the supplied arguments.static booleanCollectionUtils.isApproximableCollectionType(Class<?> collectionType) Determine whether the given collection type is an approximable type, i.e. a type thatCollectionUtils.createApproximateCollection(java.lang.Object, int)can approximate.static booleanCollectionUtils.isApproximableMapType(Class<?> mapType) Determine whether the given map type is an approximable type, i.e. a type thatCollectionUtils.createApproximateMap(java.lang.Object)can approximate.static booleanDetermine whether the given object is an array: either an Object array or a primitive array.static booleanClassUtils.isAssignableValue(Class<?> type, Object value) Determine if the given type is assignable from the given value, assuming setting by reflection.static booleanStringUtils.isBlank(CharSequence str) Check whether the givenCharSequencecontains actual text.static booleanCheck whether the givenStringcontains actual text.static booleanClassUtils.isCacheSafe(Class<?> clazz, ClassLoader classLoader) Check whether the given class is cache-safe in the given context, i.e. whether it is loaded by the given ClassLoader or a parent of it.booleanMimeType.isCompatibleWith(MimeType other) Indicate whether this MIME Type is compatible with the given MIME Type.static booleanObjectUtils.isCompatibleWithThrowsClause(Throwable ex, Class<?>... declaredExceptions) Check whether the given exception is compatible with the specified exception types, as declared in a throws clause.static booleanCollectionUtils.isEmpty(ArrayHolder<?> holder) Returntrueif the supplied Collection isnullor empty.static booleanCollectionUtils.isEmpty(Collection<?> collection) Returntrueif the supplied Collection isnullor empty.static booleanReturntrueif the supplied Map isnullor empty.static booleanDetermine whether the given object is empty.static booleanDetermine whether the given array is empty: i.e.static booleanStringUtils.isEmpty(CharSequence str) static booleanReflectionUtils.isEqualsMethod(Method method) Determine whether the given method is an "equals" method.static booleanReflectionUtils.isFinalizeMethod(Method method) Determine whether the given method is a "finalize" method.static booleanReflectionUtils.isHashCodeMethod(Method method) Determine whether the given method is a "hashCode" method.static booleanTypeUtils.isNotAssignableBound(Type lhsType, Type rhsType) static booleanTypeUtils.isNotAssignableBound(Type lhsType, Type rhsType) static booleanCollectionUtils.isNotEmpty(ArrayHolder<?> holder) Returntrueif the supplied Collection is notnulland empty.static booleanCollectionUtils.isNotEmpty(Collection<?> collection) static booleanCollectionUtils.isNotEmpty(Map<?, ?> map) static booleanObjectUtils.isNotEmpty(Object obj) static booleanObjectUtils.isNotEmpty(Object[] array) static booleanStringUtils.isNotEmpty(CharSequence str) static booleanReflectionUtils.isObjectMethod(Method method) Determine whether the given method is originally declared byObject.private static booleanReflectionUtils.isOverridable(Method method, Class<?> targetClass) Determine whether the given method is overridable in the given target class.static booleanClassUtils.isPresent(String className, ClassLoader classLoader) Determine whether theClassidentified by the supplied name is present and can be loaded.static booleanReflectionUtils.isToStringMethod(Method method) Determine whether the given method is a "toString" method.static booleanClassUtils.isVisible(Class<?> clazz, ClassLoader classLoader) Check whether the given class is visible in the given ClassLoader.static <T> voidCollectionUtils.iterate(Enumeration<T> enumeration, Consumer<T> consumer) static <T> voidstatic <T> TCollectionUtils.lastElement(List<T> list) Retrieve the last element of the given List, accessing the highest index.static <T> TCollectionUtils.lastElement(Set<T> set) Retrieve the last element of the given Set, usingSortedSet.last()or otherwise iterating over all elements (assuming a linked set).static <T> TCollectionUtils.lastElement(T[] array) Retrieve the last element of the given array, accessing the highest index.static <T> Class<T>ClassUtils.load(String name, ClassLoader classLoader) Load class with given class name andClassLoader<U> Ustatic booleanStringUtils.matchesCharacter(String str, char singleCharacter) Test if the givenStringmatches the given single character.static booleanStringUtils.matchesCharacter(String str, int idx, char charToMatch) Test if the givenStringmatches the given index to single character.static booleanStringUtils.matchesFirst(String str, char charToMatch) Test if the first givenStringmatches the given single character.static booleanStringUtils.matchesLast(String str, char charToMatch) Test if the last givenStringmatches the given single character.static booleanClassUtils.matchesTypeName(Class<?> clazz, String typeName) Check whether the given class matches the user-specified type name.static <E> voidCollectionUtils.mergeArrayIntoCollection(Object array, Collection<E> collection) Merge the given array into the given Collection.static <K,V> void CollectionUtils.mergePropertiesIntoMap(Properties props, Map<K, V> map) Merge the given Properties instance into the given Map, copying all properties (key-value pairs) over.static <E> ArrayList<E>CollectionUtils.newArrayList(E... elements) static <E> HashSet<E>CollectionUtils.newHashSet(E... elements) Create a hash setstatic <T> TReflectionUtils.newInstance(Class<T> type, Class[] parameterTypes, Object[] args) static <E> LinkedHashSet<E>CollectionUtils.newLinkedHashSet(E... elements) Instantiate a newLinkedHashSetwith an initial elements that can accommodate the specified number of elements without any immediate resize/rehash operations to be expected.static StringObjectUtils.nullSafeClassName(Object obj) Determine the class name for the given object.static StringObjectUtils.nullSafeConciseToString(Object obj) Generate a null-safe, concise string representation of the supplied object as described below.static booleanObjectUtils.nullSafeEquals(Object o1, Object o2) Determine if the given objects are equal, returningtrueif both arenullorfalseif only one isnull.static booleanObjectUtils.nullSafeEquals(Object o1, Object o2) Determine if the given objects are equal, returningtrueif both arenullorfalseif only one isnull.static intObjectUtils.nullSafeHash(Object... elements) Return a hash code for the given elements, delegating toObjectUtils.nullSafeHashCode(Object)for each element.static intObjectUtils.nullSafeHashCode(Object obj) Return a hash code for the given object; typically the value ofObject#hashCode()}.static StringObjectUtils.nullSafeToString(boolean[] array) Return a String representation of the contents of the specified array.static StringObjectUtils.nullSafeToString(byte[] array) Return a String representation of the contents of the specified array.static StringObjectUtils.nullSafeToString(char[] array) Return a String representation of the contents of the specified array.static StringObjectUtils.nullSafeToString(double[] array) Return a String representation of the contents of the specified array.static StringObjectUtils.nullSafeToString(float[] array) Return a String representation of the contents of the specified array.static StringObjectUtils.nullSafeToString(int[] array) Return a String representation of the contents of the specified array.static StringObjectUtils.nullSafeToString(long[] array) Return a String representation of the contents of the specified array.static StringObjectUtils.nullSafeToString(short[] array) Return a String representation of the contents of the specified array.static StringObjectUtils.nullSafeToString(Object obj) Return a String representation of the specified Object.static StringObjectUtils.nullSafeToString(Object[] array) Return a String representation of the contents of the specified array.static ClassLoaderClassUtils.overrideThreadContextClassLoader(ClassLoader classLoaderToUse) Override the thread context ClassLoader with the environment's bean ClassLoader if necessary, i.e. if the bean ClassLoader is not equivalent to the thread context ClassLoader already.static DataSizeDataSize.parse(CharSequence text, DataUnit defaultUnit) static LocaleStringUtils.parseLocaleString(String localeString) Parse the givenStringrepresentation into aLocale.static <T extends Number>
TNumberUtils.parseNumber(String text, Class<T> targetClass, NumberFormat numberFormat) Parse the giventextinto aNumberinstance of the given target class, using the suppliedNumberFormat.protected StringPropertyPlaceholderHandler.parseStringValue(String value, PlaceholderResolver placeholderResolver, Set<String> visitedPlaceholders) static StringStringUtils.prependLeadingSlash(String path) Check Url, format url like :private Vprivate Vstatic voidCopies all of the mappings from the specified map to target map (optional operation).ConcurrentReferenceHashMap.putIfAbsent(K key, V value) ConcurrentReferenceHashMap.putIfAbsent(K key, V value) static StringQuote the givenStringwith single quotes.static ObjectStringUtils.quoteIfString(Object obj) Turn the given Object into aStringwith single quotes if it is aString; keeping the Object as-is else.booleanbooleanbooleanbooleanbooleanstatic StringReplace all occurrences of a substring within a string with another string.static <T> Class<T>ClassUtils.resolveClassName(String className, ClassLoader classLoader) Resolve the given class name into a Class instance.static Class<?>ClassUtils.resolvePrimitiveClassName(String name) private voidConcurrentReferenceHashMap.Segment.restructure(boolean allowResize, ConcurrentReferenceHashMap.Reference<K, V> ref) static byte[]Serialize the given object to a byte array.final voidvoidArrayHolder.set(Collection<E> list) voidvoidSet the given single value under the given key.voidvoiddefault voidSet the given values under.static voidSet the field represented by the supplied field object on the specified target object to the specifiedvalue.static voidDefineClassHelper.setGeneratedClassHandler(BiConsumer<String, byte[]> handler) static voidDefineClassHelper.setLoadedClassHandler(Consumer<Class<?>> handler) voidConcurrentLruCache.Node.setNext(ConcurrentLruCache.Node<K, V> next) voidConcurrentLruCache.Node.setPrevious(ConcurrentLruCache.Node<K, V> prev) voidReflectiveMethodInvoker.setStaticMethod(String staticMethod) Set a fully qualified static method name to invoke, e.g.voidReflectiveMethodInvoker.setTargetClass(Class<?> targetClass) Set the target class on which to call the target method.voidReflectiveMethodInvoker.setTargetMethod(String targetMethod) Set the name of the method to be invoked.voidReflectiveMethodInvoker.setTargetObject(Object targetObject) Set the target object on which to call the target method.(专用程序包) static StringReflectionUtils.setterPropertyName(String name, Class<?> type) setterPropertyName("isName", boolean.class); -> setName setterPropertyName("isName", String.class); -> setIsNamevoidCustomizableThreadCreator.setThreadGroup(ThreadGroup threadGroup) Specify the thread group that threads should be created in.voidCustomizableThreadCreator.setThreadNamePrefix(String threadNamePrefix) Specify the prefix to use for the names of newly created threads.static booleanStringUtils.simpleMatch(String[] patterns, String str) Match a String against the given patterns, supporting the following simple pattern styles: "xxx*", "*xxx", "*xxx*" and "xxx*yyy" matches (with an arbitrary number of pattern parts), as well as direct equality.static booleanStringUtils.simpleMatch(String pattern, String str) Match a String against the given pattern, supporting the following simple pattern styles: "xxx*", "*xxx", "*xxx*" and "xxx*yyy" matches (with an arbitrary number of pattern parts), as well as direct equality.static booleanStringUtils.simpleMatch(String pattern, String str) Match a String against the given pattern, supporting the following simple pattern styles: "xxx*", "*xxx", "*xxx*" and "xxx*yyy" matches (with an arbitrary number of pattern parts), as well as direct equality.static String[]Split withConstant.SPLIT_REGEXPstatic String[]Split aStringat the first occurrence of the delimiter.static String[]Split aStringat the first occurrence of the delimiter.static PropertiesStringUtils.splitArrayElementsIntoProperties(String[] array, String delimiter, String charsToDelete) Take an array of strings and split each element based on the given delimiter.StringUtils.splitAsList(String source) Split withConstant.SPLIT_REGEXPstatic booleanStringUtils.startsWithIgnoreCase(String str, String prefix) Test if the givenStringstarts with the specified prefix, ignoring upper/lower case.static booleanStringUtils.startsWithIgnoreCase(String str, String prefix) Test if the givenStringstarts with the specified prefix, ignoring upper/lower case.static <A,E extends A>
A[]CollectionUtils.toArray(Enumeration<E> enumeration, A[] array) Marshal the elements from the given enumeration into an array of the given type.static <A,E extends A>
A[]Marshal the elements from the given iterator into an array of the given type.static StringObjectUtils.toHexString(Object obj) static <E> Iterator<E>CollectionUtils.toIterator(Enumeration<E> enumeration) Adapt anEnumerationto anIterator.static String[]StringUtils.tokenizeToStringArray(String str, String delimiters) static String[]StringUtils.tokenizeToStringArray(String str, String delimiters, boolean trimTokens, boolean ignoreEmptyTokens) static Object[]ObjectUtils.toObjectArray(Object source) Convert the given array (which may be a primitive array) to an object array (if necessary of primitive wrapper objects).static StringReturn a String from none-null object'stoString.static String[]StringUtils.toStringArray(Collection<String> collection) Copy the givenCollectioninto aStringarray.static String[]StringUtils.toStringArray(Enumeration<String> enumeration) Copy the givenEnumerationinto aStringarray.static StringStringUtils.trimAllWhitespace(String str) Trim all whitespace from the givenString: leading, trailing, and in between characters.static StringStringUtils.trimLeadingCharacter(String str, char leadingCharacter) Trim all occurrences of the supplied leading character from the givenString.static StringStringUtils.trimLeadingWhitespace(String str) Trim leading whitespace from the givenString.static voidCollectionUtils.trimToSize(Object list) Trims the capacity of ArrayList instance to be the list's current size.static StringStringUtils.trimTrailingCharacter(String str, char trailingCharacter) Trim all occurrences of the supplied trailing character from the givenString.static StringStringUtils.trimTrailingWhitespace(String str) Trim trailing whitespace from the givenString.static StringStringUtils.trimWhitespace(String str) Trim leading and trailing whitespace from the givenString.static ObjectObjectUtils.unwrapOptional(Object obj) Unwrap the given object which is potentially aOptional.注释类型为Nullable的cn.taketoday.util中的构造器参数限定符构造器说明ArrayHolder(Class<E> elementClass, IntFunction<E[]> arrayGenerator) ArrayHolder(Class<E> elementClass, IntFunction<E[]> arrayGenerator) CustomizableThreadCreator(String threadNamePrefix) Create a new CustomizableThreadCreator with the given thread name prefix.InstanceFilter(Collection<? extends T> includes, Collection<? extends T> excludes, boolean matchIfEmpty) Create a new instance based on includes/excludes collections.InstanceFilter(Collection<? extends T> includes, Collection<? extends T> excludes, boolean matchIfEmpty) Create a new instance based on includes/excludes collections.KeyValueHolder(K k, V v) MethodClassKey(Method method, Class<?> targetClass) Create a key object for the given method and target class.Copy-constructor that copies the type and subtype of the givenMimeType, and allows for different parameter.Create a newMimeTypefor the given type, subtype, and parameters.privatePropertyMapper(PropertyMapper parent, PropertyMapper.SourceOperator sourceOperator) privatePropertyMapper(PropertyMapper parent, PropertyMapper.SourceOperator sourceOperator) PropertyPlaceholderHandler(String placeholderPrefix, String placeholderSuffix, String valueSeparator, boolean ignoreUnresolvablePlaceholders) Creates a newPropertyPlaceholderHandlerthat uses the supplied prefix and suffix.SoftEntryReference(ConcurrentReferenceHashMap.Entry<K, V> entry, int hash, ConcurrentReferenceHashMap.Reference<K, V> next, ReferenceQueue<ConcurrentReferenceHashMap.Entry<K, V>> queue) WeakEntryReference(ConcurrentReferenceHashMap.Entry<K, V> entry, int hash, ConcurrentReferenceHashMap.Reference<K, V> next, ReferenceQueue<ConcurrentReferenceHashMap.Entry<K, V>> queue) -
cn.taketoday.util.comparator中Nullable的使用
注释类型为Nullable的cn.taketoday.util.comparator中的方法参数 -
cn.taketoday.util.concurrent中Nullable的使用
注释类型为Nullable的cn.taketoday.util.concurrent中的字段修饰符和类型字段说明private ThreadSettableListenableFuture.SettableTask.completingThreadprivate ObjectFutureAdapter.resultprivate ObjectListenableFutureCallbackRegistry.result注释类型为Nullable的cn.taketoday.util.concurrent中的方法修饰符和类型方法说明protected abstract TAdapts the given adaptee's result into T.(专用程序包) final TFutureAdapter.adaptInternal(S adapteeResult) FutureAdapter.get()SettableListenableFuture.get()Retrieve the value.Retrieve the value.注释类型为Nullable的cn.taketoday.util.concurrent中的方法参数修饰符和类型方法说明voidCalled when theListenableFuturecompletes with success.booleanSet the value of this future.booleanSettableListenableFuture.SettableTask.setResultValue(T value) voidTrigger aSuccessCallback.onSuccess(Object)call on all added callbacks with the given result.注释类型为Nullable的cn.taketoday.util.concurrent中的构造器参数限定符构造器说明ListenableFutureTask(Runnable runnable, T result) Create aListenableFutureTaskthat will, upon running, execute the givenRunnable, and arrange thatFutureTask.get()will return the given result on successful completion. -
cn.taketoday.util.function中Nullable的使用
注释类型为Nullable的cn.taketoday.util.function中的字段修饰符和类型字段说明SingletonSupplier.defaultSupplierSingletonSupplier.instanceSupplierprivate TSingletonSupplier.singletonInstance注释类型为Nullable的cn.taketoday.util.function中的方法修饰符和类型方法说明SingletonSupplier.get()Get the shared singleton instance for this supplier.static <T> SingletonSupplier<T>SingletonSupplier.ofNullable(Supplier<T> supplier) Build aSingletonSupplierwith the given supplier.static <T> SingletonSupplier<T>SingletonSupplier.ofNullable(T instance) Build aSingletonSupplierwith the given singleton instance.static <T> TResolve the givenSupplier, getting its result or immediately returningnullif the supplier itself wasnull.注释类型为Nullable的cn.taketoday.util.function中的方法参数修饰符和类型方法说明static <T> SingletonSupplier<T>SingletonSupplier.ofNullable(Supplier<T> supplier) Build aSingletonSupplierwith the given supplier.static <T> SingletonSupplier<T>SingletonSupplier.ofNullable(T instance) Build aSingletonSupplierwith the given singleton instance.static <T> TResolve the givenSupplier, getting its result or immediately returningnullif the supplier itself wasnull.注释类型为Nullable的cn.taketoday.util.function中的构造器参数限定符构造器说明SingletonSupplier(Supplier<? extends T> instanceSupplier, Supplier<? extends T> defaultSupplier) Build aSingletonSupplierwith the given instance supplier and a default supplier for the case when the instance isnull.SingletonSupplier(T instance, Supplier<? extends T> defaultSupplier) Build aSingletonSupplierwith the given singleton instance and a default supplier for the case when the instance isnull. -
cn.taketoday.util.xml中Nullable的使用
注释类型为Nullable的cn.taketoday.util.xml中的字段修饰符和类型字段说明private ContentHandlerAbstractXMLReader.contentHandlerprivate XMLEventListBasedXMLEventReader.currentEventprivate DTDHandlerAbstractXMLReader.dtdHandlerprivate StringStaxEventXMLReader.encodingprivate StringStaxStreamXMLReader.encodingprivate EntityResolverAbstractXMLReader.entityResolverprivate ErrorHandlerAbstractXMLReader.errorHandlerprivate XMLEventReaderStaxSource.eventReaderprivate XMLEventWriterStaxResult.eventWriterprivate BooleanAbstractStaxXMLReader.isStandaloneprivate LexicalHandlerAbstractXMLReader.lexicalHandlerprivate XMLStreamReaderStaxSource.streamReaderprivate XMLStreamWriterStaxResult.streamWriter注释类型为Nullable的cn.taketoday.util.xml中的方法修饰符和类型方法说明private StringConsume the next comment token, update the "inComment" flag, and return the remaining content.AbstractXMLStreamReader.getAttributeValue(String namespaceURI, String localName) XMLEventStreamReader.getCharacterEncodingScheme()static ElementDomUtils.getChildElementByTagName(Element ele, String childEleName) Utility method that returns the first child element identified by its name.static StringDomUtils.getChildElementValueByTagName(Element ele, String childEleName) Utility method that returns the first child element value identified by its name.AbstractXMLReader.getContentHandler()AbstractXMLReader.getDTDHandler()XMLEventStreamReader.getEncoding()AbstractXMLReader.getEntityResolver()AbstractXMLReader.getErrorHandler()protected LexicalHandlerAbstractXMLReader.getLexicalHandler()AbstractXMLReader.getProperty(String name) Throws aSAXNotRecognizedExceptionexception when the given property does not signify a lexical handler.XMLEventStreamReader.getVersion()(专用程序包) XMLEventReaderStaxSource.getXMLEventReader()Return theXMLEventReaderused by thisStaxSource.static XMLEventReaderStaxUtils.getXMLEventReader(Source source) Return theXMLEventReaderfor the given StAX Source.StaxResult.getXMLEventWriter()Return theXMLEventWriterused by thisStaxResult.static XMLEventWriterStaxUtils.getXMLEventWriter(Result result) Return theXMLEventWriterfor the given StAX Result.(专用程序包) XMLStreamReaderStaxSource.getXMLStreamReader()Return theXMLStreamReaderused by thisStaxSource.static XMLStreamReaderStaxUtils.getXMLStreamReader(Source source) Return theXMLStreamReaderfor the given StAX Source.StaxResult.getXMLStreamWriter()Return theXMLStreamWriterused by thisStaxResult.static XMLStreamWriterStaxUtils.getXMLStreamWriter(Result result) Return theXMLStreamWriterfor the given StAX Result.ListBasedXMLEventReader.nextTag()ListBasedXMLEventReader.peek()注释类型为Nullable的cn.taketoday.util.xml中的方法参数修饰符和类型方法说明AbstractXMLStreamReader.getAttributeValue(String namespaceURI, String localName) voidSimpleNamespaceContext.removeBinding(String prefix) Remove the given prefix from this context.voidAbstractXMLReader.setContentHandler(ContentHandler contentHandler) voidStaxEventHandler.setDocumentLocator(Locator locator) (专用程序包) static voidStaxStreamXMLReader.setDocumentLocator(ContentHandler contentHandler, Location location, String xmlVersion2, String encoding) (专用程序包) static voidStaxStreamXMLReader.setDocumentLocator(ContentHandler contentHandler, Location location, String xmlVersion2, String encoding) voidAbstractXMLReader.setDTDHandler(DTDHandler dtdHandler) voidAbstractXMLReader.setEntityResolver(EntityResolver entityResolver) voidAbstractXMLReader.setErrorHandler(ErrorHandler errorHandler) final voidprotected voidAbstractStaxXMLReader.startPrefixMapping(String prefix, String namespace) Start the prefix mapping for the given prefix.