ancestor_types()
Usage
ancestor_types(type[, blacklist])
Description
Returns the list of parent types of the given type including the type itself. Additionally a blacklist of type names can be provided as a list. If omitted, the list contains only “AbstractNode” by default.
Examples
${ancestor_types("MyType")}
${ancestor_types("MyType", merge())} (merge() is used to create an empty list so the blacklist is reset)
results in
[MyType]
[MyType, AbstractNode]