edu.mit.ai.psg.jeva
Interface IClass
- All Known Implementing Classes:
- InterpretedClass, WrappedClass
- public interface IClass
- extends IMember
IClass mirrors java.lang.Class, enabling Jeva to treat compiled classes
and interpreted classes interchangeably.
- See Also:
Class
newInstance
public Object newInstance()
throws InstantiationException,
IllegalAccessException
isInstance
public boolean isInstance(Object obj)
isAssignableFrom
public boolean isAssignableFrom(IClass cls)
isInterface
public boolean isInterface()
isArray
public boolean isArray()
isPrimitive
public boolean isPrimitive()
getName
public String getName()
- Specified by:
- getName in interface IMember
getClassLoader
public ClassLoader getClassLoader()
getSuperclass
public IClass getSuperclass()
getInterfaces
public IClass[] getInterfaces()
getComponentType
public IClass getComponentType()
getSigners
public Object[] getSigners()
getClasses
public IClass[] getClasses()
getFields
public IField[] getFields()
throws SecurityException
getMethods
public IMethod[] getMethods()
throws SecurityException
getConstructors
public IConstructor[] getConstructors()
throws SecurityException
getField
public IField getField(String name)
throws NoSuchFieldException,
SecurityException
getMethod
public IMethod getMethod(String name,
IClass[] parameterTypes)
throws NoSuchMethodException,
SecurityException
getConstructor
public IConstructor getConstructor(IClass[] parameterTypes)
throws NoSuchMethodException,
SecurityException
getDeclaredClasses
public IClass[] getDeclaredClasses()
throws SecurityException
getDeclaredFields
public IField[] getDeclaredFields()
throws SecurityException
getDeclaredMethods
public IMethod[] getDeclaredMethods()
throws SecurityException
getDeclaredConstructors
public IConstructor[] getDeclaredConstructors()
throws SecurityException
getDeclaredField
public IField getDeclaredField(String name)
throws NoSuchFieldException,
SecurityException
getDeclaredMethod
public IMethod getDeclaredMethod(String name,
IClass[] parameterTypes)
throws NoSuchMethodException,
SecurityException
getDeclaredConstructor
public IConstructor getDeclaredConstructor(IClass[] parameterTypes)
throws NoSuchMethodException,
SecurityException
getResourceAsStream
public InputStream getResourceAsStream(String name)
getResource
public URL getResource(String name)