org.codehaus.groovy.reflection
Class CachedClass
java.lang.Object
org.codehaus.groovy.reflection.CachedClass
- Direct Known Subclasses:
- CachedClass.ArrayCachedClass, CachedClass.BooleanCachedClass, CachedClass.CharacterCachedClass, CachedClass.NumberCachedClass, CachedClass.StringCachedClass
public class CachedClass
- extends Object
- Author:
- Alex.Tkachman
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
getInterfaces
public Set getInterfaces()
getOwnInterfaces
public Set getOwnInterfaces()
getCachedSuperClass
public CachedClass getCachedSuperClass()
- This can't be final because ReflectionClass has an inner class that extends
CachedClass for java.lang.Object (ReflectionClass.OBJECT_CLASS) that returns
null for this method.
getMethods
public CachedMethod[] getMethods()
getFields
public CachedField[] getFields()
getConstructors
public CachedConstructor[] getConstructors()
searchMethods
public CachedMethod searchMethods(String name,
CachedClass[] parameterTypes)
getModifiers
public final int getModifiers()
coerceArgument
public Object coerceArgument(Object argument)
getSuperClassDistance
public int getSuperClassDistance()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
isPrimitive
public boolean isPrimitive()
isVoid
public boolean isVoid()
box
public void box(BytecodeHelper helper)
unbox
public void unbox(BytecodeHelper helper)
isInterface
public boolean isInterface()
doCast
public void doCast(BytecodeHelper helper)
getName
public String getName()
getTypeDescription
public String getTypeDescription()
getReflector
public Reflector getReflector()
getCachedClass
public final Class getCachedClass()
getNewMetaMethods
public MetaMethod[] getNewMetaMethods()
setNewMopMethods
public void setNewMopMethods(ArrayList arr)
setStaticMetaClassField
public void setStaticMetaClassField(MetaClass mc)
getMetaClassForClass
public MetaClass getMetaClassForClass()
setMetaClassForClass
public void setMetaClassForClass(MetaClass metaClassForClass,
boolean isConst)
isAssignableFrom
public boolean isAssignableFrom(Class argument)
toString
public String toString()
- Overrides:
toString
in class Object