public static TsurgeonPattern collectOperations ( List < TsurgeonPattern > patterns ) { return new TsurgeonPatternRoot ( patterns . toArray ( new TsurgeonPattern [ patterns . size ( ) ] ) ) ; }
Collects a list of operation patterns into a sequence of operations to be applied . Required to keep track of global properties across a sequence of operations . For example if you want to insert a named node and then coindex it with another node you will need to collect the insertion and coindexation operations into a single TsurgeonPattern so that tsurgeon is aware of the name of the new node and coindexation becomes possible .