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()
|
OJClassImp
OJClassImp()
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)