yast2-core
|
#include <YStatement.h>
Public Member Functions | |
YSVariable (SymbolEntryPtr entry, YCodePtr code, int line=0) | |
YSVariable (bytecodeistream &str) | |
~YSVariable () | |
virtual ykind | kind () const |
string | toString () const |
![]() | |
YSAssign (SymbolEntryPtr entry, YCodePtr code, int line=0) | |
YSAssign (bytecodeistream &str) | |
~YSAssign () | |
std::ostream & | toStream (std::ostream &str) const |
std::ostream & | toXml (std::ostream &str, int indent) const |
YCPValue | evaluate (bool cse=false) |
![]() | |
YStatement (int line=0) | |
YStatement (bytecodeistream &str) | |
~YStatement () | |
virtual bool | isStatement () const |
int | line () const |
constTypePtr | type () const |
![]() | |
YCode () | |
virtual | ~YCode () |
std::string | commentToXml () const |
std::ostream & | commentToXml (std::ostream &str) const |
virtual bool | isConstant () const |
bool | isError () const |
virtual bool | isBlock () const |
virtual bool | isReferenceable () const |
void | setCommentBefore (const char *comment) |
void | setCommentAfter (const char *comment) |
![]() | |
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 (YSVariable) | |
assignment or definition [<type>] <m_entry> = <m_code>
YSVariable::YSVariable | ( | SymbolEntryPtr | entry, |
YCodePtr | code, | ||
int | line = 0 |
||
) |
YSVariable::YSVariable | ( | bytecodeistream & | str | ) |
References YSAssign::m_code, and YSAssign::m_entry.
YSVariable::~YSVariable | ( | ) |
|
inlinevirtual |
Kind of this YCode. This method must be reimplemented in the inherited classes.
Reimplemented from YSAssign.
References YStatement::toString(), and YCode::ysVariable.
|
private |
|
virtual |
Return ASCII represtation of this YCP code.
Reimplemented from YSAssign.
References YSAssign::m_code, and YSAssign::m_entry.