RequiresDirective Class Reference

#include <RequiresDirective.hpp>

Inheritance diagram for RequiresDirective:
[legend]

Public Member Functions

void * operator new (size_t)
 
void * operator new (size_t size, void *objectPtr)
 
void operator delete (void *)
 
void operator delete (void *, void *)
 
 RequiresDirective (RexxString *, RexxClause *)
 
 RequiresDirective (RESTORETYPE restoreType)
 
void live (size_t)
 
void liveGeneral (int reason)
 
void flatten (RexxEnvelope *)
 
RexxStringgetName ()
 
void install (RexxActivation *context)
 
- Public Member Functions inherited from RexxDirective
 RexxDirective ()
 
 RexxDirective (RexxClause *clause, int type)
 
- Public Member Functions inherited from RexxInstruction
void * operator new (size_t)
 
void * operator new (size_t size, void *objectPtr)
 
void operator delete (void *)
 
void operator delete (void *, void *)
 
 RexxInstruction (RexxClause *clause, int type)
 
 RexxInstruction (RESTORETYPE restoreType)
 
 RexxInstruction ()
 
void live (size_t)
 
void liveGeneral (int reason)
 
void flatten (RexxEnvelope *)
 
const SourceLocationgetLocation ()
 
void setLocation (SourceLocation &l)
 
virtual void execute (RexxActivation *, RexxExpressionStack *)
 
void setNext (RexxInstruction *next)
 
void setStart (size_t line, size_t off)
 
void setEnd (size_t line, size_t off)
 
void setType (size_t type)
 
size_t getType ()
 
bool isType (size_t type)
 
size_t getLineNumber ()
 
- Public Member Functions inherited from RexxInternalObject
void * operator new (size_t, RexxClass *)
 
void * operator new (size_t, RexxClass *, RexxObject **, size_t, size_t)
 
void * operator new (size_t size, void *ptr)
 
void operator delete (void *)
 
void operator delete (void *p, void *ptr)
 
 RexxInternalObject ()
 
 RexxInternalObject (RESTORETYPE restoreType)
 
virtual ~RexxInternalObject ()
 
 operator RexxObject * ()
 
size_t getObjectSize ()
 
void setObjectSize (size_t s)
 
size_t getObjectDataSize ()
 
void * getObjectDataSpace ()
 
void clearObject ()
 
void clearObject (size_t l)
 
void setVirtualFunctions (void *t)
 
void setInitHeader (size_t s, size_t markword)
 
void setInitHeader (size_t markword)
 
void setObjectLive (size_t markword)
 
void setHasReferences ()
 
void setHasNoReferences ()
 
bool hasReferences ()
 
bool hasNoReferences ()
 
void setPrimitive ()
 
void setNonPrimitive ()
 
bool isPrimitive ()
 
bool isNonPrimitive ()
 
void setInRexxPackage ()
 
bool isInRexxPackage ()
 
bool isObjectMarked (size_t markword)
 
void setObjectMark (size_t markword)
 
void clearObjectMark ()
 
bool isObjectLive (size_t mark)
 
bool isObjectDead (size_t mark)
 
bool isOldSpace ()
 
bool isNewSpace ()
 
void setNewSpace ()
 
void setOldSpace ()
 
void makeProxiedObject ()
 
bool isProxyObject ()
 
bool isSubClassOrEnhanced ()
 
bool isBaseClass ()
 
size_t getObjectTypeNumber ()
 
RexxBehaviourgetObjectType ()
 
bool isObjectType (RexxBehaviour *b)
 
bool isObjectType (size_t t)
 
bool isSameType (RexxInternalObject *o)
 
void setBehaviour (RexxBehaviour *b)
 
virtual RexxObjectmakeProxy (RexxEnvelope *)
 
virtual RexxObjectcopy ()
 
virtual RexxObjectevaluate (RexxActivation *, RexxExpressionStack *)
 
virtual RexxObjectgetValue (RexxActivation *)
 
virtual RexxObjectgetValue (RexxVariableDictionary *)
 
virtual RexxObjectgetRealValue (RexxActivation *)
 
virtual RexxObjectgetRealValue (RexxVariableDictionary *)
 
virtual void uninit ()
 
virtual HashCode hash ()
 
virtual HashCode getHashValue ()
 
HashCode identityHash ()
 
virtual bool truthValue (int)
 
virtual bool logicalValue (logical_t &)
 
virtual RexxStringmakeString ()
 
virtual RexxTextmakeText ()
 
virtual void copyIntoTail (RexxCompoundTail *buffer)
 
virtual RexxStringprimitiveMakeString ()
 
virtual RexxTextprimitiveMakeText ()
 
virtual RexxArraymakeArray ()
 
virtual RexxStringstringValue ()
 
virtual RexxTexttextValue ()
 
virtual RexxIntegerintegerValue (size_t)
 
