|
yast2-core
|
#include <YExpression.h>
Public Member Functions | |
| YEFunction (TableEntry *entry) | |
| YEFunction (bytecodeistream &str) | |
| virtual ykind | kind () const |
| virtual YCPValue | evaluate (bool cse=false) |
| virtual constTypePtr | finalize () |
Public Member Functions inherited from YECall | |
| YECall (TableEntry *entry) | |
| YECall (bytecodeistream &str) | |
| ~YECall () | |
| const SymbolEntryPtr | entry () const |
| constTypePtr | attachParameter (YCodePtr code, constTypePtr type) |
| string | toString () const |
| std::ostream & | toStream (std::ostream &str) const |
| std::ostream & | toXml (std::ostream &str, int indent) const |
| constTypePtr | type () const |
| string | qualifiedName () const |
Public Member Functions inherited from YCode | |
| YCode () | |
| virtual | ~YCode () |
| virtual bool | isConstant () const |
| bool | isError () const |
| virtual bool | isStatement () const |
| virtual bool | isBlock () const |
| virtual bool | isReferenceable () const |
Public Member Functions inherited from Rep | |
| Rep () | |
| Rep (const Rep &) | |
| Rep & | operator= (const Rep &) |
| virtual | ~Rep () |
| void | ref () const |
| void | unref () const |
| unsigned | refCount () const |
| virtual const char * | repName () const |
| virtual std::ostream & | dumpOn (std::ostream &str) const |
Private Member Functions | |
| REP_BODY (YEFunction) | |
Additional Inherited Members | |
Static Public Member Functions inherited from YECall | |
| static YECallPtr | readCall (bytecodeistream &str) |
Static Public Member Functions inherited from YCode | |
| static string | toString (ykind kind) |
Static Public Member Functions inherited from Rep | |
| static void | ref (const Rep *obj_r) |
| static void | unref (const Rep *obj_r) |
Protected Attributes inherited from YECall | |
| TableEntry * | m_entry |
| SymbolEntryPtr | m_sentry |
| YCodePtr * | m_parameters |
| constTypePtr * | m_parameter_types |
| Y2Function * | m_functioncall |
| uint | m_next_param_id |
| YEFunction::YEFunction | ( | TableEntry * | entry | ) |
References TableEntry::sentry(), and y2debug.
| YEFunction::YEFunction | ( | bytecodeistream & | str | ) |
References YECall::m_functioncall, YECall::m_sentry, and y2error.
|
virtual |
Execute YCP code to get the resulting YCPValue. Every inherited class of YCode should reimplement this method.
| cse | should the evaluation be done for parse time evaluation (i.e. constant subexpression elimination) |
Reimplemented from YCode.
References Y2Function::attachParameter(), 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, YaST::ExecutionEnvironment::popframe(), YaST::ExecutionEnvironment::pushframe(), YECall::qualifiedName(), Y2Function::reset(), YaST::ExecutionEnvironment::setFilename(), YaST::ExecutionEnvironment::setLinenumber(), YECall::toString(), y2debug, y2error, and ycp2error.
|
virtual |
'close' function, perform final parameter check if ok, return 0 if missing parameter, return its type if undefined, return Type::Error (wrong type was already reported in attachParameter()
Reimplemented from YECall.
References Type::Error, YECall::m_functioncall, YECall::m_sentry, and y2error.
|
inlinevirtual |
Kind of this YCode. This method must be reimplemented in the inherited classes.
Implements YCode.
References YCode::yeFunction.
|
private |
1.8.1