nitc :: MAttribute
nitc :: MAttribute :: _getter
The getter of this attribute (if any)nitc :: MAttribute :: _offset
Relative offset of this attribute in the runtime instancenitc :: MAttribute :: _setter
The setter of this attribute (if any)nitc :: MAttribute :: defaultinit
nitc :: MAttribute :: getter=
The getter of this attribute (if any)nitc :: MAttribute :: has_getter
Does this attribute have a getter (auto or not)?nitc :: MAttribute :: has_setter
Does this attribute have a setter (auto or not)?nitc :: MAttribute :: is_nullable
Is this attribute nullable for sure?nitc :: MAttribute :: setter=
The setter of this attribute (if any)nitc $ MAttribute :: SELF
Type of this instance, automatically specialized in every classnitc :: json_model $ MAttribute :: core_serialize_to
Actual serialization ofself
to serializer
nitc :: virtual_machine $ MAttribute :: offset
Relative offset of this attribute in the runtime instancenitc :: virtual_machine $ MAttribute :: offset=
Relative offset of this attribute in the runtime instancenitc :: MEntity :: _const_color
nitc :: MEntity :: _css_classes
CSS classes used to decorateself
nitc :: MEntity :: _deprecation
Is the entity deprecated?nitc :: MAttribute :: _getter
The getter of this attribute (if any)nitc :: MEntity :: _html_full_name
The MEntityfull_name
escaped for HTML
nitc :: MProperty :: _intro_mclassdef
The classdef that introduce the propertynitc :: MProperty :: _is_after_all
Does self have theafter_all
annotation?
nitc :: MProperty :: _is_autoinit
Is the property usable as an initializer?nitc :: MProperty :: _is_before_all
Does self have thebefore_all
annotation?
nitc :: MEntity :: _is_broken
The indication that the entity did not pass some semantic verifications.nitc :: MProperty :: _is_example
nitc :: MProperty :: _mpropdefs
All definitions of the property.nitc :: MAttribute :: _offset
Relative offset of this attribute in the runtime instancenitc :: MAttribute :: _setter
The setter of this attribute (if any)nitc :: MProperty :: _visibility
The visibility of the propertyserialization :: Serializable :: accept_inspect_serializer_core
serialization :: Serializable :: accept_json_serializer
Refinable service to customize the serialization of this class to JSONserialization :: Serializable :: accept_msgpack_attribute_counter
Hook to customize the behavior of theAttributeCounter
serialization :: Serializable :: accept_msgpack_serializer
Hook to customize the serialization of this class to MessagePacknitc :: MEntity :: add_doc_to_infobox
Append an entry for the doc in the given infoboxserialization :: Serializable :: add_to_bundle
Called by[]=
to dynamically choose the appropriate method according
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
nitc :: MEntity :: collect_ancestors
Collectself
ancestors (direct and indirect)
nitc :: MEntity :: collect_children
Collectself
children (direct descendants)
nitc :: MEntity :: collect_descendants
Collectself
descendants (direct and direct)
nitc :: MEntity :: collect_linearization
Collectself
linearization anchored on mainmodule
nitc :: MEntity :: collect_metrics
nitc :: MEntity :: collect_modifiers
Collect modifier keywords likeredef
, private
etc
nitc :: MProperty :: collect_mpropdefs
Collect all property definitions ofself
nitc :: MEntity :: collect_parents
Collectself
parents (direct ancestors)
nitc :: MEntity :: const_color
nitc :: MEntity :: const_color=
nitc :: MEntity :: core_serialize_base
serialization :: Serializable :: core_serialize_to
Actual serialization ofself
to serializer
nitc :: MEntity :: create_ast_representation
Build a ANode fromself
nitc :: MEntity :: cs_comment
Returns the comment of this MEntity formatted for console.nitc :: MEntity :: cs_declaration
Returns the complete MEntity declaration (modifiers + name + signature).nitc :: MEntity :: cs_full_name
Returnsself.full_name
formatted for console
nitc :: MEntity :: cs_list_item
Returnsself
as a list element that can be displayed in console.
nitc :: MEntity :: cs_location
Source code location of this MEntity formatted for consolenitc :: MEntity :: cs_short_comment
Returns the comment of this MEntity formatted for console.nitc :: MEntity :: cs_signature
Returnsself
signature formatted for console.
nitc :: MEntity :: cs_source_code
Source code associated to this MEntity.nitc :: MEntity :: css_classes=
CSS classes used to decorateself
nitc :: MProperty :: defaultinit
core :: Object :: defaultinit
nitc :: MEntity :: defaultinit
nitc :: MAttribute :: defaultinit
nitc :: HInfoBoxable :: defaultinit
nitc :: MEntity :: deprecation=
Is the entity deprecated?nitc :: MEntity :: field_separator
serialization :: Serializable :: from_deserializer
Create an instance of this class from thedeserializer
nitc :: MProperty :: full_name=
The canonical name of the property.nitc :: MAttribute :: getter=
The getter of this attribute (if any)nitc :: MAttribute :: has_getter
Does this attribute have a getter (auto or not)?nitc :: MAttribute :: has_setter
Does this attribute have a setter (auto or not)?nitc :: MEntity :: hierarchy_poset
Build a poset representingself
in it's own hierarchy
nitc :: MEntity :: html_declaration
Returns the complete MEntity declaration decorated with HTMLnitc :: MEntity :: html_full_name=
The MEntityfull_name
escaped for HTML
nitc :: MEntity :: html_name=
The MEntity name escaped for HTMLnitc :: MEntity :: html_namespace
Returnsfull_name
decorated with HTML links
nitc :: MEntity :: html_signature
Returns the MEntity signature decorated with HTMLnitc :: HInfoBoxable :: infobox
An new infobox documenting the entitynitc :: MProperty :: intro_mclassdef
The classdef that introduce the propertynitc :: MProperty :: intro_mclassdef=
The classdef that introduce the propertynitc :: MProperty :: is_after_all=
Does self have theafter_all
annotation?
nitc :: MProperty :: is_autoinit=
Is the property usable as an initializer?nitc :: MProperty :: is_before=
Does self have thebefore
annotation?
nitc :: MProperty :: is_before_all
Does self have thebefore_all
annotation?
nitc :: MProperty :: is_before_all=
Does self have thebefore_all
annotation?
nitc :: MEntity :: is_broken=
The indication that the entity did not pass some semantic verifications.nitc :: MProperty :: is_example=
nitc :: MEntity :: is_fictive=
Isself
created for internal purpose?
nitc :: MAttribute :: is_nullable
Is this attribute nullable for sure?core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
nitc :: MEntity :: json_namespace
Returnself.full_name
as an object that can be serialized to json.
nitc :: MEntity :: line_separator
nitc :: MEntity :: linkto_text
Link to theself
with a specific text.
nitc :: MProperty :: lookup_all_definitions
Return all definitions in a linearization ordernitc :: MProperty :: lookup_definitions
Return the most specific property definitions defined or inherited by a type.nitc :: MProperty :: lookup_first_definition
Return the most specific definition in the linearization ofmtype
.
nitc :: MProperty :: lookup_super_definitions
Return the most specific property definitions inherited by a type.nitc :: MEntity :: mdoc_or_fallback
The documentation associated to the entity or their main nested entity.nitc :: MProperty :: mpropdefs=
All definitions of the property.serialization :: Serializable :: msgpack_extra_array_items
Hook to request a larger than usual metadata arraycore :: Object :: native_class_name
The class name of the object in CString format.core :: Object :: output_class_name
Display class name on stdout (debug only).mentity
nitc :: MEntity :: ratings_by_dimension
Get the ratings of adimension
nitc :: MProperty :: select_most_specific
Return an array containing olny the most specific property definitionsserialization :: Serializable :: serialize_msgpack
Serializeself
to MessagePack bytes
serialization :: Serializable :: serialize_to
Serializeself
to serializer
serialization :: Serializable :: serialize_to_json
Serializeself
to JSON
serialization :: Serializable :: serialize_to_or_delay
Accept references or force direct serialization (usingserialize_to
)
nitc :: MAttribute :: setter=
The setter of this attribute (if any)nitc :: MEntity :: source_url
Render a HTML link for the MEntity locationserialization :: Serializable :: to_pretty_json
Serializeself
to plain pretty JSON
nitc :: MEntity :: tpl_module
Builds a dot UML package diagram entity fromself
nitc :: MProperty :: visibility=
The visibility of the propertyv.enter_visit
on all nested entities.
nitc :: MEntity :: write_extra_doc
Extra auto documentation to append to thestream
nitc :: MEntity :: write_location
Location (file and line when available) of related declarationsnitc :: MProperty :: write_synopsis
Serializer::serialize
# A global attribute
class MAttribute
super MProperty
redef type MPROPDEF: MAttributeDef
# Does this attribute have a getter (auto or not)?
#
# See `getter`.
fun has_getter: Bool do return getter != null
# The getter of this attribute (if any)
var getter: nullable MProperty = null is writable
# Does this attribute have a setter (auto or not)?
#
# See `setter`.
fun has_setter: Bool do return setter != null
# The setter of this attribute (if any)
var setter: nullable MProperty = null is writable
end
src/model/model.nit:2468,1--2489,3
redef class MAttribute
# Relative offset of this attribute in the runtime instance
# (beginning of the block of its introducing class)
redef var offset: Int
end
src/vm/virtual_machine.nit:866,1--870,3
redef class MAttribute
# Is this attribute nullable for sure?
#
# This mean that its introduction is declarred with a nullable static type
# since attributes are invariant this will work on most cases
# attributes with static type anchored with a virtual type are not "nullable for-sure"
# because this type can be redefined in subclasses
private fun is_nullable: Bool do return intro.static_mtype isa MNullableType
end
src/metrics/nullables_metrics.nit:99,1--107,3
redef class MAttribute
redef fun core_serialize_to(v) do
super
v.serialize_attribute("static_mtype", intro.static_mtype)
end
end
src/doc/templates/json_model.nit:233,1--238,3