Template.Expr¶
Fields¶
None
Methods¶
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class Template.Expr¶
-
- classmethod new_flow(type, condition, primary, secondary)¶
- Parameters:
type (
Template.ExprType
) –condition (
Template.Expr
) –primary (
Template.Expr
) –secondary (
Template.Expr
) –
- Return type:
- classmethod new_fn_call(builtin, param)¶
- Parameters:
builtin (
Template.ExprBuiltin
) –param (
Template.Expr
) –
- Return type:
- classmethod new_func(name, symlist, list)¶
- Parameters:
name (
str
) –symlist (
str
) –list (
Template.Expr
) –
- Return type:
- classmethod new_nop()¶
- Return type:
- classmethod new_null()¶
- Return type:
- classmethod new_require(typelib, version)¶
- Parameters:
- Return type:
- classmethod new_simple(type, left, right)¶
- Parameters:
type (
Template.ExprType
) –left (
Template.Expr
) –right (
Template.Expr
) –
- Return type:
- classmethod new_stmt_list(stmts)¶
- Parameters:
stmts ([
Template.Expr
]) – aGLib.PtrArray
ofTemplate.Expr
which will be evaluated in sequence.- Returns:
a new
Template.Expr
- Return type:
Creates a new statement list for which the last item will be used as the “return value” from execution.
New in version 3.36.
- classmethod new_string(value, length)¶
- Parameters:
- Return type:
- classmethod new_symbol_assign(symbol, right)¶
- Parameters:
symbol (
str
) –right (
Template.Expr
) –
- Return type:
- classmethod new_user_fn_call(name, param)¶
- Parameters:
name (
str
) –param (
Template.Expr
) –
- Return type:
- eval(scope, return_value)¶
- Parameters:
scope (
Template.Scope
) –return_value (
GObject.Value
) –
- Raises:
- Return type:
- new_anon_call(params)¶
- Parameters:
params (
Template.Expr
) –- Return type:
- new_gi_call(name, params)¶
- Parameters:
name (
str
) –params (
Template.Expr
) –
- Return type:
- new_invert_boolean()¶
- Return type:
- new_setattr(attr, right)¶
- Parameters:
attr (
str
) –right (
Template.Expr
) –
- Return type:
- ref()¶
- Return type:
- unref()¶