#include <MethodClass.hpp>
Additional Inherited Members | |
Static Public Member Functions inherited from RexxInternalObject | |
static size_t | getObjectHeaderSize () |
Public Attributes inherited from RexxInternalObject | |
ObjectHeader | header |
RexxBehaviour * | behaviour |
Protected Member Functions inherited from RexxVirtualBase | |
virtual | ~RexxVirtualBase () |
virtual void | baseVirtual () |
Base class for a code object. Code objects can be invoked as methods, or called.
Definition at line 84 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 positional arguments. |
named_argcount | The count of named arguments. |
result | The returned result. |
Reimplemented in RexxCode, RexxNativeRoutine, RegisteredRoutine, and RexxRoutine.
Definition at line 865 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 positional arguments. |
named_argcount | The count of named 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 847 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 923 of file MethodClass.cpp.
References Interpreter::findClass().
Referenced by BaseExecutable::findClass(), and RexxNativeCode::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 954 of file MethodClass.cpp.
References BaseExecutable::getSourceObject(), OREF_NULL, and BaseExecutable::source().
Referenced by isSamePackage().
|
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 879 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 AttributeGetterCode, ConstantGetterCode, AbstractCode, RexxCode, and RexxNativeCode.
Definition at line 909 of file MethodClass.cpp.
References OREF_NULL.
Referenced by BaseExecutable::getSourceObject().
|
inline |
Definition at line 97 of file MethodClass.hpp.
References getPackage().
Referenced by RexxMethod::isSamePackage().
|
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 positional arguments. |
named_argCount | The count of named arguments. |
arguments | The argument pointer. |
result | The returned result. |
Reimplemented in CPPCode, AttributeGetterCode, AttributeSetterCode, ConstantGetterCode, AbstractCode, RexxCode, and RexxNativeMethod.
Definition at line 824 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 894 of file MethodClass.cpp.
References TheFalseObject.
Referenced by RexxMethod::setSecurityManager(), and RoutineClass::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 AttributeGetterCode, ConstantGetterCode, AbstractCode, and RexxNativeCode.
Definition at line 942 of file MethodClass.cpp.
Referenced by BaseExecutable::setSourceObject().