template $ TemplateStringIterator :: SELF
Type of this instance, automatically specialized in every classcore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: MapIterator :: defaultinit
core :: Object :: defaultinit
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.
core :: 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).core :: MapIterator
Iterators for Map.
private class TemplateStringIterator
super MapIterator[String, nullable Writable]
var subject: TemplateString
var key_it: Iterator[String] is noinit
init do
self.key_it = subject.macro_names.iterator
end
redef fun is_ok do return key_it.is_ok
redef fun next do key_it.next
redef fun key do return key_it.item
redef fun item do return subject.macros[key].first.replacement
end
lib/template/macro.nit:361,1--375,3