[Java] Class CachedClass
- org.codehaus.groovy.reflection.CachedClass
public class CachedClass extends Object
Nested Class Summary
Modifiers | Name | Description |
---|---|---|
static class | CachedClass.CachedMethodComparatorByName | |
static class | CachedClass.CachedMethodComparatorWithString |
Field Summary
Modifiers | Name | Description |
---|---|---|
static CachedClass[] | EMPTY_ARRAY | |
ClassInfo | classInfo | |
boolean | isArray | |
boolean | isInterface | |
boolean | isNumber | |
boolean | isPrimitive | |
int | modifiers | |
CachedMethod[] | mopMethods |
Constructor Summary
Constructor and description |
---|
CachedClass
(Class<?> klazz, ClassInfo classInfo) |
Methods Summary
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Field Detail
public static final CachedClass[] EMPTY_ARRAY
public ClassInfo classInfo
public final boolean isArray
public final boolean isInterface
public final boolean isNumber
public final boolean isPrimitive
public final int modifiers
public CachedMethod[] mopMethods
Constructor Detail
public CachedClass(Class<?> klazz, ClassInfo classInfo)
Method Detail
public void addNewMopMethods(List<MetaMethod> arr)
public Object coerceArgument(Object argument)
public CachedClass getCachedClass()
compatibility method
- Returns:
- this
public CachedClass getCachedSuperClass()
public CallSiteClassLoader getCallSiteLoader()
public CachedConstructor[] getConstructors()
public Set<CachedClass> getDeclaredInterfaces()
public CachedField[] getFields()
public Collection<ClassInfo> getHierarchy()
public Set<CachedClass> getInterfaces()
public CachedMethod[] getMethods()
public int getModifiers()
public String getName()
public MetaMethod[] getNewMetaMethods()
public int getSuperClassDistance()
public final Class getTheClass()
public String getTypeDescription()
@Override public int hashCode()
@Override public CachedField[] initValue()
@Override public CachedConstructor[] initValue()
@Override public CachedMethod[] initValue()
@Override public CachedClass initValue()
@Override public CallSiteClassLoader initValue()
@Override public Collection<ClassInfo> initValue()
@Override public Set<CachedClass> initValue()
@Override public Set<CachedClass> initValue()
public boolean isAssignableFrom(Class argument)
public boolean isDirectlyAssignable(Object argument)
public boolean isInterface()
public boolean isPrimitive()
public boolean isVoid()
public CachedMethod searchMethods(String name, CachedClass[] parameterTypes)
public void setNewMopMethods(List<MetaMethod> arr)
@Override public String toString()
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/reflection/CachedClass.html