Expr
constructor
name
eval
new_
getattr
new_
gi_
call
new_
invert_
boolean
new_
setattr
ref
unref
from_
string
new_
boolean
new_
flow
new_
fn_
call
new_
number
new_
require
new_
simple
new_
string
new_
symbol_
assign
new_
symbol_
ref
new_
user_
fn_
call
GJS API Reference
Template-1.0
Template
Expr
Class Expr
Hierarchy
Expr
Index
Constructors
constructor
Properties
name
Methods
eval
new_
getattr
new_
gi_
call
new_
invert_
boolean
new_
setattr
ref
unref
from_
string
new_
boolean
new_
flow
new_
fn_
call
new_
number
new_
require
new_
simple
new_
string
new_
symbol_
assign
new_
symbol_
ref
new_
user_
fn_
call
Constructors
constructor
new
Expr
(
)
:
Expr
Returns
Expr
Properties
Static
name
name
:
string
Methods
eval
eval
(
scope
:
Template
.
Scope
, return_value
:
any
)
:
boolean
Parameters
scope:
Template
.
Scope
return_value:
any
Returns
boolean
new_
getattr
new_
getattr
(
attr
:
string
)
:
Expr
Parameters
attr:
string
Returns
Expr
new_
gi_
call
new_
gi_
call
(
name
:
string
, params
:
Expr
)
:
Expr
Parameters
name:
string
params:
Expr
Returns
Expr
new_
invert_
boolean
new_
invert_
boolean
(
)
:
Expr
Returns
Expr
new_
setattr
new_
setattr
(
attr
:
string
, right
:
Expr
)
:
Expr
Parameters
attr:
string
right:
Expr
Returns
Expr
ref
ref
(
)
:
Expr
Returns
Expr
unref
unref
(
)
:
void
Returns
void
Static
from_
string
from_
string
(
str
:
string
)
:
Expr
Parameters
str:
string
Returns
Expr
Static
new_
boolean
new_
boolean
(
value
:
boolean
)
:
Expr
Parameters
value:
boolean
Returns
Expr
Static
new_
flow
new_
flow
(
type
:
ExprType
, condition
:
Expr
, primary
:
Expr
, secondary
:
Expr
)
:
Expr
Parameters
type:
ExprType
condition:
Expr
primary:
Expr
secondary:
Expr
Returns
Expr
Static
new_
fn_
call
new_
fn_
call
(
builtin
:
ExprBuiltin
, param
:
Expr
)
:
Expr
Parameters
builtin:
ExprBuiltin
param:
Expr
Returns
Expr
Static
new_
number
new_
number
(
value
:
number
)
:
Expr
Parameters
value:
number
Returns
Expr
Static
new_
require
new_
require
(
typelib
:
string
, version
:
string
)
:
Expr
Parameters
typelib:
string
version:
string
Returns
Expr
Static
new_
simple
new_
simple
(
type
:
ExprType
, left
:
Expr
, right
:
Expr
)
:
Expr
Parameters
type:
ExprType
left:
Expr
right:
Expr
Returns
Expr
Static
new_
string
new_
string
(
value
:
string
, length
:
number
)
:
Expr
Parameters
value:
string
length:
number
Returns
Expr
Static
new_
symbol_
assign
new_
symbol_
assign
(
symbol
:
string
, right
:
Expr
)
:
Expr
Parameters
symbol:
string
right:
Expr
Returns
Expr
Static
new_
symbol_
ref
new_
symbol_
ref
(
symbol
:
string
)
:
Expr
Parameters
symbol:
string
Returns
Expr
Static
new_
user_
fn_
call
new_
user_
fn_
call
(
name
:
string
, param
:
Expr
)
:
Expr
Parameters
name:
string
param:
Expr
Returns
Expr
Expr
constructor
name
eval
new_
getattr
new_
gi_
call
new_
invert_
boolean
new_
setattr
ref
unref
from_
string
new_
boolean
new_
flow
new_
fn_
call
new_
number
new_
require
new_
simple
new_
string
new_
symbol_
assign
new_
symbol_
ref
new_
user_
fn_
call
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJUZW1wbGF0ZV8xXzAuVGVtcGxhdGUuRXhwci5odG1sI2NvbnN0cnVjdG9yIiwibmFtZSI6ImNvbnN0cnVjdG9yIiwiY2hpbGRyZW4iOltdLCJpc0V4dGVybiI6ZmFsc2UsImlzSW50ZXJuIjp0cnVlfSx7ImNsYXNzTmFtZXMiOiJ0c2Qta2luZC1wcm9wZXJ0eSB0c2QtcGFyZW50LWtpbmQtY2xhc3MgdHNkLWlzLXN0YXRpYyIsImhyZWYiOiJUZW1wbGF0ZV8xXzAuVGVtcGxhdGUuRXhwci5odG1sI25hbWUiLCJuYW1lIjoibm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