Annotation Interface的使用
cn.taketoday.lang.Nullable
使用Nullable的程序包
程序包
说明
CGLIB or ASM other byte code library
Provides some useful class and method adapters.
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.
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
Optimised Reflection System
Useful Tools
Useful generic
java.util.Comparator implementations,
such as an invertible comparator and a compound comparator.Useful generic
java.util.concurrent.Future extensions. from SpringUseful 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.bytecode中Nullable的使用
注释类型为Nullable的cn.taketoday.bytecode中的方法注释类型为Nullable的cn.taketoday.bytecode中的方法参数修饰符和类型方法说明static BytecodeCompilerBytecodeCompiler.getCompiler(ClassLoader classLoader) Factory method for compiler instances.static Type[]注释类型为Nullable的cn.taketoday.bytecode中的构造器参数 -
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中的方法修饰符和类型方法说明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) static StringCodeFlow.toDescriptorFromObject(Object value) Determine the descriptor for an object instance (ornull). -
cn.taketoday.core中Nullable的使用
注释类型为Nullable的cn.taketoday.core中的字段注释类型为Nullable的cn.taketoday.core中的方法修饰符和类型方法说明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) protected IntegerFind an order value indicated by the given object.static TypeDescriptorTypeDescriptor.fromObject(Object source) Create a new type descriptor for an object.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>
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.Return the first value for the given key.TypeDescriptor.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.<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()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.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.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.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.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) 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.Class<?>ResolvableType.resolveGeneric(int... indexes) 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.VariableResolver.resolveVariable(TypeVariable<?> variable) Resolve the specified variable.Cast thisTypeDescriptorto a superclass or implemented interface preserving annotations and nested type context.注释类型为Nullable的cn.taketoday.core中的方法参数修饰符和类型方法说明voidvoidAdd the given single value to the current list of values for the given key.voidvoidDefaultMultiValueMap.addAll(K key, Collection<? extends V> values) voidDefaultMultiValueMap.addAll(K key, Enumeration<? extends V> values) voiddefault 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.default voidAdd all the values of the given list to the current list of values for the given key.voidCompositeParameterNameDiscoverer.addDiscoverer(ParameterNameDiscoverer... discoverer) add ParameterNameDiscovererdefault voidMultiValueMap.addIfAbsent(K key, V value) 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.protected booleanAntPathMatcher.doMatch(String pattern, String path, boolean fullMatch, Map<String, String> uriTemplateVariables) Actually match the givenpathagainst the givenpattern.booleanbooleanbooleanstatic 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 ResolvableTypeResolvableType.forParameter(Executable executable, int parameterIndex, Class<?> implementationClass) Return aResolvableTypefor the specifiedMethodparameter with a given implementation.static ResolvableTypeResolvableType.forReturnType(Method method, Class<?> implementationClass) Return aResolvableTypefor the specifiedMethodreturn type.static ResolvableTypeResolvableType.fromField(Field field, ResolvableType implementationType) Return aResolvableTypefor the specifiedFieldwith a given implementation.static ResolvableTypeResolvableType.fromInstance(Object instance) Return aResolvableTypefor the specified instance.static TypeDescriptorTypeDescriptor.fromObject(Object source) Create a new type descriptor for an object.static ResolvableTypeResolvableType.fromParameter(Parameter parameter, ResolvableType implementationType) Return aResolvableTypefor the specifiedParameterwith a given implementation type.static ResolvableTypeResolvableType.fromParameter(Parameter parameter, Type targetType) Return aResolvableTypefor the specifiedParameter, overriding the target type to resolve with a specific given type.static ResolvableTypeResolvableType.fromRawClass(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 ResolvableTypeReturn aResolvableTypefor the specifiedType.static ResolvableTypeResolvableType.fromType(Type type, ResolvableType owner) Return aResolvableTypefor the specifiedTypebacked by the given owner type.static ResolvableTypeResolvableType.fromType(Type type, ResolvableType owner) Return aResolvableTypefor the specifiedTypebacked by the given owner type.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.ResolvableType.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.String[]ParameterNameDiscoverer.getParameterNames(Executable executable) Return parameter names for an Executable(method or constructor), ornullif they cannot be determined.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.booleanResolvableType.isInstance(Object obj) Determine whether the given object is an instance of thisResolvableType.booleanAntPathMatcher.AntPathStringMatcher.matchStrings(String str, Map<String, String> uriTemplateVariables) Main entry point.Return a variant of thisMethodParameterwhich points to the same parameter but one nesting level deeper.default Class<?>SmartClassLoader.publicDefineClass(String name, byte[] b, ProtectionDomain protectionDomain) Define a custom class (typically a CGLIB proxy class) in this class loader.voidset or clear resolversvoidvoidSet the given single value under the given key.voiddefault voidSet the given values under.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.static ResolvableTypeResolvableType.valueOf(Type type, ResolvableType.VariableResolver variableResolver) static ResolvableTypeResolvableType.valueOf(Type type, ResolvableType.VariableResolver variableResolver) static ResolvableTypeResolvableType.valueOf(Type type, cn.taketoday.core.SerializableTypeWrapper.TypeProvider typeProvider, ResolvableType.VariableResolver variableResolver) static ResolvableTypeResolvableType.valueOf(Type type, cn.taketoday.core.SerializableTypeWrapper.TypeProvider typeProvider, ResolvableType.VariableResolver variableResolver) static ResolvableTypeResolvableType.valueOf(Type type, cn.taketoday.core.SerializableTypeWrapper.TypeProvider typeProvider, ResolvableType.VariableResolver variableResolver) MethodParameter.withContainingClass(Class<?> containingClass) Return a variant of thisMethodParameterwhich refers to the given containing class.注释类型为Nullable的cn.taketoday.core中的构造器参数限定符构造器说明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.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.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. -
cn.taketoday.core.annotation中Nullable的使用
注释类型为Nullable的cn.taketoday.core.annotation中的方法修饰符和类型方法说明Class<? extends Annotation>AnnotationAttributes.annotationType()Get the type of annotation represented by thisAnnotationAttributes.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 Integerstatic AnnotationAttributesReturn anAnnotationAttributesinstance based on the given map.static AnnotationAttributesAnnotationAttributes.fromMetadata(AnnotatedTypeMetadata metadata, Class<?> annotationClass) static AnnotationAttributesAnnotationAttributes.fromMetadata(AnnotatedTypeMetadata metadata, String annotationClassName) 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.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.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.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.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.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.AnnotationAwareOrderComparator.getPriority(Object obj) This implementation retrieves an @Priorityvalue, allowing for additional semantics over the regular @Orderannotation: typically, selecting one object over another in case of multiple matches but only one object to be returned.static IntegerOrderUtils.getPriority(Class<?> type) Return the value of thejakarta.annotation.Priorityannotation declared on the specified type, ornullif none.MergedAnnotation.getSource()Get the source that ultimately declared the root annotation, ornullif the source is not known.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.注释类型为Nullable的cn.taketoday.core.annotation中的方法参数修饰符和类型方法说明booleanstatic <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.static <A extends Annotation>
MergedAnnotation<A>Create a newMergedAnnotationinstance from the specified annotation.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.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.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.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.static IntegerReturn the order on the specifiedtype, or the specified default value if none can be found.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 booleanAnnotationUtils.isAnnotationMetaPresent(Class<? extends Annotation> annotationType, Class<? extends Annotation> metaAnnotationType) Determine if an annotation of typemetaAnnotationTypeis meta-present on the suppliedannotationType.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.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 Spring (i.e. wrapped in a dynamic proxy) with additional functionality such as attribute alias handling.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.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.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 RepeatableContainersRepeatableContainers.valueOf(Class<? extends Annotation> repeatable, Class<? extends Annotation> container) Create aRepeatableContainersinstance that uses a defined container and repeatable type.注释类型为Nullable的cn.taketoday.core.annotation中的构造器参数限定符构造器说明AnnotationAttributes(String annotationType, ClassLoader classLoader) Create a new, emptyAnnotationAttributesinstance for the specifiedannotationType. -
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) 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) 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.api.BufferNetty5BufferDecoder.decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) io.netty5.buffer.api.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) StringDecoder.decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) StringDecoder.decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<String>StringDecoder.decode(org.reactivestreams.Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<String>StringDecoder.decode(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>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.api.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.api.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.api.Buffer buffer, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) Netty5BufferEncoder.encodeValue(io.netty5.buffer.api.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) 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.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).注释类型为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中的方法修饰符和类型方法说明<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的使用
修饰符和类型方法说明<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> Tprotected ObjectGenericConversionService.convertNullSource(TypeDescriptor sourceType, TypeDescriptor targetType) Template method to convert anullsource.ConvertingPropertyEditorAdapter.getAsText()GenericConversionService.getConverter(TypeDescriptor sourceType, TypeDescriptor targetType) Hook method to lookup the converter for a given sourceType/targetType pair.protected GenericConverterGenericConversionService.getDefaultConverter(TypeDescriptor sourceType, TypeDescriptor targetType) Return the default converter if no converter is found for the given sourceType/targetType pair.注释类型为Nullable的cn.taketoday.core.conversion.support中的方法参数修饰符和类型方法说明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) <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> Tprotected ObjectGenericConversionService.convertNullSource(TypeDescriptor sourceType, TypeDescriptor targetType) Template method to convert anullsource.void -
cn.taketoday.core.env中Nullable的使用
注释类型为Nullable的cn.taketoday.core.env中的方法修饰符和类型方法说明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.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.PropertyResolverComposite.getProperty(String key) <T> TPropertyResolverComposite.getProperty(String key, Class<T> targetType) 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中的方法参数修饰符和类型方法说明protected <T> TAbstractPropertyResolver.convertValueIfNecessary(Object value, Class<T> targetType) Convert the given value to the specified target type, if necessary.booleanThisPropertySourceobject is equal to the given object if: they are the same instance thenameproperties for both objects are equalvoidAbstractEnvironment.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中的方法修饰符和类型方法说明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中的字段注释类型为Nullable的cn.taketoday.core.io中的方法修饰符和类型方法说明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".Resource.getName()Determine a name for this resource, i.e. typically the last part of the path: for example, "myfile.txt".DefaultResourceLoader.getProtocolResolvers()Return the collection of currently registered protocol resolvers, allowing for introspection as well as modification.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.booleanThis implementation compares the underlying Path references.booleanThis implementation compares the underlying URL references.static PatternResourceLoaderPatternResourceLoader.fromResourceLoader(ResourceLoader resourceLoader) Return a defaultPatternResourceLoaderfor the givenResourceLoader.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.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.UrlResource(String protocol, String location, String fragment) Create a newUrlBasedResourcebased on a URI specification. -
cn.taketoday.core.io.buffer中Nullable的使用
注释类型为Nullable的cn.taketoday.core.io.buffer中的方法参数 -
cn.taketoday.core.serializer中Nullable的使用
注释类型为Nullable的cn.taketoday.core.serializer中的构造器参数 -
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中的方法修饰符和类型方法说明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中的方法参数修饰符和类型方法说明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中的方法修饰符和类型方法说明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(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), also taking attribute overrides on composed annotations into account.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), also taking attribute overrides on composed annotations into account.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的使用
注释类型为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.SimpleMetadataReaderFactory(ResourceLoader resourceLoader) Create a new SimpleMetadataReaderFactory for the given resource loader.SimpleMetadataReaderFactory(ClassLoader classLoader) Create a new SimpleMetadataReaderFactory for the given class loader. -
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中的字段注释类型为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中的方法修饰符和类型方法说明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) 注释类型为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. -
cn.taketoday.expression.spel.ast中Nullable的使用
注释类型为Nullable的cn.taketoday.expression.spel.ast中的字段修饰符和类型字段说明protected StringSpelNodeImpl.exitTypeDescriptorIndicates the type descriptor for the result of this expression node.protected StringOperator.leftActualDescriptorprotected StringOperator.rightActualDescriptor注释类型为Nullable的cn.taketoday.expression.spel.ast中的方法修饰符和类型方法说明InlineList.getConstantValue()InlineMap.getConstantValue()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) 注释类型为Nullable的cn.taketoday.expression.spel.ast中的方法参数修饰符和类型方法说明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.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.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.voidCompoundExpression.setValue(ExpressionState state, Object value) voidIndexer.setValue(ExpressionState state, Object newValue) voidPropertyOrFieldReference.setValue(ExpressionState state, Object newValue) voidSpelNodeImpl.setValue(ExpressionState expressionState, Object newValue) voidvoidSets the value this ValueRef points to, it should not require expression component re-evaluation.voidvoidVariableReference.setValue(ExpressionState state, Object value) 注释类型为Nullable的cn.taketoday.expression.spel.ast中的构造器参数 -
cn.taketoday.expression.spel.standard中Nullable的使用
修饰符和类型方法说明SpelCompiler.compile(SpelNodeImpl expression) Attempt compilation of the supplied expression.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) 注释类型为Nullable的cn.taketoday.expression.spel.standard中的方法参数修饰符和类型方法说明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) booleanSpelExpression.isWritable(EvaluationContext context, Object rootObject) booleanSpelExpression.isWritable(Object rootObject) voidSpelExpression.setValue(EvaluationContext context, Object value) voidSpelExpression.setValue(EvaluationContext context, Object rootObject, Object value) voidSpelExpression.setValue(EvaluationContext context, Object rootObject, Object value) voidvoid -
cn.taketoday.expression.spel.support中Nullable的使用
修饰符和类型方法说明StandardTypeConverter.convertValue(Object value, TypeDescriptor sourceType, TypeDescriptor targetType) protected FieldFind a field of a certain name on a specified class.protected MethodReflectivePropertyAccessor.findGetterForProperty(String propertyName, Class<?> clazz, boolean mustBeStatic) Find a getter method for the specified property.protected MethodReflectivePropertyAccessor.findSetterForProperty(String propertyName, Class<?> clazz, boolean mustBeStatic) Find a setter method for the specified property.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()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.注释类型为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) intintStandardTypeConverter.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.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.StandardEvaluationContext(Object rootObject) Create aStandardEvaluationContextwith the given root object.StandardTypeLocator(ClassLoader classLoader) Create a StandardTypeLocator for the given ClassLoader. -
cn.taketoday.lang中Nullable的使用
注释类型为Nullable的cn.taketoday.lang中的方法修饰符和类型方法说明Version.extension()返回extension记录组件的值。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 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, TodayStrategies.Instantiator 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.properties", using the given class loader.static <T> List<T>TodayStrategies.find(Class<T> strategyType, ClassLoader classLoader, TodayStrategies.Instantiator instantiator) Load and instantiate the strategy implementations of the given type from "META-INF/today-strategies.properties", 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.properties", 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.properties", 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.properties", 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, TodayStrategies.ArgumentResolver argumentResolver) Load and instantiate the strategy implementations of the given type from "META-INF/today-strategies.properties", 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.properties", 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.properties", 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.properties", using the configured class loader with custom failure handling provided by the given failure handler.<T> List<T>TodayStrategies.load(Class<T> strategyType, TodayStrategies.Instantiator instantiator, TodayStrategies.FailureHandler failureHandler) Load and instantiate the strategy implementations of the given type from "META-INF/today-strategies.properties", using the configured class loader, the given argument resolver, and 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中的构造器参数限定符构造器说明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.reflect中Nullable的使用
注释类型为Nullable的cn.taketoday.reflect中的字段注释类型为Nullable的cn.taketoday.reflect中的方法修饰符和类型方法说明<T extends Annotation>
TProperty.getAnnotation(Class<T> annotationClass) Property.getField()get or find a FieldProperty.getMethodParameter()If method based bean-propertydefault MethodGetterMethod.getReadMethod()Property.getReadMethod()Property.getWriteMethod()default MethodSetterMethod.getWriteMethod()Property.getWriteMethodParameter()注释类型为Nullable的cn.taketoday.reflect中的方法参数修饰符和类型方法说明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中的构造器参数限定符构造器说明 -
cn.taketoday.util中Nullable的使用
注释类型为Nullable的cn.taketoday.util中的字段注释类型为Nullable的cn.taketoday.util中的方法修饰符和类型方法说明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.<T> TConcurrentReferenceHashMap.Segment.doTask(int hash, Object key, ConcurrentReferenceHashMap<K, V>.cn.taketoday.util.ConcurrentReferenceHashMap.Task<T> task) Apply an update operation to this segment.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.static Fieldstatic Fieldstatic <E> ECollectionUtils.findFirstMatch(Collection<?> source, Collection<E> candidates) Return the first element in 'candidates' that is contained in 'source'.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.<T extends Annotation>
TAnnotationsAnnotatedElementAdapter.getAnnotation(Class<T> annotationClass) 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 Class<?>[]ClassUtils.getGenerics(Class<?> type, Class<?> superClass) Find generics in target classstatic Type[]ClassUtils.getGenericTypes(Field property) static Type[]ClassUtils.getGenericTypes(Parameter parameter) ConcurrentReferenceHashMap.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).ConcurrentReferenceHashMap.Reference.getNext()Return the next reference in the chain, ornullif none.ConcurrentReferenceHashMap.getOrDefault(Object key, V defaultValue) MimeType.getParameter(String name) Return a generic parameter value, given a parameter name.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).ConcurrentReferenceHashMap.Entry.getValue()static MethodReflectionUtils.getWriteMethod(Class<?> declaredClass, Class<?> type, String name) find setter methodstatic MethodReflectionUtils.getWriteMethod(Field field) find setter methodReflectiveMethodInvoker.invoke()Invoke the specified method.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> 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.ConcurrentReferenceHashMap.ReferenceManager.pollForPurge()Return any reference that has been garbage collected and can be purged from the underlying structure ornullif no references need purging.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.PlaceholderResolver.resolvePlaceholder(String placeholderName) Resolve the supplied placeholder name to the replacement value.static byte[]Serialize the given object to a byte array.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 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.static 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.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 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 ('/').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.static 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[]FileCopyUtils.copyToByteArray(InputStream in, int bufferSize) 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 Class<?>ClassUtils.createCompositeInterface(Class<?>[] interfaces, ClassLoader classLoader) Create a composite interface Class for the given interfaces, implementing the given interfaces in one single Class.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 suppliedFile— 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.<T> TConcurrentReferenceHashMap.Segment.doTask(int hash, Object key, ConcurrentReferenceHashMap<K, V>.cn.taketoday.util.ConcurrentReferenceHashMap.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.booleanfinal booleanbooleanbooleanbooleanMimeType.equalsTypeAndSubtype(MimeType other) Similar toMimeType.equals(Object)but based on the type and subtype only, i.e. ignoring parameters.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.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 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.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 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 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 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 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 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 booleanReflectionUtils.isObjectMethod(Method method) Determine whether the given method is originally declared byObject.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.<U> Ustatic 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 <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 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.nullSafeHashCode(boolean[] array) Return a hash code based on the contents of the specified array.static intObjectUtils.nullSafeHashCode(byte[] array) Return a hash code based on the contents of the specified array.static intObjectUtils.nullSafeHashCode(char[] array) Return a hash code based on the contents of the specified array.static intObjectUtils.nullSafeHashCode(double[] array) Return a hash code based on the contents of the specified array.static intObjectUtils.nullSafeHashCode(float[] array) Return a hash code based on the contents of the specified array.static intObjectUtils.nullSafeHashCode(int[] array) Return a hash code based on the contents of the specified array.static intObjectUtils.nullSafeHashCode(long[] array) Return a hash code based on the contents of the specified array.static intObjectUtils.nullSafeHashCode(short[] array) Return a hash code based on the contents of the specified array.static intObjectUtils.nullSafeHashCode(Object obj) Return as hash code for the given object; typically the value ofObject#hashCode()}.static intObjectUtils.nullSafeHashCode(Object[] array) Return a hash code based on the contents of the specified array.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 <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 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 byte[]Serialize the given object to a byte array.final voidvoidArrayHolder.set(Collection<E> list) 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.voidCustomizableThreadCreator.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 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.static 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 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.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.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中的构造器参数限定符构造器说明AnnotationsAnnotatedElementAdapter(Annotation[] annotations) 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.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.PropertyPlaceholderHandler(String placeholderPrefix, String placeholderSuffix, String valueSeparator, boolean ignoreUnresolvablePlaceholders) Creates a newPropertyPlaceholderHandlerthat uses the supplied prefix and suffix. -
cn.taketoday.util.comparator中Nullable的使用
注释类型为Nullable的cn.taketoday.util.comparator中的方法参数 -
cn.taketoday.util.concurrent中Nullable的使用
注释类型为Nullable的cn.taketoday.util.concurrent中的方法修饰符和类型方法说明protected abstract TAdapts the given adaptee's result into T.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.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.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中的方法修饰符和类型方法说明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.static XMLEventReaderStaxUtils.getXMLEventReader(Source source) Return theXMLEventReaderfor the given StAX Source.static XMLEventWriterStaxUtils.getXMLEventWriter(Result result) Return theXMLEventWriterfor the given StAX Result.static XMLStreamReaderStaxUtils.getXMLStreamReader(Source source) Return theXMLStreamReaderfor the given StAX Source.static XMLStreamWriterStaxUtils.getXMLStreamWriter(Result result) Return theXMLStreamWriterfor the given StAX Result.注释类型为Nullable的cn.taketoday.util.xml中的方法参数修饰符和类型方法说明voidSimpleNamespaceContext.removeBinding(String prefix) Remove the given prefix from this context.