openjava.mop
Class OJClassByteCode

java.lang.Object
  |
  +--openjava.mop.OJClassImp
        |
        +--openjava.mop.OJClassByteCode

class OJClassByteCode
extends OJClassImp


Field Summary
private  Class javaClass
           
private  MetaInfo metainfo
           
 
Constructor Summary
(package private) OJClassByteCode(Class java_class, MetaInfo metainfo)
           
 
Method Summary
(package private)  OJClass addClass(OJClass clazz)
           
(package private)  OJConstructor addConstructor(OJConstructor constr)
           
(package private)  OJField addField(OJField field)
           
(package private)  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)  Class getByteCode()
           
(package private)  ClassLoader getClassLoader()
           
(package private)  Class getCompatibleJavaClass()
           
(package private)  OJClass getComponentType()
           
(package private)  OJClass[] getDeclaredClasses()
           
(package private)  OJConstructor[] getDeclaredConstructors()
           
(package private)  OJField[] getDeclaredFields()
           
(package private)  OJMethod[] getDeclaredMethods()
           
(package private)  OJClass getDeclaringClass()
           
(package private)  ClassEnvironment getEnvironment()
           
(package private)  OJClass[] getInterfaces()
           
(package private)  String getMetaInfo(String key)
           
(package private)  Enumeration getMetaInfoElements()
           
(package private)  Enumeration getMetaInfoKeys()
           
(package private)  OJModifier getModifiers()
           
(package private)  String getName()
           
(package private)  URL getResource(String name)
           
(package private)  InputStream getResourceAsStream(String name)
           
(package private)  Object[] getSigners()
           
(package private)  ClassDeclaration getSourceCode()
           
(package private)  ParseTree getSuffix(String keyword)
           
(package private)  OJClass getSuperclass()
           
(package private)  boolean isAlterable()
           
(package private)  boolean isArray()
           
(package private)  boolean isExecutable()
           
(package private)  boolean isInterface()
           
(package private)  boolean isPrimitive()
           
(package private) static String nameForJavaClassName(String javaname)
           
(package private) static String nameToJavaClassName(String ojname)
           
(package private)  Object newInstance()
           
(package private)  String putMetaInfo(String key, String value)
           
(package private)  OJClass removeClass(OJClass clazz)
           
(package private)  OJConstructor removeConstructor(OJConstructor constr)
           
(package private)  OJField removeField(OJField field)
           
(package private)  OJMethod removeMethod(OJMethod method)
           
(package private)  void setDeclaringClass(OJClass parent)
           
 String toString()
           
