openjava.mop
Class OJMethodImp
java.lang.Object
|
+--openjava.mop.OJMethodImp
- Direct Known Subclasses:
- OJMethodByteCode, OJMethodSourceCode
- abstract class OJMethodImp
- extends Object
The abstract class OJMethodImp
provides an interface to
an implementation of OJMethod.
OJMethodImp
OJMethodImp()
toString
public abstract String toString()
- Overrides:
toString
in class Object
getDeclaringClass
abstract OJClass getDeclaringClass()
getName
abstract String getName()
getIdentifiableName
abstract String getIdentifiableName()
getModifiers
abstract OJModifier getModifiers()
getReturnType
abstract OJClass getReturnType()
getParameterTypes
abstract OJClass[] getParameterTypes()
getExceptionTypes
abstract OJClass[] getExceptionTypes()
getSuffix
abstract ParseTree getSuffix(String keyword)
getEnvironment
abstract Environment getEnvironment()
invoke
abstract Object invoke(Object obj,
Object[] args)
throws IllegalAccessException,
IllegalArgumentException,
InvocationTargetException,
CannotExecuteException
IllegalAccessException
IllegalArgumentException
InvocationTargetException
CannotExecuteException
isAlterable
abstract boolean isAlterable()
isExecutable
abstract boolean isExecutable()
getByteCode
abstract Method getByteCode()
throws CannotExecuteException
CannotExecuteException
getSourceCode
abstract MethodDeclaration getSourceCode()
throws CannotAlterException
CannotAlterException
getBody
abstract StatementList getBody()
throws CannotAlterException
CannotAlterException
setDeclaringClass
abstract void setDeclaringClass(OJClass parent)
throws CannotAlterException
CannotAlterException
setName
abstract void setName(String name)
throws CannotAlterException
CannotAlterException
setModifiers
abstract void setModifiers(int mods)
throws CannotAlterException
CannotAlterException
setReturnType
abstract void setReturnType(OJClass type)
throws CannotAlterException
CannotAlterException
setExceptionTypes
abstract void setExceptionTypes(OJClass[] types)
throws CannotAlterException
CannotAlterException
setBody
abstract StatementList setBody(StatementList stmts)
throws CannotAlterException
CannotAlterException