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 Summary
Nested Classes Modifier and Type Class Description static classCachedClass.CachedMethodComparatorByNamestatic classCachedClass.CachedMethodComparatorWithString 
- 
Field Summary
Fields Modifier and Type Field Description ClassInfoclassInfostatic CachedClass[]EMPTY_ARRAYbooleanisArraybooleanisInterfacebooleanisNumberbooleanisPrimitiveintmodifiersCachedMethod[]mopMethods 
- 
Constructor Summary
Constructors Constructor Description CachedClass(Class klazz, ClassInfo classInfo) 
- 
Method Summary
All 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
- 
classInfo
public ClassInfo classInfo
 
- 
mopMethods
public CachedMethod[] mopMethods
 
- 
EMPTY_ARRAY
public static final CachedClass[] EMPTY_ARRAY
 
- 
isArray
public final boolean isArray
 
- 
isPrimitive
public final boolean isPrimitive
 
- 
modifiers
public final int modifiers
 
- 
isInterface
public final boolean isInterface
 
- 
isNumber
public final boolean isNumber
 
 - 
 
- 
Method Detail
- 
getCachedSuperClass
public CachedClass getCachedSuperClass()
 
- 
getInterfaces
public Set<CachedClass> getInterfaces()
 
- 
getDeclaredInterfaces
public Set<CachedClass> getDeclaredInterfaces()
 
- 
getMethods
public CachedMethod[] getMethods()
 
- 
getFields
public CachedField[] getFields()
 
- 
getConstructors
public CachedConstructor[] getConstructors()
 
- 
searchMethods
public CachedMethod searchMethods(String name, CachedClass[] parameterTypes)
 
- 
getModifiers
public int getModifiers()
 
- 
getSuperClassDistance
public int getSuperClassDistance()
 
- 
isPrimitive
public boolean isPrimitive()
 
- 
isVoid
public boolean isVoid()
 
- 
isInterface
public boolean isInterface()
 
- 
getName
public String getName()
 
- 
getTypeDescription
public String getTypeDescription()
 
- 
getTheClass
public final Class getTheClass()
 
- 
getNewMetaMethods
public MetaMethod[] getNewMetaMethods()
 
- 
setNewMopMethods
public void setNewMopMethods(List<MetaMethod> arr)
 
- 
addNewMopMethods
public void addNewMopMethods(List<MetaMethod> arr)
 
- 
isAssignableFrom
public boolean isAssignableFrom(Class argument)
 
- 
isDirectlyAssignable
public boolean isDirectlyAssignable(Object argument)
 
- 
getCallSiteLoader
public CallSiteClassLoader getCallSiteLoader()
 
- 
getHierarchy
public Collection<ClassInfo> getHierarchy()
 
- 
getCachedClass
public CachedClass getCachedClass()
compatibility method- Returns:
 - this
 
 
 - 
 
 -