ooRexx
4.2.0-source
About: ooRexx (Open Object Rexx) is a free implementation of Object Rexx. Object Rexx is an enhancement of the classic Rexx interpreter; a full-featured programming language with a human-oriented syntax.
![]() ![]() |
#include <MethodClass.hpp>
Additional Inherited Members | |
![]() | |
static size_t | getObjectHeaderSize () |
![]() | |
ObjectHeader | header |
RexxBehaviour * | behaviour |
![]() | |
virtual | ~RexxVirtualBase () |
virtual void | baseVirtual () |
Base class for a code object. Code objects can be invoked as methods, or called.
Definition at line 62 of file MethodClass.hpp.
|
virtual |
Simplified call form used for calling from Rexx code to native code.
activity | The current activity. |
msgname | The name of the call. |
arguments | the call arguments. |
argcount | The count of arguments. |
result | The returned result. |
Reimplemented in RexxRoutine, RegisteredRoutine, RexxNativeRoutine, and RexxCode.
Definition at line 736 of file MethodClass.cpp.
References Error_Interpretation, and reportException().
|
virtual |
Invoke a code element as a call target. This form is generally only used for calls from Rexx code to Rexx code or for top level program invocation.
activity | The activity we're running under. |
msgname | The name of the program or name used to invoke the routine. |
arguments | The arguments to the method. |
argcount | The count of arguments. |
ct | The call context. |
env | The current address environment. |
context | The type of call being made (program call, internal call, interpret, etc.) |
result | The returned result. |
Reimplemented in RexxCode.
Definition at line 719 of file MethodClass.cpp.
Referenced by RoutineClass::call(), RoutineClass::callRexx(), RoutineClass::callWithRexx(), and RoutineClass::runProgram().
|
virtual |
Default class resolution...which only looks in the environment or .local.
className | The target class name. |
Reimplemented in RexxNativeCode.
Definition at line 794 of file MethodClass.cpp.
References Interpreter::findClass().
Referenced by RexxNativeCode::findClass(), and BaseExecutable::findClass().
|
virtual |
Retrieve the package associated with a code object. Returns OREF_NULL if this code object doesn't have a source.
Definition at line 825 of file MethodClass.cpp.
References BaseExecutable::getSourceObject(), OREF_NULL, and BaseExecutable::source().
|
virtual |
Return source informaton for a BaseCode object. If not representing an element in a source file, this returns an empty array.
Reimplemented in RexxCode.
Definition at line 750 of file MethodClass.cpp.
References TheNullArray.
Referenced by BaseExecutable::getSource(), and BaseExecutable::source().
|
virtual |
Retrieve the source object associated with a code object.
Reimplemented in RexxCode, and RexxNativeCode.
Definition at line 780 of file MethodClass.cpp.
References OREF_NULL.
Referenced by BaseExecutable::getSourceObject().
|
virtual |
Run this code as a method invocation.
activity | The current activity. |
method | The method we're invoking. |
receiver | The method target object. |
msgname | The name the method was invoked under. |
argCount | The count of arguments. |
arguments | The argument pointer. |
result | The returned result. |
Reimplemented in RexxNativeMethod, AbstractCode, ConstantGetterCode, AttributeSetterCode, RexxCode, AttributeGetterCode, and CPPCode.
Definition at line 697 of file MethodClass.cpp.
References Error_Interpretation, and reportException().
Referenced by RexxMethod::run().
|
virtual |
Set the security manager in the code source context.
manager | The new security manager. |
Reimplemented in RexxCode.
Definition at line 765 of file MethodClass.cpp.
References TheFalseObject.
Referenced by RoutineClass::setSecurityManager(), and RexxMethod::setSecurityManager().
|
virtual |
Set a source object into a code context. The default implementation is just to return the same object without setting a source. This is used mostly for attaching a source context to native code methods and routines defined on directives.
s | The new source object. |
Reimplemented in RexxNativeCode.
Definition at line 813 of file MethodClass.cpp.
Referenced by BaseExecutable::setSourceObject().