org.codehaus.groovy.reflection
Class CachedClass

author:
Alex.Tkachman

Field Summary
 def EMPTY
           
 def EMPTY_ARRAY
           
 Class cachedClass
           
 LazyReference cachedSuperClass
           
 LazySoftReference callSiteClassLoader
           
 ClassInfo classInfo
           
 LazySoftReference constructors
           
 LazyReference declaredInterfaces
           
 int distance
           
 LazySoftReference fields
           
 int hashCode
           
 LazySoftReference interfaces
           
 boolean isArray
           
 boolean isInterface
           
 boolean isNumber
           
 boolean isPrimitive
           
 LazySoftReference methods
           
 int modifiers
           
 def mopMethods
           
 
Constructor Summary
CachedClass(Class klazz, ClassInfo classInfo)
           
 
Method Summary
void addNewMopMethods(List arr)
          
void addSubclassExpandos(ArrayList arr, MetaClass mc)
          
void box(BytecodeHelper helper)
          
Object coerceArgument(Object argument)
          
void doCast(BytecodeHelper helper)
          
CachedClass getCachedSuperClass()
          
CallSiteClassLoader getCallSiteLoader()
          
def getConstructors()
          
Set getDeclaredInterfaces()
          
def getFields()
          
Set getInterfaces()
          
def getMethods()
          
int getModifiers()
          
String getName()
          
def getNewMetaMethods()
          
int getSuperClassDistance()
          
Class getTheClass()
          
String getTypeDescription()
          
int hashCode()
          
boolean isAssignableFrom(Class argument)
          
boolean isDirectlyAssignable(Object argument)
          
boolean isInterface()
          
boolean isPrimitive()
          
boolean isVoid()
          
CachedMethod searchMethods(String name, def parameterTypes)
          
void setNewMopMethods(List arr)
          
void unbox(BytecodeHelper helper)
          
void updateAddNewMopMethods(List arr)
          
void updateSetNewMopMethods(List arr)
          
 

Constructor Detail

CachedClass

public CachedClass(Class klazz, ClassInfo classInfo)


Method Detail

addNewMopMethods

public void addNewMopMethods(List arr)


addSubclassExpandos

void addSubclassExpandos(ArrayList arr, MetaClass mc)


box

public void box(BytecodeHelper helper)


coerceArgument

public Object coerceArgument(Object argument)


doCast

public void doCast(BytecodeHelper helper)


getCachedSuperClass

public CachedClass getCachedSuperClass()


getCallSiteLoader

public CallSiteClassLoader getCallSiteLoader()


getConstructors

public def getConstructors()


getDeclaredInterfaces

public Set getDeclaredInterfaces()


getFields

public def getFields()


getInterfaces

public Set getInterfaces()


getMethods

public def getMethods()


getModifiers

public int getModifiers()


getName

public String getName()


getNewMetaMethods

public def getNewMetaMethods()


getSuperClassDistance

public int getSuperClassDistance()


getTheClass

public Class getTheClass()


getTypeDescription

public String getTypeDescription()


hashCode

public int hashCode()


isAssignableFrom

public boolean isAssignableFrom(Class argument)


isDirectlyAssignable

public boolean isDirectlyAssignable(Object argument)


isInterface

public boolean isInterface()


isPrimitive

public boolean isPrimitive()


isVoid

public boolean isVoid()


searchMethods

public CachedMethod searchMethods(String name, def parameterTypes)


setNewMopMethods

public void setNewMopMethods(List arr)


unbox

public void unbox(BytecodeHelper helper)


updateAddNewMopMethods

void updateAddNewMopMethods(List arr)


updateSetNewMopMethods

void updateSetNewMopMethods(List arr)