QGIS/python/core/auto_additions/qgsexpression.py
Nyall Dawson 989e62a80f Handle docstrings for c++ structs
sip doesn't support the docstring directive for structs (only classes),
so patch these back in via sipify magic
2024-08-16 07:28:29 +10:00

31 lines
2.7 KiB
Python

# The following has been generated automatically from src/core/expression/qgsexpression.h
try:
QgsExpression.__attribute_docs__ = {'errorType': 'The type of parser error that was found.', 'errorMsg': 'The message for the error at this location.', 'firstLine': "The first line that contained the error in the parser.\nDepending on the error sometimes this doesn't mean anything.", 'firstColumn': "The first column that contained the error in the parser.\nDepending on the error sometimes this doesn't mean anything.", 'lastLine': 'The last line that contained the error in the parser.', 'lastColumn': 'The last column that contained the error in the parser.'}
except NameError:
pass
QgsExpression.expressionToLayerFieldIndex = staticmethod(QgsExpression.expressionToLayerFieldIndex)
QgsExpression.quoteFieldExpression = staticmethod(QgsExpression.quoteFieldExpression)
QgsExpression.checkExpression = staticmethod(QgsExpression.checkExpression)
QgsExpression.replaceExpressionText = staticmethod(QgsExpression.replaceExpressionText)
QgsExpression.evaluateToDouble = staticmethod(QgsExpression.evaluateToDouble)
QgsExpression.registerFunction = staticmethod(QgsExpression.registerFunction)
QgsExpression.unregisterFunction = staticmethod(QgsExpression.unregisterFunction)
QgsExpression.cleanRegisteredFunctions = staticmethod(QgsExpression.cleanRegisteredFunctions)
QgsExpression.isFunctionName = staticmethod(QgsExpression.isFunctionName)
QgsExpression.functionIndex = staticmethod(QgsExpression.functionIndex)
QgsExpression.functionCount = staticmethod(QgsExpression.functionCount)
QgsExpression.quotedColumnRef = staticmethod(QgsExpression.quotedColumnRef)
QgsExpression.quotedString = staticmethod(QgsExpression.quotedString)
QgsExpression.quotedValue = staticmethod(QgsExpression.quotedValue)
QgsExpression.helpText = staticmethod(QgsExpression.helpText)
QgsExpression.tags = staticmethod(QgsExpression.tags)
QgsExpression.addVariableHelpText = staticmethod(QgsExpression.addVariableHelpText)
QgsExpression.variableHelpText = staticmethod(QgsExpression.variableHelpText)
QgsExpression.formatVariableHelp = staticmethod(QgsExpression.formatVariableHelp)
QgsExpression.group = staticmethod(QgsExpression.group)
QgsExpression.formatPreviewString = staticmethod(QgsExpression.formatPreviewString)
QgsExpression.createFieldEqualityExpression = staticmethod(QgsExpression.createFieldEqualityExpression)
QgsExpression.isFieldEqualityExpression = staticmethod(QgsExpression.isFieldEqualityExpression)
QgsExpression.attemptReduceToInClause = staticmethod(QgsExpression.attemptReduceToInClause)
QgsExpression.ParserError.__doc__ = """Details about any parser errors that were found when parsing the expression."""