yast2-core
|
#include <YExpression.h>
Public Member Functions | |
Y2YCPFunction (YSymbolEntryPtr entry) | |
~Y2YCPFunction () | |
string | qualifiedName () const |
string | name () const |
virtual bool | attachParameter (const YCPValue &arg, const int pos) |
virtual constTypePtr | wantedParameterType () const |
virtual bool | appendParameter (const YCPValue &arg) |
virtual bool | finishParameters () |
virtual YCPValue | evaluateCall () |
virtual bool | reset () |
![]() | |
virtual | ~Y2Function () |
Private Attributes | |
YSymbolEntryPtr | m_sentry |
YCPValue * | m_parameters |
Y2YCPFunction::Y2YCPFunction | ( | YSymbolEntryPtr | entry | ) |
References m_parameters, m_sentry, and y2debug.
Y2YCPFunction::~Y2YCPFunction | ( | ) |
References m_parameters.
|
virtual |
Appends a parameter to the call.
Implements Y2Function.
References YCPElement::isNull(), m_parameters, m_sentry, qualifiedName(), y2debug, and ycp2error.
|
virtual |
Attaches a parameter to a given position to the call.
Implements Y2Function.
References m_parameters, m_sentry, and y2error.
|
virtual |
Executes the call
Implements Y2Function.
References YaST::ee, YaST::ExecutionEnvironment::filename(), YCPElement::isNull(), YaST::ExecutionEnvironment::linenumber(), m_parameters, m_sentry, YaST::ExecutionEnvironment::setFilename(), YaST::ExecutionEnvironment::setLinenumber(), y2debug, and ycp2error.
|
virtual |
Signal that we're done adding parameters.
Implements Y2Function.
References m_parameters, m_sentry, qualifiedName(), and y2error.
|
virtual |
Implements Y2Function.
References m_sentry.
string Y2YCPFunction::qualifiedName | ( | ) | const |
References m_sentry.
Referenced by appendParameter(), and finishParameters().
|
virtual |
Reset the current parameters, so the instance can be reused for the next call (appendParameter etc)
Implements Y2Function.
References m_parameters, and m_sentry.
|
virtual |
What type is expected for the next appendParameter (val) ? (Used when calling from Perl, to be able to convert from the simple type system of Perl to the elaborate type system of YCP)
Implements Y2Function.
References Type::Any, m_parameters, m_sentry, Type::Unspec, and YCode::ycFunction.
|
private |
Referenced by appendParameter(), attachParameter(), evaluateCall(), finishParameters(), reset(), wantedParameterType(), Y2YCPFunction(), and ~Y2YCPFunction().
|
private |
Referenced by appendParameter(), attachParameter(), evaluateCall(), finishParameters(), name(), qualifiedName(), reset(), wantedParameterType(), and Y2YCPFunction().