nitc :: MAttributeDef :: _static_mtype
The static type of the attributenitc :: MAttributeDef :: defaultinit
nitc :: MAttributeDef :: static_mtype
The static type of the attributenitc :: MAttributeDef :: static_mtype=
The static type of the attributenitc $ MAttributeDef :: MPROPERTY
The associatedMProperty
subclass.
nitc $ MAttributeDef :: SELF
Type of this instance, automatically specialized in every classnitc :: json_model $ MAttributeDef :: core_serialize_to
Actual serialization ofself
to serializer
nitc :: astbuilder $ MAttributeDef :: create_ast_representation
Build a ANode fromself
nitc :: term_model $ MAttributeDef :: cs_signature
Returnsself
signature formatted for console.
nitc :: html_model $ MAttributeDef :: html_signature
Returns the MEntity signature decorated with HTMLnitc :: uml_module $ MAttributeDef :: tpl_module
Builds a dot UML package diagram entity fromself
nitc :: vim_autocomplete $ MAttributeDef :: write_signature_to_stream
nitc :: AnnotatedMEntity :: _annotations
Names of the annotations found onself
declaration
nitc :: MEntity :: _const_color
nitc :: MEntity :: _css_classes
CSS classes used to decorateself
nitc :: MEntity :: _deprecation
Is the entity deprecated?nitc :: MPropDef :: _full_name
The full-name of mpropdefs combine the information about theclassdef
and the mproperty
.
nitc :: MPropDef :: _has_contract
flag to indicate is theMPropDef
has a contract
nitc :: MPropDef :: _has_supercall
Does the MPropDef contains a call to super or a call of a super-constructor?nitc :: MEntity :: _html_full_name
The MEntityfull_name
escaped for HTML
nitc :: MPropDef :: _is_after_all
Does self have theafter_all
annotation?
nitc :: MPropDef :: _is_after_all
nitc :: MPropDef :: _is_before
nitc :: MPropDef :: _is_before_all
nitc :: MPropDef :: _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 :: MPropDef :: _mclassdef
The class definition where the property definition isnitc :: MAttributeDef :: _static_mtype
The static type of the attributeserialization :: 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
nitc :: AnnotatedMEntity :: annotations
Names of the annotations found onself
declaration
nitc :: AnnotatedMEntity :: annotations=
Names of the annotations found onself
declaration
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 :: 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 :: MEntity :: defaultinit
nitc :: MPropDef :: defaultinit
nitc :: AnnotatedMEntity :: defaultinit
nitc :: MAttributeDef :: defaultinit
core :: Object :: 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 :: MPropDef :: full_name=
The full-name of mpropdefs combine the information about theclassdef
and the mproperty
.
nitc :: AnnotatedMEntity :: has_annotation
Doesself
contains annotation
in its declaration?
nitc :: MPropDef :: has_contract
flag to indicate is theMPropDef
has a contract
nitc :: MPropDef :: has_contract=
flag to indicate is theMPropDef
has a contract
nitc :: MPropDef :: has_supercall
Does the MPropDef contains a call to super or a call of a super-constructor?nitc :: MPropDef :: has_supercall=
Does the MPropDef contains a call to super or a call of a super-constructor?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 :: MPropDef :: is_after_all=
Does self have theafter_all
annotation?
nitc :: MPropDef :: is_before=
Does self have thebefore
annotation?
nitc :: MPropDef :: 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 :: MEntity :: is_fictive=
Isself
created for internal purpose?
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 :: MPropDef :: lookup_next_definition
Return the next definition in linearization ofmtype
.
nitc :: MPropDef :: mclassdef=
The class definition where the property definition isnitc :: MEntity :: mdoc_or_fallback
The documentation associated to the entity or their main nested entity.nitc :: MPropDef :: mproperty=
The associated global propertyserialization :: 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
serialization :: 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 :: MEntity :: source_url
Render a HTML link for the MEntity locationnitc :: MAttributeDef :: static_mtype
The static type of the attributenitc :: MAttributeDef :: static_mtype=
The static type of the attributeserialization :: Serializable :: to_pretty_json
Serializeself
to plain pretty JSON
nitc :: MEntity :: tpl_module
Builds a dot UML package diagram entity fromself
v.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 declarationsSerializer::serialize
# A local definition of an attribute
class MAttributeDef
super MPropDef
redef type MPROPERTY: MAttribute
redef type MPROPDEF: MAttributeDef
# The static type of the attribute
var static_mtype: nullable MType = null is writable
end
src/model/model.nit:2695,1--2704,3
redef class MAttributeDef
redef fun to_node(nodes: HashMap[MEntity, NeoNode], model_name: nullable String): NeoNode do
if nodes.has_key(self) then return nodes[self]
var node = super
var static_mtype = static_mtype
if static_mtype != null then
node.out_edges.add(new NeoEdge(node, "TYPE", static_mtype.to_node(nodes, model_name)))
end
return node
end
end
src/neo.nit:824,1--834,3
redef class MAttributeDef
redef fun create_ast_representation(astbuilder: nullable ASTBuilder): AAttrPropdef do
if astbuilder == null then astbuilder = new ASTBuilder(mclassdef.mmodule)
var ntype = null
if self.static_mtype != null then ntype = static_mtype.create_ast_representation(astbuilder)
return astbuilder.make_attribute("_" + self.name, ntype, self.visibility.create_ast_representation(astbuilder), null, null, self, null, null)
end
end
src/astbuilder.nit:974,1--981,3
redef class MAttributeDef
redef fun write_signature_to_stream(stream)
do
var static_mtype = static_mtype
if static_mtype != null then
stream.write stream.to_s
end
end
end
src/doc/vim_autocomplete.nit:141,1--149,3
redef class MAttributeDef
redef fun cs_signature(no_color) do
var tpl = new FlatBuffer
var static_mtype = self.static_mtype
if static_mtype != null then
tpl.append ": "
tpl.append static_mtype.cs_signature(no_color)
end
return tpl.write_to_string
end
end
src/doc/templates/term_model.nit:188,1--198,3
redef class MAttributeDef
redef fun html_signature(short) do
var static_mtype = self.static_mtype
var tpl = new Template
if static_mtype != null then
tpl.add ": "
tpl.add static_mtype.html_signature(short)
end
return tpl
end
end
src/doc/templates/html_model.nit:240,1--250,3
redef class MAttributeDef
redef fun core_serialize_to(v) do
super
v.serialize_attribute("static_mtype", static_mtype)
end
end
src/doc/templates/json_model.nit:290,1--295,3