LibreOffice Module basic (master) 1
Public Member Functions | Private Attributes | List of all members
SbiConstExpression Class Reference

#include <expr.hxx>

Inheritance diagram for SbiConstExpression:
[legend]
Collaboration diagram for SbiConstExpression:
[legend]

Public Member Functions

 SbiConstExpression (SbiParser *)
 
SbxDataType GetType () const
 
const OUString & GetString () const
 
double GetValue () const
 
short GetShortValue ()
 
- Public Member Functions inherited from SbiExpression
 SbiExpression (SbiParser *, SbiExprType=SbSTDEXPR, SbiExprMode eMode=EXPRMODE_STANDARD, const KeywordSymbolInfo *pKeywordSymbolInfo=nullptr)
 
 SbiExpression (SbiParser *, double, SbxDataType)
 
 SbiExpression (SbiParser *, const SbiSymDef &, SbiExprListPtr=nullptr)
 
 ~SbiExpression ()
 
OUString & GetName ()
 
void SetBased ()
 
bool IsBased () const
 
void SetByVal ()
 
bool IsBracket () const
 
bool IsValid () const
 
bool IsVariable () const
 
bool IsLvalue () const
 
void ConvertToIntConstIfPossible ()
 
const OUString & GetString () const
 
SbiSymDefGetRealVar ()
 
SbiExprNodeGetExprNode ()
 
SbxDataType GetType () const
 
void Gen (RecursiveMode eRecMode=UNDEFINED)
 

Private Attributes

double nVal
 
OUString aVal
 
SbxDataType eType
 

Additional Inherited Members

- Protected Member Functions inherited from SbiExpression
std::unique_ptr< SbiExprNodeTerm (const KeywordSymbolInfo *pKeywordSymbolInfo=nullptr)
 
std::unique_ptr< SbiExprNodeObjTerm (SbiSymDef &)
 
std::unique_ptr< SbiExprNodeOperand (bool bUsedForTypeOf=false)
 
std::unique_ptr< SbiExprNodeUnary ()
 
std::unique_ptr< SbiExprNodeExp ()
 
std::unique_ptr< SbiExprNodeMulDiv ()
 
std::unique_ptr< SbiExprNodeIntDiv ()
 
std::unique_ptr< SbiExprNodeMod ()
 
std::unique_ptr< SbiExprNodeAddSub ()
 
std::unique_ptr< SbiExprNodeCat ()
 
std::unique_ptr< SbiExprNodeLike ()
 
std::unique_ptr< SbiExprNodeVBA_Not ()
 
std::unique_ptr< SbiExprNodeComp ()
 
std::unique_ptr< SbiExprNodeBoolean ()
 
- Protected Attributes inherited from SbiExpression
OUString aArgName
 
SbiParserpParser
 
std::unique_ptr< SbiExprNodepExpr
 
SbiExprType eCurExpr
 
SbiExprMode m_eMode
 
bool bBased = false
 
bool bError = false
 
bool bByVal = false
 
bool bBracket = false
 
sal_uInt16 nParenLevel = 0
 

Detailed Description

Definition at line 215 of file expr.hxx.

Constructor & Destructor Documentation

◆ SbiConstExpression()

SbiConstExpression::SbiConstExpression ( SbiParser p)

Member Function Documentation

◆ GetShortValue()

short SbiConstExpression::GetShortValue ( )

◆ GetString()

const OUString & SbiConstExpression::GetString ( ) const
inline

Definition at line 222 of file expr.hxx.

References aVal.

Referenced by SbiParser::DefEnum(), and SbiParser::DefVar().

◆ GetType()

SbxDataType SbiConstExpression::GetType ( ) const
inline

Definition at line 221 of file expr.hxx.

References eType.

Referenced by SbiParser::DefEnum(), and SbiParser::DefVar().

◆ GetValue()

double SbiConstExpression::GetValue ( ) const
inline

Definition at line 223 of file expr.hxx.

References nVal.

Referenced by SbiParser::DefEnum(), and SbiParser::DefVar().

Member Data Documentation

◆ aVal

OUString SbiConstExpression::aVal
private

Definition at line 217 of file expr.hxx.

Referenced by GetShortValue(), GetString(), and SbiConstExpression().

◆ eType

SbxDataType SbiConstExpression::eType
private

Definition at line 218 of file expr.hxx.

Referenced by GetShortValue(), GetType(), and SbiConstExpression().

◆ nVal

double SbiConstExpression::nVal
private

Definition at line 216 of file expr.hxx.

Referenced by GetShortValue(), GetValue(), and SbiConstExpression().


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