org.codehaus.groovy.reflection
Class CachedClass

java.lang.Object
  extended by org.codehaus.groovy.reflection.CachedClass

public class CachedClass
extends Object

Author:
Alex.Tkachman

Nested Class Summary
static class CachedClass.CachedMethodComparatorByName
           
static class CachedClass.CachedMethodComparatorWithString
           
 
Field Summary
static CachedClass[] EMPTY_ARRAY
           
 boolean isArray
           
 boolean isInterface
           
 boolean isNumber
           
 boolean isPrimitive
           
 int modifiers
           
 CachedMethod[] mopMethods
           
 
Method Summary
 void box(BytecodeHelper helper)
           
protected  Object coerceArray(Object argument)
           
protected  Object coerceGString(Object argument)
          Coerces a GString instance into String if needed
protected  Object coerceNumber(Object argument)
           
 void doCast(BytecodeHelper helper)
           
 Class getCachedClass()
           
 CachedClass getCachedSuperClass()
           
 CachedConstructor[] getConstructors()
           
 CachedField[] getFields()
           
 Set getInterfaces()
           
 CachedMethod[] getMethods()
           
 int getModifiers()
           
 String getName()
           
 MetaMethod[] getNewMetaMethods()
           
 Set getOwnInterfaces()
           
 Reflector getReflector()
           
 int getSuperClassDistance()
           
 String getTypeDescription()
           
 int hashCode()
           
 boolean isInterface()
           
 boolean isPrimitive()
           
 boolean isVoid()
           
 CachedMethod searchMethods(String name, CachedClass[] parameterTypes)
           
 void setNewMopMethods(ArrayList arr)
           
 String toString()
           
 void unbox(BytecodeHelper helper)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Method Detail

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

Copyright © 2003-2007 The Codehaus. All rights reserved.