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.


Constructor Summary
(package private) OJMethodImp()
           
 
Method Summary
(package private) abstract  StatementList getBody()
           
(package private) abstract  Method getByteCode()
           
(package private) abstract  OJClass getDeclaringClass()
           
(package private) abstract  Environment getEnvironment()
           
(package private) abstract  OJClass[] getExceptionTypes()
           
(package private) abstract  String getIdentifiableName()
           
(package private) abstract  OJModifier getModifiers()
           
(package private) abstract  String getName()
           
(package private) abstract  OJClass[] getParameterTypes()
           
(package private) abstract  OJClass getReturnType()
           
(package private) abstract  MethodDeclaration getSourceCode()
           
(package private) abstract  ParseTree getSuffix(String keyword)
           
(package private) abstract  Object invoke(Object obj, Object[] args)
           
(package private) abstract  boolean isAlterable()
           
(package private) abstract  boolean isExecutable()
           
(package private) abstract  StatementList setBody(StatementList stmts)
           
(package private) abstract  void setDeclaringClass(OJClass parent)
           
(package private) abstract  void setExceptionTypes(OJClass[] types)
           
(package private) abstract  void setModifiers(int mods)
           
(package private) abstract  void setName(String name)
           
(package private) abstract  void setReturnType(OJClass type)
           
abstract  String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OJMethodImp

OJMethodImp()
Method Detail

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

SourceForge.net_Logo