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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final CachedClass[]
final boolean
final boolean
final boolean
final boolean
final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addNewMopMethods
(List<MetaMethod> arr) coerceArgument
(Object argument) compatibility methodint
getName()
int
final Class<?>
int
hashCode()
boolean
isAssignableFrom
(Class<?> argument) boolean
isDirectlyAssignable
(Object argument) boolean
boolean
boolean
isVoid()
searchMethods
(String name, CachedClass[] parameterTypes) void
setNewMopMethods
(List<MetaMethod> arr) toString()
-
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
-
getSuperClassDistance
public int getSuperClassDistance() -
hashCode
public int hashCode() -
isPrimitive
public boolean isPrimitive() -
isVoid
public boolean isVoid() -
isInterface
public boolean isInterface() -
getName
-
getTypeDescription
-
getTheClass
-
getNewMetaMethods
-
setNewMopMethods
-
addNewMopMethods
-
isAssignableFrom
-
isDirectlyAssignable
-
getCallSiteLoader
-
getHierarchy
-
getCachedClass
compatibility method- Returns:
- this
-
toString
-