DQueryAttribute

Members

Aliases

attribute
alias attribute = Attribute

Property that returns the value of the attribute.

get
alias get = Attribute

Property that returns the value of the attributes. Only defined for attributes that can produce a value.

getOrElse
alias getOrElse(alias Default) = Attribute

Property that returns the value of the attribute if it's an expression, else a default value if the attribute if a type.

getOrElse
alias getOrElse(alias Default) = Default

Property that returns the value of the attribute if it's an expression, else a default value if the attribute if a type.

type
alias type = typeof(Attribute)

Property that returns the type of the attribute.

type
alias type = Attribute

Property that returns the type of the attribute.

Manifest constants

isExpression
enum isExpression;

Property that returns true if the attribute is an expression.

isType
enum isType;

Proprety that returns true if the attribute is a type.

Properties

getOrThrow
string getOrThrow [@property setter]

Property that returns the value of the attribute if it's an expression, else throws an exception (at runtime) if it's a type.

getOrThrow
string getOrThrow [@property setter]

Property that returns the value of the attribute if it's an expression, else throws an exception (at runtime) if it's a type.

opCall
auto opCall [@property getter]

Property that returns true if a given type can be assigned from a variable of the attribute's type.

query
auto query [@property getter]

Queries the type of the attribute.

Meta