virtual bool numberValue (wholenumber_t &result, size_t precision)
 
virtual bool numberValue (wholenumber_t &result)
 
virtual bool unsignedNumberValue (stringsize_t &result, size_t precision)
 
virtual bool unsignedNumberValue (stringsize_t &result)
 
virtual bool doubleValue (double &result)
 
virtual RexxNumberStringnumberString ()
 
virtual bool isEqual (RexxObject *)
 
virtual bool isInstanceOf (RexxClass *)
 
virtual RexxMethodinstanceMethod (RexxString *)
 
virtual RexxSupplierinstanceMethods (RexxClass *)
 
virtual RexxObjectdynamicTarget (RexxObject **arguments, size_t count, size_t named_count)
 
void hasUninit ()
 
void removedUninit ()
 
void printObject ()
 
RexxObjectclone ()
 
- Public Member Functions inherited from RexxVirtualBase
virtual RexxObjectunflatten (RexxEnvelope *)
 

Protected Attributes

RexxStringname
 

Additional Inherited Members

- Static Public Member Functions inherited from RexxInternalObject
static size_t getObjectHeaderSize ()
 
- Public Attributes inherited from RexxInstruction
uint16_t instructionType
 
uint16_t instructionFlags
 
SourceLocation instructionLocation
 
RexxInstructionnextInstruction
 
- Public Attributes inherited from RexxInternalObject
ObjectHeader header
 
RexxBehaviourbehaviour
 
- Protected Member Functions inherited from RexxVirtualBase
virtual ~RexxVirtualBase ()
 
virtual void baseVirtual ()
 

Detailed Description

Definition at line 49 of file RequiresDirective.hpp.

Constructor & Destructor Documentation

◆ RequiresDirective() [1/2]

RequiresDirective::RequiresDirective ( RexxString n,
RexxClause clause 
)

Construct a RequiresDirective.

Parameters
nThe name of the requires target.
clauseThe source file clause containing the directive.

Definition at line 57 of file RequiresDirective.cpp.

References name.

◆ RequiresDirective() [2/2]

RequiresDirective::RequiresDirective ( RESTORETYPE  restoreType)
inline

Definition at line 58 of file RequiresDirective.hpp.

Member Function Documentation

◆ flatten()

void RequiresDirective::flatten ( RexxEnvelope envelope)
virtual

Flatten the directive instance.

Parameters
envelopeThe envelope we're flattening into.

Reimplemented from RexxVirtualBase.

Definition at line 91 of file RequiresDirective.cpp.

References cleanUpFlatten, flatten_reference, and setUpFlatten.

◆ getName()

RexxString* RequiresDirective::getName ( )
inline

Definition at line 64 of file RequiresDirective.hpp.

References name.

◆ install()

void RequiresDirective::install ( RexxActivation context)

Do install-time processing of the ::requires directive. This will resolve the directive and merge all of the public information from the resolved file into this program context.

Parameters
activationThe activation we're running under for the install.

Definition at line 121 of file RequiresDirective.cpp.

References RexxActivation::loadRequires(), and name.

Referenced by RexxSource::processInstall().

◆ live()

void RequiresDirective::live ( size_t  liveMark)
virtual

Normal garbage collecting live mark.

Parameters
liveMarkThe current live object mark.

Reimplemented from RexxVirtualBase.

Definition at line 67 of file RequiresDirective.cpp.

References memory_mark, name, and RexxInstruction::nextInstruction.

◆ liveGeneral()

void RequiresDirective::liveGeneral ( int  reason)
virtual

The generalized object marking routine.

Parameters
reasonThe processing faze we're running the mark on.

Reimplemented from RexxVirtualBase.

Definition at line 79 of file RequiresDirective.cpp.

References memory_mark_general, name, and RexxInstruction::nextInstruction.

◆ operator delete() [1/2]

void RequiresDirective::operator delete ( void *  )
inline

Definition at line 54 of file RequiresDirective.hpp.

◆ operator delete() [2/2]

void RequiresDirective::operator delete ( void *  ,
void *   
)
inline

Definition at line 55 of file RequiresDirective.hpp.

◆ operator new() [1/2]

void* RequiresDirective::operator new ( size_t  size,
void *  objectPtr 
)
inline

Definition at line 53 of file RequiresDirective.hpp.

◆ operator new() [2/2]

void * RequiresDirective::operator new ( size_t  size)

Allocate a new requires directive.

Parameters
sizeThe size of the object.
Returns
The memory for the new object.

Definition at line 108 of file RequiresDirective.cpp.

References new_object(), and T_RequiresDirective.

Member Data Documentation

◆ name

RexxString* RequiresDirective::name
protected

Definition at line 68 of file RequiresDirective.hpp.

Referenced by getName(), install(), live(), liveGeneral(), and RequiresDirective().


The documentation for this class was generated from the following files: