#include <YExpression.h>
|
enum | ykind {
yxError = 0,
ycVoid,
ycBoolean,
ycInteger,
ycFloat,
ycString,
ycByteblock,
ycPath,
ycSymbol,
ycList,
ycMap,
ycTerm,
ycEntry,
ycConstant,
ycLocale,
ycFunction,
yePropagate,
yeUnary,
yeBinary,
yeTriple,
yeCompare,
yeLocale,
yeList,
yeMap,
yeTerm,
yeIs,
yeBracket,
yeBlock,
yeReturn,
yeVariable,
yeBuiltin,
yeFunction,
yeReference,
yeFunctionPointer,
yeExpression,
ysTypedef,
ysVariable,
ysFunction,
ysAssign,
ysBracket,
ysIf,
ysWhile,
ysDo,
ysRepeat,
ysExpression,
ysReturn,
ysBreak,
ysContinue,
ysTextdomain,
ysInclude,
ysFilename,
ysImport,
ysBlock,
ysSwitch,
ysStatement,
yiBreakpoint
} |
|
static YECallPtr | readCall (bytecodeistream &str) |
|
static string | toString (ykind kind) |
|
static void | ref (const Rep *obj_r) |
|
static void | unref (const Rep *obj_r) |
|
virtual void | ref_to (unsigned) const |
|
virtual void | unref_to (unsigned) const |
|
TableEntry * | m_entry |
|
SymbolEntryPtr | m_sentry |
|
YCodePtr * | m_parameters |
|
constTypePtr * | m_parameter_types |
|
Y2Function * | m_functioncall |
|
uint | m_next_param_id |
|
const char * | comment_before |
|
const char * | comment_after |
|
YEFunctionPointer::YEFunctionPointer |
( |
TableEntry * |
entry | ) |
|
YCPValue YEFunctionPointer::evaluate |
( |
bool |
cse = false | ) |
|
|
virtual |
Execute YCP code to get the resulting YCPValue. Every inherited class of YCode should reimplement this method.
- Returns
- YCPValue after executing the code
- Parameters
-
cse | should the evaluation be done for parse time evaluation (i.e. constant subexpression elimination) |
Reimplemented from YCode.
References Y2Function::attachParameter(), Y2Namespace::createFunctionCall(), YaST::ee, Y2Function::evaluateCall(), YaST::ExecutionEnvironment::filename(), YCPElement::isNull(), YaST::ExecutionEnvironment::linenumber(), YECall::m_functioncall, YECall::m_next_param_id, YECall::m_parameters, YECall::m_sentry, YECall::qualifiedName(), Y2Function::reset(), YaST::ExecutionEnvironment::setFilename(), YaST::ExecutionEnvironment::setLinenumber(), YECall::toString(), y2debug, y2internal, and ycp2error.
virtual ykind YEFunctionPointer::kind |
( |
| ) |
const |
|
inlinevirtual |
The documentation for this class was generated from the following files: