Returns a vector containing the predecessors of the specified element starting from the immediate one (which is provided by
element.predecessor
property) until the nearest predecessor which complies with at least one of the specified
Element Types (if parameter included
is true
, that predecessor will
also be included in result vector).
GOMElement.predecessors
property and the functions: iterate(), instanceOf(), Vector()
.
Parameters:
element
If not specified, the generator context element is assumed, which is the same as the call:
getPredecessorsUntilType (
contextElement,
elementTypeSpec
)
GOMContext.contextElement
Note: When this parameter is null
,
the function returns an empty vector.
elementTypeSpec
When neither of the predecessors complies with the specified Element Types,
the result vector will include all predecessors (the same as it would be returned
by: element.predecessors.toVector()
).
Note: When the list contains names of non-existent Element Types, the generator will raise an error.
included
true
, the predecessor on whom
the search was terminated will also be included in the result
vector (as its last element).