Class ObjectCachedClass
java.lang.Object
org.codehaus.groovy.reflection.CachedClass
org.codehaus.groovy.reflection.stdclasses.ObjectCachedClass
Provides optimized reflection caching for
Object.
The root cached class that accepts all argument types for assignment,
making it a universal fallback for method invocation.-
Nested Class Summary
Nested classes/interfaces inherited from class org.codehaus.groovy.reflection.CachedClass
CachedClass.CachedMethodComparatorByName, CachedClass.CachedMethodComparatorWithString -
Field Summary
Fields inherited from class org.codehaus.groovy.reflection.CachedClass
classInfo, EMPTY_ARRAY, isArray, isInterface, isNumber, isPrimitive, modifiers, mopMethods -
Constructor Summary
ConstructorsConstructorDescriptionObjectCachedClass(ClassInfo classInfo) Constructs a cached class representation forObject. -
Method Summary
Modifier and TypeMethodDescriptionReturnsnullsinceObjecthas no superclass in the type hierarchy.booleanisAssignableFrom(Class argument) Accepts any class as assignable toObject.Methods inherited from class org.codehaus.groovy.reflection.CachedClass
addNewMopMethods, coerceArgument, getCachedClass, getCallSiteLoader, getConstructors, getDeclaredInterfaces, getFields, getHierarchy, getInterfaces, getMethods, getModifiers, getName, getNewMetaMethods, getSuperClassDistance, getTheClass, getTypeDescription, hashCode, isDirectlyAssignable, isInterface, isPrimitive, isVoid, searchMethods, setNewMopMethods, toString
-
Constructor Details
-
Method Details
-
getCachedSuperClass
ReturnsnullsinceObjecthas no superclass in the type hierarchy.- Overrides:
getCachedSuperClassin classCachedClass- Returns:
nullalways
-
isAssignableFrom
Accepts any class as assignable toObject. This is always true since all Java classes inherit fromObject.- Overrides:
isAssignableFromin classCachedClass- Parameters:
argument- the class to check- Returns:
truealways
-