(package private)  void writeMetaInfo(Writer out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

javaClass

private Class javaClass

metainfo

private MetaInfo metainfo
Constructor Detail

OJClassByteCode

OJClassByteCode(Class java_class,
                MetaInfo metainfo)
Method Detail

getEnvironment

ClassEnvironment getEnvironment()
Specified by:
getEnvironment in class OJClassImp

toString

public String toString()
Specified by:
toString in class OJClassImp

newInstance

Object newInstance()
             throws InstantiationException,
                    IllegalAccessException
Specified by:
newInstance in class OJClassImp
InstantiationException
IllegalAccessException

isInterface

boolean isInterface()
Specified by:
isInterface in class OJClassImp

isArray

boolean isArray()
Specified by:
isArray in class OJClassImp

isPrimitive

boolean isPrimitive()
Specified by:
isPrimitive in class OJClassImp

getName

String getName()
Specified by:
getName in class OJClassImp

getClassLoader

ClassLoader getClassLoader()
                     throws CannotInspectException
Specified by:
getClassLoader in class OJClassImp
CannotInspectException

getSuperclass

OJClass getSuperclass()
Specified by:
getSuperclass in class OJClassImp

getInterfaces

OJClass[] getInterfaces()
Specified by:
getInterfaces in class OJClassImp

getComponentType

OJClass getComponentType()
Specified by:
getComponentType in class OJClassImp

getModifiers

OJModifier getModifiers()
Specified by:
getModifiers in class OJClassImp

getSuffix

ParseTree getSuffix(String keyword)
Specified by:
getSuffix in class OJClassImp

getSigners

Object[] getSigners()
              throws CannotExecuteException
Specified by:
getSigners in class OJClassImp
CannotExecuteException

getDeclaringClass

OJClass getDeclaringClass()
Specified by:
getDeclaringClass in class OJClassImp

getDeclaredClasses

OJClass[] getDeclaredClasses()
Specified by:
getDeclaredClasses in class OJClassImp

getDeclaredFields

OJField[] getDeclaredFields()
Specified by:
getDeclaredFields in class OJClassImp

getDeclaredMethods

OJMethod[] getDeclaredMethods()
Specified by:
getDeclaredMethods in class OJClassImp

getDeclaredConstructors

OJConstructor[] getDeclaredConstructors()
Specified by:
getDeclaredConstructors in class OJClassImp

getResourceAsStream

InputStream getResourceAsStream(String name)
                          throws CannotInspectException
Specified by:
getResourceAsStream in class OJClassImp
CannotInspectException

getResource

URL getResource(String name)
          throws CannotInspectException
Specified by:
getResource in class OJClassImp
CannotInspectException

isExecutable

boolean isExecutable()
Specified by:
isExecutable in class OJClassImp

isAlterable

boolean isAlterable()
Specified by:
isAlterable in class OJClassImp

getByteCode

Class getByteCode()
            throws CannotExecuteException
Specified by:
getByteCode in class OJClassImp
CannotExecuteException

getSourceCode

ClassDeclaration getSourceCode()
                         throws CannotAlterException
Specified by:
getSourceCode in class OJClassImp
CannotAlterException

getCompatibleJavaClass

Class getCompatibleJavaClass()
Specified by:
getCompatibleJavaClass in class OJClassImp

setDeclaringClass

void setDeclaringClass(OJClass parent)
                 throws CannotAlterException
Specified by:
setDeclaringClass in class OJClassImp
CannotAlterException

addClass

OJClass addClass(OJClass clazz)
           throws CannotAlterException
Specified by:
addClass in class OJClassImp
CannotAlterException

removeClass

OJClass removeClass(OJClass clazz)
              throws CannotAlterException
Specified by:
removeClass in class OJClassImp
CannotAlterException

addField

OJField addField(OJField field)
           throws CannotAlterException
Specified by:
addField in class OJClassImp
CannotAlterException

removeField

OJField removeField(OJField field)
              throws CannotAlterException
Specified by:
removeField in class OJClassImp
CannotAlterException

addMethod

OJMethod addMethod(OJMethod method)
             throws CannotAlterException
Specified by:
addMethod in class OJClassImp
CannotAlterException

removeMethod

OJMethod removeMethod(OJMethod method)
                throws CannotAlterException
Specified by:
removeMethod in class OJClassImp
CannotAlterException

addConstructor

OJConstructor addConstructor(OJConstructor constr)
                       throws CannotAlterException
Specified by:
addConstructor in class OJClassImp
CannotAlterException

removeConstructor

OJConstructor removeConstructor(OJConstructor constr)
                          throws CannotAlterException
Specified by:
removeConstructor in class OJClassImp
CannotAlterException

getMetaInfo

String getMetaInfo(String key)
Specified by:
getMetaInfo in class OJClassImp

getMetaInfoKeys

Enumeration getMetaInfoKeys()
Specified by:
getMetaInfoKeys in class OJClassImp

getMetaInfoElements

Enumeration getMetaInfoElements()
Specified by:
getMetaInfoElements in class OJClassImp

putMetaInfo

String putMetaInfo(String key,
                   String value)
             throws CannotAlterException
Specified by:
putMetaInfo in class OJClassImp
CannotAlterException

writeMetaInfo

void writeMetaInfo(Writer out)
             throws IOException
Specified by:
writeMetaInfo in class OJClassImp
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