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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CachedClass[]final booleanfinal booleanfinal booleanfinal booleanfinal int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNewMopMethods(List<MetaMethod> arr) coerceArgument(Object argument) compatibility methodintgetName()intfinal Class<?>inthashCode()booleanisAssignableFrom(Class<?> argument) booleanisDirectlyAssignable(Object argument) booleanbooleanbooleanisVoid()searchMethods(String name, CachedClass[] parameterTypes) voidsetNewMopMethods(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
-