openjava.mop
Class OJMethodByteCode

java.lang.Object
  |
  +--openjava.mop.OJMethodImp
        |
        +--openjava.mop.OJMethodByteCode

class OJMethodByteCode
extends OJMethodImp


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

Field Detail

javaMethod

private Method javaMethod
Constructor Detail

OJMethodByteCode

OJMethodByteCode(Method java_method)
Method Detail

toString

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

getDeclaringClass

OJClass getDeclaringClass()
Specified by:
getDeclaringClass in class OJMethodImp

getName

String getName()
Specified by:
getName in class OJMethodImp

getIdentifiableName

String getIdentifiableName()
Specified by:
getIdentifiableName in class OJMethodImp

getModifiers

OJModifier getModifiers()
Specified by:
getModifiers in class OJMethodImp

getReturnType

OJClass getReturnType()
Specified by:
getReturnType in class OJMethodImp

getParameterTypes

OJClass[] getParameterTypes()
Specified by:
getParameterTypes in class OJMethodImp

getExceptionTypes

OJClass[] getExceptionTypes()
Specified by:
getExceptionTypes in class OJMethodImp

getSuffix

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

getEnvironment

Environment getEnvironment()
Specified by:
getEnvironment in class OJMethodImp

invoke

Object invoke(Object obj,
              Object[] args)
        throws IllegalAccessException,
               IllegalArgumentException,
               InvocationTargetException,
               CannotExecuteException
Specified by:
invoke in class OJMethodImp
IllegalAccessException
IllegalArgumentException
InvocationTargetException
CannotExecuteException

isAlterable

boolean isAlterable()
Specified by:
isAlterable in class OJMethodImp

isExecutable

boolean isExecutable()
Specified by:
isExecutable in class OJMethodImp

getByteCode

Method getByteCode()
             throws CannotExecuteException
Specified by:
getByteCode in class OJMethodImp
CannotExecuteException

getSourceCode

MethodDeclaration getSourceCode()
                          throws CannotAlterException
Specified by:
getSourceCode in class OJMethodImp
CannotAlterException

getBody

StatementList getBody()
                throws CannotAlterException
Specified by:
getBody in class OJMethodImp
CannotAlterException

setDeclaringClass

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

setName

final void setName(String name)
            throws CannotAlterException
Specified by:
setName in class OJMethodImp
CannotAlterException

setModifiers

final void setModifiers(int mods)
                 throws CannotAlterException
Specified by:
setModifiers in class OJMethodImp
CannotAlterException

setReturnType

final void setReturnType(OJClass type)
                  throws CannotAlterException
Specified by:
setReturnType in class OJMethodImp
CannotAlterException

setExceptionTypes

final void setExceptionTypes(OJClass[] types)
                      throws CannotAlterException
Specified by:
setExceptionTypes in class OJMethodImp
CannotAlterException

setBody

StatementList setBody(StatementList stmts)
                throws CannotAlterException
Specified by:
setBody in class OJMethodImp
CannotAlterException

SourceForge.net_Logo