Tests if the specified element has a predecessor that complies with one of the specified Element Types.
checkPredecessorByType(elementTypeSpec) != null
element
If not specified, the generator context element is assumed, which is the same as the call:
checkPredecessorByType (
contextElement,
elementTypeSpec
)
GOMContext.contextElement
Note: When this parameter is null
,
the function just returns false
.
elementTypeSpec
The returned element will comply with one of the target Element Types.
Note: When the list contains names of non-existent Element Types, the generator will raise an error.
GOMElement.predecessors, checkPredecessorByType()