LibreOffice Module idl (master) 1
Public Member Functions | Private Attributes | Friends | List of all members
SvToken Class Reference

#include <lex.hxx>

Collaboration diagram for SvToken:
[legend]

Public Member Functions

 SvToken ()
 
 SvToken (const SvToken &rObj)=delete
 
SvTokenoperator= (const SvToken &rObj)
 
OString GetTokenAsString () const
 
void SetLine (sal_uInt64 nLineP)
 
sal_uInt64 GetLine () const
 
void SetColumn (sal_uInt64 nColumnP)
 
sal_uInt64 GetColumn () const
 
bool IsComment () const
 
bool IsInteger () const
 
bool IsString () const
 
bool IsBool () const
 
bool IsIdentifierHash () const
 
bool IsIdentifier () const
 
bool IsChar () const
 
bool IsEof () const
 
const OString & GetString () const
 
sal_uInt64 GetNumber () const
 
bool GetBool () const
 
char GetChar () const
 
void SetHash (SvStringHashEntry *pHashP)
 
bool Is (SvStringHashEntry const *pEntry) const
 

Private Attributes

sal_uInt64 nLine
 
sal_uInt64 nColumn
 
SVTOKENTYPE nType
 
OString aString
 
union {
   sal_uInt64   nLong
 
   bool   bBool
 
   char   cChar
 
   SvStringHashEntry *   pHash
 
}; 
 

Friends

class SvTokenStream
 

Detailed Description

Definition at line 35 of file lex.hxx.

Constructor & Destructor Documentation

◆ SvToken() [1/2]

SvToken::SvToken ( )
inline

Definition at line 92 of file lex.hxx.

References Empty, and nType.

◆ SvToken() [2/2]

SvToken::SvToken ( const SvToken rObj)
delete

Member Function Documentation

◆ GetBool()

bool SvToken::GetBool ( ) const
inline

Definition at line 83 of file lex.hxx.

References bBool.

Referenced by SvIdlParser::ReadIfBoolAttribute(), and SvBOOL::ReadSvIdl().

◆ GetChar()

char SvToken::GetChar ( ) const
inline

◆ GetColumn()

sal_uInt64 SvToken::GetColumn ( ) const
inline

◆ GetLine()

sal_uInt64 SvToken::GetLine ( ) const
inline

Definition at line 57 of file lex.hxx.

References nLine.

Referenced by SvIdlDataBase::SetError(), SvParseException::SvParseException(), and SvIdlDataBase::WriteError().

◆ GetNumber()

sal_uInt64 SvToken::GetNumber ( ) const
inline

Definition at line 82 of file lex.hxx.

References nLong.

Referenced by SvIdlDataBase::ReadIdFile().

◆ GetString()

const OString & SvToken::GetString ( ) const
inline

◆ GetTokenAsString()

OString SvToken::GetTokenAsString ( ) const

◆ Is()

bool SvToken::Is ( SvStringHashEntry const *  pEntry) const
inline

◆ IsBool()

bool SvToken::IsBool ( ) const
inline

Definition at line 65 of file lex.hxx.

References Bool, and nType.

Referenced by SvIdlParser::ReadIfBoolAttribute(), and SvBOOL::ReadSvIdl().

◆ IsChar()

bool SvToken::IsChar ( ) const
inline

◆ IsComment()

bool SvToken::IsComment ( ) const
inline

Definition at line 62 of file lex.hxx.

References Comment, and nType.

Referenced by SvTokenStream::FillTokenList().

◆ IsEof()

bool SvToken::IsEof ( ) const
inline

◆ IsIdentifier()

bool SvToken::IsIdentifier ( ) const
inline

◆ IsIdentifierHash()

bool SvToken::IsIdentifierHash ( ) const
inline

Definition at line 66 of file lex.hxx.

References HashId, and nType.

Referenced by GetString(), and Is().

◆ IsInteger()

bool SvToken::IsInteger ( ) const
inline

Definition at line 63 of file lex.hxx.

References Integer, and nType.

Referenced by SvIdlDataBase::ReadIdFile().

◆ IsString()

bool SvToken::IsString ( ) const
inline

◆ operator=()

SvToken & SvToken::operator= ( const SvToken rObj)

Definition at line 60 of file lex.cxx.

References aString, nColumn, nLine, nLong, and nType.

◆ SetColumn()

void SvToken::SetColumn ( sal_uInt64  nColumnP)
inline

Definition at line 59 of file lex.hxx.

References nColumn.

Referenced by SvTokenStream::FillTokenList(), and SvTokenStream::MakeToken().

◆ SetHash()

void SvToken::SetHash ( SvStringHashEntry pHashP)
inline

Definition at line 86 of file lex.hxx.

References HashId, nType, and pHash.

Referenced by SvTokenStream::MakeToken().

◆ SetLine()

void SvToken::SetLine ( sal_uInt64  nLineP)
inline

Definition at line 56 of file lex.hxx.

References nLine.

Referenced by SvTokenStream::FillTokenList(), and SvTokenStream::MakeToken().

Friends And Related Function Documentation

◆ SvTokenStream

friend class SvTokenStream
friend

Definition at line 37 of file lex.hxx.

Member Data Documentation

◆ 

union { ... } SvToken::@1

◆ aString

OString SvToken::aString
private

Definition at line 40 of file lex.hxx.

Referenced by GetString(), GetTokenAsString(), SvTokenStream::MakeToken(), and operator=().

◆ bBool

bool SvToken::bBool

Definition at line 44 of file lex.hxx.

Referenced by GetBool(), GetTokenAsString(), and SvTokenStream::MakeToken().

◆ cChar

char SvToken::cChar

Definition at line 45 of file lex.hxx.

Referenced by GetChar(), GetTokenAsString(), and SvTokenStream::MakeToken().

◆ nColumn

sal_uInt64 SvToken::nColumn
private

Definition at line 38 of file lex.hxx.

Referenced by GetColumn(), operator=(), and SetColumn().

◆ nLine

sal_uInt64 SvToken::nLine
private

Definition at line 38 of file lex.hxx.

Referenced by GetLine(), operator=(), and SetLine().

◆ nLong

sal_uInt64 SvToken::nLong

Definition at line 43 of file lex.hxx.

Referenced by GetNumber(), GetTokenAsString(), SvTokenStream::MakeToken(), and operator=().

◆ nType

SVTOKENTYPE SvToken::nType
private

◆ pHash

SvStringHashEntry* SvToken::pHash

Definition at line 46 of file lex.hxx.

Referenced by GetString(), Is(), and SetHash().


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