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 java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CachedClass.CachedMethodComparatorByName
static class
CachedClass.CachedMethodComparatorWithString
-
Field Summary
Fields Modifier and Type Field Description ClassInfo
classInfo
static CachedClass[]
EMPTY_ARRAY
boolean
isArray
boolean
isInterface
boolean
isNumber
boolean
isPrimitive
int
modifiers
CachedMethod[]
mopMethods
-
Constructor Summary
Constructors Constructor Description CachedClass(java.lang.Class<?> klazz, ClassInfo classInfo)
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
EMPTY_ARRAY
-
classInfo
-
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 -
mopMethods
-
-
Constructor Details
-
CachedClass
-
-
Method Details
-
getCachedSuperClass
-
getInterfaces
-
getDeclaredInterfaces
-
getMethods
-
getFields
-
getConstructors
-
searchMethods
-
getModifiers
public int getModifiers() -
coerceArgument
public java.lang.Object coerceArgument(java.lang.Object argument) -
getSuperClassDistance
public int getSuperClassDistance() -
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
isPrimitive
public boolean isPrimitive() -
isVoid
public boolean isVoid() -
isInterface
public boolean isInterface() -
getName
public java.lang.String getName() -
getTypeDescription
public java.lang.String getTypeDescription() -
getTheClass
public final java.lang.Class getTheClass() -
getNewMetaMethods
-
setNewMopMethods
-
addNewMopMethods
-
isAssignableFrom
public boolean isAssignableFrom(java.lang.Class argument) -
isDirectlyAssignable
public boolean isDirectlyAssignable(java.lang.Object argument) -
getCallSiteLoader
-
getHierarchy
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
getCachedClass
compatibility method- Returns:
- this
-