|
LibreOffice Module basic (master) 1
|
#include <expr.hxx>
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 |
| SbiSymDef * | GetRealVar () |
| SbiExprNode * | GetExprNode () |
| 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< SbiExprNode > | Term (const KeywordSymbolInfo *pKeywordSymbolInfo=nullptr) |
| std::unique_ptr< SbiExprNode > | ObjTerm (SbiSymDef &) |
| std::unique_ptr< SbiExprNode > | Operand (bool bUsedForTypeOf=false) |
| std::unique_ptr< SbiExprNode > | Unary () |
| std::unique_ptr< SbiExprNode > | Exp () |
| std::unique_ptr< SbiExprNode > | MulDiv () |
| std::unique_ptr< SbiExprNode > | IntDiv () |
| std::unique_ptr< SbiExprNode > | Mod () |
| std::unique_ptr< SbiExprNode > | AddSub () |
| std::unique_ptr< SbiExprNode > | Cat () |
| std::unique_ptr< SbiExprNode > | Like () |
| std::unique_ptr< SbiExprNode > | VBA_Not () |
| std::unique_ptr< SbiExprNode > | Comp () |
| std::unique_ptr< SbiExprNode > | Boolean () |
Protected Attributes inherited from SbiExpression | |
| OUString | aArgName |
| SbiParser * | pParser |
| std::unique_ptr< SbiExprNode > | pExpr |
| SbiExprType | eCurExpr |
| SbiExprMode | m_eMode |
| bool | bBased = false |
| bool | bError = false |
| bool | bByVal = false |
| bool | bBracket = false |
| sal_uInt16 | nParenLevel = 0 |
| SbiConstExpression::SbiConstExpression | ( | SbiParser * | p | ) |
Definition at line 802 of file exprtree.cxx.
References aVal, ERRCODE_BASIC_SYNTAX, SbiTokenizer::Error(), eType, SbiSymDef::GetName(), nVal, p, SbiExpression::pExpr, SbiExpression::pParser, SbxDOUBLE, SbxFALSE, SbxINTEGER, SbxTRUE, and SbxVARVAL.
| short SbiConstExpression::GetShortValue | ( | ) |
Definition at line 855 of file exprtree.cxx.
References aVal, ERRCODE_BASIC_OUT_OF_RANGE, SbiTokenizer::Error(), eType, n, nVal, SbiExpression::pParser, SbxMAXINT, SbxMININT, and SbxSTRING.
Referenced by SbiParser::TypeDecl().
|
inline |
Definition at line 222 of file expr.hxx.
References aVal.
Referenced by SbiParser::DefEnum(), and SbiParser::DefVar().
|
inline |
Definition at line 221 of file expr.hxx.
References eType.
Referenced by SbiParser::DefEnum(), and SbiParser::DefVar().
|
inline |
Definition at line 223 of file expr.hxx.
References nVal.
Referenced by SbiParser::DefEnum(), and SbiParser::DefVar().
|
private |
Definition at line 217 of file expr.hxx.
Referenced by GetShortValue(), GetString(), and SbiConstExpression().
|
private |
Definition at line 218 of file expr.hxx.
Referenced by GetShortValue(), GetType(), and SbiConstExpression().
|
private |
Definition at line 216 of file expr.hxx.
Referenced by GetShortValue(), GetValue(), and SbiConstExpression().