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.
  Fossies Dox: ooRexx-4.2.0-source.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

PackageClass.hpp
Go to the documentation of this file.
1 /*----------------------------------------------------------------------------*/
2 /* */
3 /* Copyright (c) 1995, 2004 IBM Corporation. All rights reserved. */
4 /* Copyright (c) 2005-2009 Rexx Language Association. All rights reserved. */
5 /* */
6 /* This program and the accompanying materials are made available under */
7 /* the terms of the Common Public License v1.0 which accompanies this */
8 /* distribution. A copy is also available at the following address: */
9 /* http://www.oorexx.org/license.html */
10 /* */
11 /* Redistribution and use in source and binary forms, with or */
12 /* without modification, are permitted provided that the following */
13 /* conditions are met: */
14 /* */
15 /* Redistributions of source code must retain the above copyright */
16 /* notice, this list of conditions and the following disclaimer. */
17 /* Redistributions in binary form must reproduce the above copyright */
18 /* notice, this list of conditions and the following disclaimer in */
19 /* the documentation and/or other materials provided with the distribution. */
20 /* */
21 /* Neither the name of Rexx Language Association nor the names */
22 /* of its contributors may be used to endorse or promote products */
23 /* derived from this software without specific prior written permission. */
24 /* */
25 /* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS */
26 /* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT */
27 /* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS */
28 /* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT */
29 /* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, */
30 /* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED */
31 /* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, */
32 /* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY */
33 /* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING */
34 /* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS */
35 /* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
36 /* */
37 /*----------------------------------------------------------------------------*/
38 /******************************************************************************/
39 /* */
40 /* Primitive Kernel Package class definitions */
41 /* */
42 /******************************************************************************/
43 #ifndef Included_PackageClass
44 #define Included_PackageClass
45 
46 class RexxSource;
47 
48 class PackageClass : public RexxObject
49 {
50 public:
51  void *operator new(size_t);
52  inline void *operator new(size_t size, void *ptr) { return ptr; };
54  inline PackageClass(RESTORETYPE restoreType) { ; };
55 
56  void live(size_t);
57  void liveGeneral(int reason);
58  void flatten(RexxEnvelope*);
59 
60  static void createInstance();
62 
65  RexxString *getSourceLine(size_t);
69 
84  RexxObject *addRoutine(RexxString *name, RoutineClass *routine);
86  RexxObject *addClass(RexxString *name, RexxClass *clazz);
89  RexxObject *digits();
90  RexxObject *fuzz();
91  RexxObject *form();
92  RexxObject *trace();
93 
94  PackageClass *newRexx(RexxObject **init_args, size_t argCount);
95 
96  inline RexxSource *getSourceObject() { return source; }
97 
98 protected:
99  RexxSource *source; // the wrappered source object
100 
101 
102 };
103 
104 
105 inline PackageClass *new_package(RexxSource *s) { return new PackageClass(s); }
106 #endif
107 
108 
PackageClass::flatten
void flatten(RexxEnvelope *)
Definition: PackageClass.cpp:105
PackageClass::PackageClass
PackageClass(RexxSource *source)
Definition: PackageClass.cpp:78
RexxArray
Definition: ArrayClass.hpp:100
PackageClass::getSourceLine
RexxString * getSourceLine(size_t)
Definition: PackageClass.cpp:148
PackageClass::newRexx
PackageClass * newRexx(RexxObject **init_args, size_t argCount)
Definition: PackageClass.cpp:539
PackageClass::getClasses
RexxDirectory * getClasses()
Definition: PackageClass.cpp:185
PackageClass::findRoutine
RoutineClass * findRoutine(RexxString *name)
Definition: PackageClass.cpp:500
RoutineClass
Definition: RoutineClass.hpp:49
PackageClass::setSecurityManager
RexxObject * setSecurityManager(RexxObject *)
Definition: PackageClass.cpp:532
PackageClass::getSourceLineRexx
RexxString * getSourceLineRexx(RexxObject *)
Definition: PackageClass.cpp:161
RexxEnvelope
Definition: RexxEnvelope.hpp:53
PackageClass::PackageClass
PackageClass(RESTORETYPE restoreType)
Definition: PackageClass.hpp:54
PackageClass::loadLibrary
RexxObject * loadLibrary(RexxString *name)
Definition: PackageClass.cpp:598
PackageClass::addClass
RexxObject * addClass(RexxString *name, RexxClass *clazz)
Definition: PackageClass.cpp:430
PackageClass::getPublicClasses
RexxDirectory * getPublicClasses()
Definition: PackageClass.cpp:206
PackageClass::liveGeneral
void liveGeneral(int reason)
Definition: PackageClass.cpp:96
RexxSource
Definition: SourceFile.hpp:131
PackageClass::getImportedRoutines
RexxDirectory * getImportedRoutines()
Definition: PackageClass.cpp:293
PackageClass::getMethods
RexxDirectory * getMethods()
Definition: PackageClass.cpp:314
PackageClass::trace
RexxObject * trace()
Definition: PackageClass.cpp:646
PackageClass::getSourceSize
RexxInteger * getSourceSize()
Definition: PackageClass.cpp:174
PackageClass::getName
RexxString * getName()
Definition: PackageClass.cpp:124
RexxDirectory
Definition: DirectoryClass.hpp:49
PackageClass::getSource
RexxArray * getSource()
Definition: PackageClass.cpp:135
RexxClass
Definition: ClassClass.hpp:49
PackageClass::addPublicRoutine
RexxObject * addPublicRoutine(RexxString *name, RoutineClass *routine)
Definition: PackageClass.cpp:414
PackageClass::getRoutines
RexxDirectory * getRoutines()
Definition: PackageClass.cpp:249
PackageClass
Definition: PackageClass.hpp:48
PackageClass::digits
RexxObject * digits()
Definition: PackageClass.cpp:613
PackageClass::loadPackage
PackageClass * loadPackage(RexxString *name, RexxArray *source)
Definition: PackageClass.cpp:359
PackageClass::getPublicRoutines
RexxDirectory * getPublicRoutines()
Definition: PackageClass.cpp:271
PackageClass::findClassRexx
RexxClass * findClassRexx(RexxString *name)
Definition: PackageClass.cpp:481
PackageClass::addPublicClass
RexxObject * addPublicClass(RexxString *name, RexxClass *clazz)
Definition: PackageClass.cpp:446
PackageClass::findRoutineRexx
RoutineClass * findRoutineRexx(RexxString *name)
Definition: PackageClass.cpp:513
PackageClass::fuzz
RexxObject * fuzz()
Definition: PackageClass.cpp:624
PackageClass::live
void live(size_t)
Definition: PackageClass.cpp:87
PackageClass::getImportedClasses
RexxDirectory * getImportedClasses()
Definition: PackageClass.cpp:228
PackageClass::findClass
RexxClass * findClass(RexxString *name)
Definition: PackageClass.cpp:462
PackageClass::getImportedPackages
RexxArray * getImportedPackages()
Definition: PackageClass.cpp:336
PackageClass::form
RexxObject * form()
Definition: PackageClass.cpp:635
PackageClass::addPackage
RexxObject * addPackage(PackageClass *package)
Definition: PackageClass.cpp:383
PackageClass::createInstance
static void createInstance()
Definition: PackageClass.cpp:62
RESTORETYPE
RESTORETYPE
Definition: ObjectClass.hpp:80
PackageClass::addRoutine
RexxObject * addRoutine(RexxString *name, RoutineClass *routine)
Definition: PackageClass.cpp:398
PackageClass::classInstance
static RexxClass * classInstance
Definition: PackageClass.hpp:61
RexxInteger
Definition: IntegerClass.hpp:56
PackageClass::getSourceObject
RexxSource * getSourceObject()
Definition: PackageClass.hpp:96
RexxObject
Definition: ObjectClass.hpp:311
PackageClass::source
RexxSource * source
Definition: PackageClass.hpp:99
new_package
PackageClass * new_package(RexxSource *s)
Definition: PackageClass.hpp:105
RexxString
Definition: StringClass.hpp:119