org.codehaus.groovy.reflection
Class CachedClass
java.lang.Object
org.codehaus.groovy.reflection.CachedClass
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()
getMethods
public CachedMethod[] getMethods()
getFields
public CachedField[] getFields()
getConstructors
public CachedConstructor[] getConstructors()
searchMethods
public CachedMethod searchMethods(String name,
CachedClass[] parameterTypes)
getModifiers
public int getModifiers()
coerceGString
protected Object coerceGString(Object argument)
- Coerces a GString instance into String if needed
- Returns:
- the coerced argument
coerceNumber
protected Object coerceNumber(Object argument)
coerceArray
protected Object coerceArray(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 Class getCachedClass()
getNewMetaMethods
public MetaMethod[] getNewMetaMethods()
setNewMopMethods
public void setNewMopMethods(ArrayList arr)
toString
public String toString()
- Overrides:
toString
in class Object