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)  

SourceLocation Class Reference

#include <SourceLocation.hpp>

Public Member Functions

size_t getLineNumber ()
 
size_t getOffset ()
 
size_t getEndLine ()
 
size_t getEndOffset ()
 
void setLineNumber (size_t l)
 
void setOffset (size_t l)
 
void setEndLine (size_t l)
 
void setEndOffset (size_t l)
 
void setStart (SourceLocation &l)
 
void setEnd (SourceLocation &l)
 
void setStart (size_t line, size_t offset)
 
void setEnd (size_t line, size_t offset)
 
void setLocation (size_t line, size_t offset, size_t end, size_t end_offset)
 
void setLocation (SourceLocation &l)
 
const SourceLocationoperator= (const SourceLocation &l)
 

Protected Attributes

size_t startLine
 
size_t startOffset
 
size_t endLine
 
size_t endOffset
 

Detailed Description

Definition at line 48 of file SourceLocation.hpp.

Member Function Documentation

◆ getEndLine()

size_t SourceLocation::getEndLine ( )
inline

◆ getEndOffset()

size_t SourceLocation::getEndOffset ( )
inline

◆ getLineNumber()

◆ getOffset()

◆ operator=()

const SourceLocation& SourceLocation::operator= ( const SourceLocation l)
inline

Definition at line 105 of file SourceLocation.hpp.

References endLine, endOffset, startLine, and startOffset.

◆ setEnd() [1/2]

void SourceLocation::setEnd ( size_t  line,
size_t  offset 
)
inline

Definition at line 78 of file SourceLocation.hpp.

References endLine, endOffset, line, startLine, and startOffset.

◆ setEnd() [2/2]

◆ setEndLine()

void SourceLocation::setEndLine ( size_t  l)
inline

Definition at line 58 of file SourceLocation.hpp.

References endLine.

Referenced by RexxSource::extractSource(), and RexxCode::getSource().

◆ setEndOffset()

void SourceLocation::setEndOffset ( size_t  l)
inline

◆ setLineNumber()

void SourceLocation::setLineNumber ( size_t  l)
inline

Definition at line 56 of file SourceLocation.hpp.

References startLine.

Referenced by RexxSource::extractSource().

◆ setLocation() [1/2]

void SourceLocation::setLocation ( size_t  line,
size_t  offset,
size_t  end,
size_t  end_offset 
)
inline

Definition at line 89 of file SourceLocation.hpp.

References endLine, endOffset, line, startLine, and startOffset.

Referenced by RexxSource::sourceNextToken().

◆ setLocation() [2/2]

void SourceLocation::setLocation ( SourceLocation l)
inline

Definition at line 97 of file SourceLocation.hpp.

References endLine, endOffset, startLine, and startOffset.

◆ setOffset()

void SourceLocation::setOffset ( size_t  l)
inline

Definition at line 57 of file SourceLocation.hpp.

References startOffset.

Referenced by RexxSource::extractSource().

◆ setStart() [1/2]

void SourceLocation::setStart ( size_t  line,
size_t  offset 
)
inline

Definition at line 72 of file SourceLocation.hpp.

References line, startLine, and startOffset.

◆ setStart() [2/2]

Member Data Documentation

◆ endLine

size_t SourceLocation::endLine
protected

Definition at line 117 of file SourceLocation.hpp.

Referenced by getEndLine(), operator=(), setEnd(), setEndLine(), and setLocation().

◆ endOffset

size_t SourceLocation::endOffset
protected

Definition at line 118 of file SourceLocation.hpp.

Referenced by getEndOffset(), operator=(), setEnd(), setEndOffset(), and setLocation().

◆ startLine

size_t SourceLocation::startLine
protected

◆ startOffset

size_t SourceLocation::startOffset
protected

Definition at line 116 of file SourceLocation.hpp.

Referenced by getOffset(), operator=(), setEnd(), setLocation(), setOffset(), and setStart().


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