openjava.mop
Class OJClassImp

java.lang.Object
  |
  +--openjava.mop.OJClassImp
Direct Known Subclasses:
OJClassArray, OJClassByteCode, OJClassNull, OJClassSourceCode

abstract class OJClassImp
extends Object

The abstract class OJClassImp provides an interface to an implementation of OJClass.


Constructor Summary
(package private) OJClassImp()
           
 
Method Summary
(package private) abstract  OJClass addClass(OJClass clazz)
           
(package private) abstract  OJConstructor addConstructor(OJConstructor constr)
           
(package private) abstract  OJField addField(OJField field)
           
(package private) abstract  OJMethod addMethod(OJMethod method)
           
(package private) static OJConstructor[] arrayForConstructors(Constructor[] constrs)
           
(package private) static OJField[] arrayForFields(Field[] fields)
           
(package private) static OJMethod[] arrayForMethods(Method[] methods)
           
(package private)  OJClass[] arrayForNames(String[] names)
           
(package private) static OJClass forClass(Class javaclass)
           
(package private)  OJClass forNameAnyway(String name)
           
(package private) abstract  Class getByteCode()
           
(package private) abstract  ClassLoader getClassLoader()
           
(package private) abstract  Class getCompatibleJavaClass()
           
(package private) abstract  OJClass getComponentType()
           
(package private) abstract  OJClass[] getDeclaredClasses()
           
(package private) abstract  OJConstructor[] getDeclaredConstructors()
           
(package private) abstract  OJField[] getDeclaredFields()
           
(package private) abstract  OJMethod[] getDeclaredMethods()
           
(package private) abstract  OJClass getDeclaringClass()
           
(package private) abstract  ClassEnvironment getEnvironment()
           
(package private) abstract  OJClass[] getInterfaces()
           
(package private) abstract  String getMetaInfo(String key)
           
(package private) abstract  Enumeration getMetaInfoElements()
           
(package private) abstract  Enumeration getMetaInfoKeys()
           
(package private) abstract  OJModifier getModifiers()
           
(package private) abstract  String getName()
           
(package private) abstract  URL getResource(String name)
           
(package private) abstract  InputStream getResourceAsStream(String name)
           
(package private) abstract  Object[] getSigners()
           
(package private) abstract  ClassDeclaration getSourceCode()
           
(package private) abstract  ParseTree getSuffix(String keyword)
           
(package private) abstract  OJClass getSuperclass()
           
(package private) abstract  boolean isAlterable()
           
(package private) abstract  boolean isArray()
           
(package private) abstract  boolean isExecutable()
           
(package private) abstract  boolean isInterface()
           
(package private) abstract  boolean isPrimitive()
           
(package private) static String nameForJavaClassName(String javaname)
           
(package private) static String nameToJavaClassName(String ojname)
           
(package private) abstract  Object newInstance()
           
(package private) abstract  String putMetaInfo(String key, String value)
           
(package private) abstract  OJClass removeClass(OJClass clazz)
           
(package private) abstract  OJConstructor removeConstructor(OJConstructor constr)
           
(package private) abstract  OJField removeField(OJField field)
           
(package private) abstract  OJMethod removeMethod(OJMethod method)
           
(package private) abstract  void setDeclaringClass(OJClass parent)
           
abstract  String toString()
           
(package private) abstract  void writeMetaInfo(Writer out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OJClassImp

OJClassImp()
Method Detail

toString

public abstract String toString()
Overrides:
toString in class Object

getEnvironment

abstract ClassEnvironment getEnvironment()

newInstance

abstract Object newInstance()
                     throws InstantiationException,
                            IllegalAccessException,
                            CannotExecuteException
InstantiationException
IllegalAccessException
CannotExecuteException

isInterface

abstract boolean isInterface()

isArray

abstract boolean isArray()

isPrimitive

abstract boolean isPrimitive()

getName

abstract String getName()

getClassLoader

abstract ClassLoader getClassLoader()
                             throws CannotInspectException
CannotInspectException

getSuperclass

abstract OJClass getSuperclass()

getInterfaces

abstract OJClass[] getInterfaces()

getComponentType

abstract OJClass getComponentType()

getModifiers

abstract OJModifier getModifiers()

getSuffix

abstract ParseTree getSuffix(String keyword)

getSigners

abstract Object[] getSigners()
                      throws CannotExecuteException
CannotExecuteException

getDeclaringClass

abstract OJClass getDeclaringClass()

getDeclaredClasses

abstract OJClass[] getDeclaredClasses()

getDeclaredFields

abstract OJField[] getDeclaredFields()

getDeclaredMethods

abstract OJMethod[] getDeclaredMethods()

getDeclaredConstructors

abstract OJConstructor[] getDeclaredConstructors()

getResourceAsStream

abstract InputStream getResourceAsStream(String name)
                                  throws CannotInspectException
CannotInspectException

getResource

abstract URL getResource(String name)
                  throws CannotInspectException
CannotInspectException

isExecutable

abstract boolean isExecutable()

isAlterable

abstract boolean isAlterable()

getByteCode

abstract Class getByteCode()
                    throws CannotExecuteException
CannotExecuteException

getSourceCode

abstract ClassDeclaration getSourceCode()
                                 throws CannotAlterException
CannotAlterException

getCompatibleJavaClass

abstract Class getCompatibleJavaClass()

setDeclaringClass

abstract void setDeclaringClass(OJClass parent)
                         throws CannotAlterException
CannotAlterException

addClass

abstract OJClass addClass(OJClass clazz)
                   throws CannotAlterException
CannotAlterException

removeClass

abstract OJClass removeClass(OJClass clazz)
                      throws CannotAlterException
CannotAlterException

addField

abstract OJField addField(OJField field)
                   throws CannotAlterException
CannotAlterException

removeField

abstract OJField removeField(OJField field)
                      throws CannotAlterException
CannotAlterException

addMethod

abstract OJMethod addMethod(OJMethod method)
                     throws CannotAlterException
CannotAlterException

removeMethod

abstract OJMethod removeMethod(OJMethod method)
                        throws CannotAlterException
CannotAlterException

addConstructor

abstract OJConstructor addConstructor(OJConstructor constr)
                               throws CannotAlterException
CannotAlterException

removeConstructor

abstract OJConstructor removeConstructor(OJConstructor constr)
                                  throws CannotAlterException
CannotAlterException

getMetaInfo

abstract String getMetaInfo(String key)

getMetaInfoKeys

abstract Enumeration getMetaInfoKeys()

getMetaInfoElements

abstract Enumeration getMetaInfoElements()

putMetaInfo

abstract String putMetaInfo(String key,
                            String value)
                     throws CannotAlterException
CannotAlterException

writeMetaInfo

abstract void writeMetaInfo(Writer out)
                     throws IOException
IOException

forNameAnyway

final OJClass forNameAnyway(String name)

arrayForNames

final OJClass[] arrayForNames(String[] names)

forClass

static final OJClass forClass(Class javaclass)

nameForJavaClassName

static final String nameForJavaClassName(String javaname)

nameToJavaClassName

static final String nameToJavaClassName(String ojname)

arrayForFields

static final OJField[] arrayForFields(Field[] fields)

arrayForMethods

static final OJMethod[] arrayForMethods(Method[] methods)

arrayForConstructors

static final OJConstructor[] arrayForConstructors(Constructor[] constrs)

SourceForge.net_Logo