Package org.codehaus.groovy.reflection
Class CachedClass
- java.lang.Object
- 
- org.codehaus.groovy.reflection.CachedClass
 
- 
- Direct Known Subclasses:
- ArrayCachedClass,- BooleanCachedClass,- CachedClosureClass,- CachedSAMClass,- CharacterCachedClass,- NumberCachedClass,- ObjectCachedClass,- StringCachedClass
 
 public class CachedClass extends Object 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classCachedClass.CachedMethodComparatorByNamestatic classCachedClass.CachedMethodComparatorWithString
 - 
Field SummaryFields Modifier and Type Field Description ClassInfoclassInfostatic CachedClass[]EMPTY_ARRAYbooleanisArraybooleanisInterfacebooleanisNumberbooleanisPrimitiveintmodifiersCachedMethod[]mopMethods
 - 
Constructor SummaryConstructors Constructor Description CachedClass(Class<?> klazz, ClassInfo classInfo)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNewMopMethods(List<MetaMethod> arr)ObjectcoerceArgument(Object argument)CachedClassgetCachedClass()compatibility methodCachedClassgetCachedSuperClass()CallSiteClassLoadergetCallSiteLoader()CachedConstructor[]getConstructors()Set<CachedClass>getDeclaredInterfaces()CachedField[]getFields()Collection<ClassInfo>getHierarchy()Set<CachedClass>getInterfaces()CachedMethod[]getMethods()intgetModifiers()StringgetName()MetaMethod[]getNewMetaMethods()intgetSuperClassDistance()ClassgetTheClass()StringgetTypeDescription()inthashCode()booleanisAssignableFrom(Class argument)booleanisDirectlyAssignable(Object argument)booleanisInterface()booleanisPrimitive()booleanisVoid()CachedMethodsearchMethods(String name, CachedClass[] parameterTypes)voidsetNewMopMethods(List<MetaMethod> arr)StringtoString()
 
- 
- 
- 
Field Detail- 
EMPTY_ARRAYpublic static final CachedClass[] EMPTY_ARRAY 
 - 
classInfopublic ClassInfo classInfo 
 - 
isArraypublic final boolean isArray 
 - 
isPrimitivepublic final boolean isPrimitive 
 - 
modifierspublic final int modifiers 
 - 
isInterfacepublic final boolean isInterface 
 - 
isNumberpublic final boolean isNumber 
 - 
mopMethodspublic CachedMethod[] mopMethods 
 
- 
 - 
Method Detail- 
getCachedSuperClasspublic CachedClass getCachedSuperClass() 
 - 
getInterfacespublic Set<CachedClass> getInterfaces() 
 - 
getDeclaredInterfacespublic Set<CachedClass> getDeclaredInterfaces() 
 - 
getMethodspublic CachedMethod[] getMethods() 
 - 
getFieldspublic CachedField[] getFields() 
 - 
getConstructorspublic CachedConstructor[] getConstructors() 
 - 
searchMethodspublic CachedMethod searchMethods(String name, CachedClass[] parameterTypes) 
 - 
getModifierspublic int getModifiers() 
 - 
getSuperClassDistancepublic int getSuperClassDistance() 
 - 
isPrimitivepublic boolean isPrimitive() 
 - 
isVoidpublic boolean isVoid() 
 - 
isInterfacepublic boolean isInterface() 
 - 
getNamepublic String getName() 
 - 
getTypeDescriptionpublic String getTypeDescription() 
 - 
getTheClasspublic final Class getTheClass() 
 - 
getNewMetaMethodspublic MetaMethod[] getNewMetaMethods() 
 - 
setNewMopMethodspublic void setNewMopMethods(List<MetaMethod> arr) 
 - 
addNewMopMethodspublic void addNewMopMethods(List<MetaMethod> arr) 
 - 
isAssignableFrompublic boolean isAssignableFrom(Class argument) 
 - 
isDirectlyAssignablepublic boolean isDirectlyAssignable(Object argument) 
 - 
getCallSiteLoaderpublic CallSiteClassLoader getCallSiteLoader() 
 - 
getHierarchypublic Collection<ClassInfo> getHierarchy() 
 - 
getCachedClasspublic CachedClass getCachedClass() compatibility method- Returns:
- this
 
 
- 
 
-