public class SimulinkTestUtils extends java.lang.Object
Constructor and Description |
---|
SimulinkTestUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> IdentityHashSet<T> |
getAllReferencedObjects(java.lang.Object root,
java.lang.Class<T> type,
java.lang.String... packagePrefixes)
This works analogous to
getAllReferencedObjects(Object, String...)
but allows to limit the results to a certain type. |
static IdentityHashSet<java.lang.Object> |
getAllReferencedObjects(java.lang.Object root,
java.lang.String... packagePrefixes)
Get all objects an object references.
|
public SimulinkTestUtils()
public static <T> IdentityHashSet<T> getAllReferencedObjects(java.lang.Object root, java.lang.Class<T> type, java.lang.String... packagePrefixes)
getAllReferencedObjects(Object, String...)
but allows to limit the results to a certain type.public static IdentityHashSet<java.lang.Object> getAllReferencedObjects(java.lang.Object root, java.lang.String... packagePrefixes)
getChildren()
or
getParent()
. To limit the selection of methods, a list of
package prefixes must be specified. Only methods that do return a type
matched by one of the prefixes are taken into account. Additionally all
methods that return an implementation of Collection
are considered.root
- root of the object networkpackagePrefixes
- list of package prefixes to take into account