public static < T extends Node > ImmutableList < T > getAllNodesOfType ( Node rootSoyNode , final Class < T > classObject ) { return getAllMatchingNodesOfType ( rootSoyNode , classObject , arg -> true ) ; }
Retrieves all nodes in a tree that are an instance of a particular class .