Vala.DataType – libvala-0.56 Reference Manual
Packages
libvala-0.56
Vala
DataType
context_symbol
floating_reference
is_dynamic
nullable
symbol
type_symbol
value_owned
DataType
DataType.with_symbol
accept
accept_children
add_type_argument
check_type_arguments
compatible
copy
equals
get_actual_type
get_member
get_parameters
get_pointer_member
get_return_type
get_type_arguments
get_type_signature
has_type_arguments
infer_type_argument
is_accessible
is_disposable
is_generic
is_invokable
is_non_null_simple_type
is_real_non_null_struct_type
is_real_struct_type
is_reference_type_or_type_parameter
is_weak
remove_all_type_arguments
replace_type
replace_type_parameter
stricter
to_prototype_string
to_qualified_string
to_string
DataType
Object Hierarchy:
Description:
public
abstract
class
DataType
:
CodeNode
All known sub-classes:
ArrayType
BooleanType
CallableType
ClassType
DelegateType
EnumValueType
ErrorType
FieldPrototype
FloatingType
GenericType
IntegerType
InterfaceType
InvalidType
MethodType
NullType
ObjectType
PointerType
PropertyPrototype
ReferenceType
SignalType
StructValueType
UnresolvedType
ValueType
VarType
VoidType
Namespace:
Vala
Package:
libvala-0.56
Content:
Properties:
public
unowned
Symbol
?
context_symbol
{
get
;
set
; }
public
bool
floating_reference
{
get
;
set
; }
public
bool
is_dynamic
{
get
;
set
; }
public
bool
nullable
{
get
;
set
; }
public
unowned
Symbol
?
symbol
{
get
; }
public
unowned
TypeSymbol
?
type_symbol
{
get
; }
public
bool
value_owned
{
get
;
set
; }
Creation methods:
protected
DataType
()
protected
DataType.with_symbol
(
Symbol
? symbol,
SourceReference
? source_reference =
null
)
Methods:
public
override
void
accept
(
CodeVisitor
visitor)
public
override
void
accept_children
(
CodeVisitor
visitor)
public
void
add_type_argument
(
DataType
arg)
public
bool
check_type_arguments
(
CodeContext
context,
bool
allow_none =
false
)
public
virtual
bool
compatible
(
DataType
target_type)
public
abstract
DataType
copy
()
public
virtual
bool
equals
(
DataType
type2)
public
virtual
DataType
get_actual_type
(
DataType
? derived_instance_type,
List
<
DataType
>? method_type_arguments,
CodeNode
? node_reference)
public
virtual
Symbol
?
get_member
(
string
member_name)
public
virtual
unowned
List
<
Parameter
>?
get_parameters
()
public
virtual
Symbol
?
get_pointer_member
(
string
member_name)
public
virtual
unowned
DataType
?
get_return_type
()
public
unowned
List
<
DataType
>
get_type_arguments
()
public
string
?
get_type_signature
(
Symbol
? symbol =
null
)
public
bool
has_type_arguments
()
public
virtual
DataType
?
infer_type_argument
(
TypeParameter
type_param,
DataType
value_type)
public
virtual
bool
is_accessible
(
Symbol
sym)
public
virtual
bool
is_disposable
()
public
bool
is_generic
()
public
virtual
bool
is_invokable
()
public
bool
is_non_null_simple_type
()
public
bool
is_real_non_null_struct_type
()
public
virtual
bool
is_real_struct_type
()
public
virtual
bool
is_reference_type_or_type_parameter
()
public
bool
is_weak
()
public
void
remove_all_type_arguments
()
public
override
void
replace_type
(
DataType
old_type,
DataType
new_type)
public
void
replace_type_parameter
(
TypeParameter
old_type_param,
TypeParameter
new_type_param)
public
virtual
bool
stricter
(
DataType
type2)
public
virtual
string
to_prototype_string
(
string
? override_name =
null
)
public
virtual
string
to_qualified_string
(
Scope
? scope =
null
)
public
override
string
to_string
()
Inherited Members:
All known members inherited from class Vala.CodeNode
accept
accept_children
add_attribute
attributes
check
checked
copy_attribute_bool
copy_attribute_double
copy_attribute_integer
copy_attribute_string
emit
error
get_attribute
get_attribute_bool
get_attribute_cache
get_attribute_cache_index
get_attribute_double
get_attribute_integer
get_attribute_string
get_defined_variables
get_error_types
get_temp_name
get_used_variables
has_attribute
has_attribute_argument
parent_node
remove_attribute_argument
replace_expression
replace_type
set_attribute
set_attribute_bool
set_attribute_cache
set_attribute_double
set_attribute_integer
set_attribute_string
source_reference
to_string
tree_can_fail
type_name
unreachable