edu.mit.ai.psg.jeva
Interface IClass

All Known Implementing Classes:
InterpretedClass, WrappedClass

public abstract interface IClass
extends IMember

IClass mirrors java.lang.Class, enabling Jeva to treat compiled classes and interpreted classes interchangeably.

Author:
CarlManning, caroma@ai.mit.edu
Copyright (c) 1997, 1998 Massachusetts Institute of Technology
See Also:
Class

Method Summary
 IClass[] getClasses()
           
 ClassLoader getClassLoader()
           
 IClass getComponentType()
           
 IConstructor getConstructor(IClass[] parameterTypes)
           
 IConstructor[] getConstructors()
           
 IClass[] getDeclaredClasses()
           
 IConstructor getDeclaredConstructor(IClass[] parameterTypes)
           
 IConstructor[] getDeclaredConstructors()
           
 IField getDeclaredField(String name)
           
 IField[] getDeclaredFields()
           
 IMethod getDeclaredMethod(String name, IClass[] parameterTypes)
           
 IMethod[] getDeclaredMethods()
           
 IField getField(String name)
           
 IField[] getFields()
           
 IClass[] getInterfaces()
           
 IMethod getMethod(String name, IClass[] parameterTypes)
           
 IMethod[] getMethods()
           
 String getName()
           
 URL getResource(String name)
           
 InputStream getResourceAsStream(String name)
           
 Object[] getSigners()
           
 IClass getSuperclass()
           
 boolean isArray()
           
 boolean isAssignableFrom(IClass cls)
           
 boolean isInstance(Object obj)
           
 boolean isInterface()
           
 boolean isPrimitive()
           
 Object newInstance()
           
 
Methods inherited from interface edu.mit.ai.psg.jeva.IMember
getDeclaringClass, getModifiers
 

Method Detail

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)

Copyright (c) 1996-1999
Massachusetts Institute of Technology

Feedback: jeva-bugs@ai.mit.edu