Uses of Class
org.apache.juneau.reflect.ClassInfo
Packages that use ClassInfo
Package
Description
Method exec stats utilities
-
Uses of ClassInfo in org.apache.juneau
Methods in org.apache.juneau that return ClassInfo -
Uses of ClassInfo in org.apache.juneau.cp
Methods in org.apache.juneau.cp with parameters of type ClassInfoModifier and TypeMethodDescriptionAllows you to specify a subclass of the specified bean type to create. -
Uses of ClassInfo in org.apache.juneau.reflect
Fields in org.apache.juneau.reflect declared as ClassInfoModifier and TypeFieldDescriptionstatic final ClassInfo
ClassInfo.OBJECT
Reusable ClassInfo for Object class.Methods in org.apache.juneau.reflect that return ClassInfoModifier and TypeMethodDescriptionPerforms an action on this object if the specified predicate test passes.ClassInfo.forEachAllField
(Predicate<FieldInfo> filter, Consumer<FieldInfo> action) Performs an action on all matching fields on this class and all parent classes.ClassInfo.forEachAllMethodParentFirst
(Predicate<MethodInfo> filter, Consumer<MethodInfo> action) Performs an action on all matching declared methods on this class and all parent classes.<A extends Annotation>
ClassInfoClassInfo.forEachAnnotation
(Class<A> type, Predicate<A> filter, Consumer<A> action) Performs an action on all matching annotations on this class and superclasses/interfaces.<A extends Annotation>
ClassInfoClassInfo.forEachAnnotation
(AnnotationProvider annotationProvider, Class<A> type, Predicate<A> filter, Consumer<A> action) Performs an action on all matching annotations on this class and superclasses/interfaces.ClassInfo.forEachAnnotationInfo
(Predicate<AnnotationInfo<?>> filter, Consumer<AnnotationInfo<?>> action) Performs an action on all matching annotations on this class/parents/package.ClassInfo.forEachDeclaredConstructor
(Predicate<ConstructorInfo> filter, Consumer<ConstructorInfo> action) Performs an action on all matching declared constructors on this class.ClassInfo.forEachDeclaredField
(Predicate<FieldInfo> filter, Consumer<FieldInfo> action) Performs an action on all matching declared fields on this class.ClassInfo.forEachDeclaredMethod
(Predicate<MethodInfo> filter, Consumer<MethodInfo> action) Performs an action on all matching declared methods on this class.ClassInfo.forEachMethod
(Predicate<MethodInfo> filter, Consumer<MethodInfo> action) Performs an action on all matching methods on this class.ClassInfo.forEachPublicConstructor
(Predicate<ConstructorInfo> filter, Consumer<ConstructorInfo> action) Performs an action on all matching public constructors on this class.ClassInfo.forEachPublicField
(Predicate<FieldInfo> filter, Consumer<FieldInfo> action) Performs an action on all matching public fields on this class.ClassInfo.forEachPublicMethod
(Predicate<MethodInfo> filter, Consumer<MethodInfo> action) Performs an action on all matching public methods on this class.ClassInfo.getAnyParent
(Predicate<ClassInfo> filter) Returns the first matching parent class or interface.AnnotationInfo.getClassInfo()
Returns the class that this annotation was found on.AnnotationInfo.getClassOn()
Returns the class where the annotation was found.ClassInfo.getComponentType()
Returns the base component type of this class if it's an array.final ClassInfo
ExecutableInfo.getDeclaringClass()
Returns metadata about the class that declared this method or constructor.FieldInfo.getDeclaringClass()
Returns metadata about the declaring class.ParamInfo.getParameterType()
Returns the class type of this parameter.final ClassInfo
ExecutableInfo.getParamType
(int index) Returns the parameter type of the parameter at the specified index.MethodInfo.getReturnType()
Returns the generic return type of this method as aClassInfo
object.ClassInfo.getSuperclass()
Returns the parent class.FieldInfo.getType()
Returns the type of this field.ClassInfo.getWrapperInfoIfPrimitive()
Same asgetWrapperIfPrimitive()
but wraps it in aClassInfo
.static ClassInfo
Returns a class info wrapper around the specified class type.static ClassInfo
Returns a class info wrapper around the specified class type.static ClassInfo
Same as using the constructor, but operates on an object instance.static ClassInfo
Returns a class info wrapper around the specified class type.static ClassInfo
Same asof(Object)
but attempts to deproxify the object if it's wrapped in a CGLIB proxy.Methods in org.apache.juneau.reflect that return types with arguments of type ClassInfoModifier and TypeMethodDescriptionClassInfo.getAllParents()
Returns a list including this class and all parent classes and interfaces.ClassInfo.getDeclaredInterfaces()
Returns a list of interfaces declared on this class.ExecutableInfo.getExceptionTypes()
Returns the exception types on this executable.ClassInfo.getInterfaces()
Returns a list of interfaces defined on this class and superclasses.ExecutableInfo.getParamTypes()
Returns the parameter types on this executable.ClassInfo.getParents()
Returns a list including this class and all parent classes.Methods in org.apache.juneau.reflect with parameters of type ClassInfoModifier and TypeMethodDescriptionfinal int
ExecutableInfo.fuzzyArgsMatch
(ClassInfo... argTypes) Returns how well this method matches the specified arg types.final boolean
ExecutableInfo.hasFuzzyParamTypes
(ClassInfo... args) Returnstrue if this method has at most only this arguments in any order.final boolean
ExecutableInfo.hasMatchingParamTypes
(ClassInfo... args) Returnstrue if this method has the specified argument parent classes.final boolean
ExecutableInfo.hasParamTypes
(ClassInfo... args) Returnstrue if this method has the specified arguments.boolean
MethodInfo.hasReturnType
(ClassInfo ci) Returnstrue if this method has this return type.boolean
MethodInfo.hasReturnTypeParent
(ClassInfo ci) Returnstrue if this method has this parent return type.boolean
Checks for equality with the specified class.boolean
Returnstrue if this class is a child or the same asparent .boolean
ClassInfo.isParentOfFuzzyPrimitives
(ClassInfo child) Same asisParentOfFuzzyPrimitives(Class)
but takes in aClassInfo
.static <A extends Annotation>
AnnotationInfo<A>Convenience constructor when annotation is found on a class.static ConstructorInfo
ConstructorInfo.of
(ClassInfo declaringClass, Constructor<?> c) Convenience method for instantiating aConstructorInfo
;static FieldInfo
Convenience method for instantiating aFieldInfo
;static MethodInfo
Convenience method for instantiating aMethodInfo
;Method parameters in org.apache.juneau.reflect with type arguments of type ClassInfoModifier and TypeMethodDescriptionPerforms an action on this object if the specified predicate test passes.Performs an action on this object if the specified predicate test passes.ClassInfo.getAnyParent
(Predicate<ClassInfo> filter) Returns the first matching parent class or interface.boolean
Returnstrue if this object passes the specified predicate test.Constructors in org.apache.juneau.reflect with parameters of type ClassInfoModifierConstructorDescriptionprotected
ConstructorInfo
(ClassInfo declaringClass, Constructor<?> c) Constructor.protected
ExecutableInfo
(ClassInfo declaringClass, Executable e) Constructor.protected
Constructor.protected
MethodInfo
(ClassInfo declaringClass, Method m) Constructor. -
Uses of ClassInfo in org.apache.juneau.rest.stats
Methods in org.apache.juneau.rest.stats that return ClassInfoModifier and TypeMethodDescriptionMethodInvoker.getDeclaringClass()
Convenience method for callinginner().getDeclaringClass() -
Uses of ClassInfo in org.apache.juneau.swap
Methods in org.apache.juneau.swap that return ClassInfoModifier and TypeMethodDescriptionObjectSwap.getNormalClass()
Returns the T class, the normalized form of the class.ObjectSwap.getSwapClass()
Returns the G class, the generalized form of the class.Methods in org.apache.juneau.swap with parameters of type ClassInfoModifier and TypeMethodDescriptionstatic ObjectSwap<?,
?> AutoListSwap.find
(BeanContext bc, ClassInfo ci) Look for constructors and methods on this class and construct a dynamic swap if it's possible to do so.static ObjectSwap<?,
?> AutoMapSwap.find
(BeanContext bc, ClassInfo ci) Look for constructors and methods on this class and construct a dynamic swap if it's possible to do so.static ObjectSwap<?,
?> AutoNumberSwap.find
(BeanContext bc, ClassInfo ci) Look for constructors and methods on this class and construct a dynamic swap if it's possible to do so.static ObjectSwap<?,
?> AutoObjectSwap.find
(BeanContext bc, ClassInfo ci) Inspects the specified class and returns a swap of this type if possible.static ObjectSwap<?,
?> Find the default ObjectSwap for the specified class.