| java.lang.Object org.netbeans.insane.scanner.ScannerUtils
ScannerUtils | final public class ScannerUtils (Code) | | author: Nenik |
Method Summary | |
public static Filter | compoundFilter(Filter[] parts) Creates a filter that will wrap and delegate to more filters, performing
a logical and operation on their results
Parameters: parts - aray of Filters to delegate to. | public static Visitor | compoundVisitor(Visitor[] parts) Creates a visitor that will wrap and delegate to more visitors
during one scan
Parameters: parts - aray of Visitors to delegate to. | public static Set<Object> | interestingRoots() | public static Filter | noFilter() | public static int | recursiveSizeOf(Collection roots, Filter f) | public static void | scan(Filter f, Visitor v, Collection roots, boolean analyzeStaticData) Traverse the graph of objects reachable from roots Collection, notifying
the Visitor.
Parameters: f - a Filter for excluding objects. | public static void | scanExclusivelyInAWT(Filter f, Visitor v, Set roots) Traverse the graph of objects reachable from roots Collection, notifying
the Visitor. | public static int | sizeOf(Object o) | public static Filter | skipNonStrongReferencesFilter() A Filter factory that creates a Filter ignoring weak and soft references. | public static Filter | skipObjectsFilter(Collection<Object> except, boolean include) A Filter factory that creates a Filter ignoring given collection
of objects and/or their outgoing references.
Parameters: except - a Collection of objects to be ignored Parameters: include - whether ignore the objects themselves (false) or onlytheir outgoing references (true). | public static Filter | skipReferencesFilter(Collection<Field> except) A Filter factory that creates a Filter ignoring given references
Parameters: except - a Collection of Fields to be ignored. |
compoundFilter | public static Filter compoundFilter(Filter[] parts)(Code) | | Creates a filter that will wrap and delegate to more filters, performing
a logical and operation on their results
Parameters: parts - aray of Filters to delegate to. a wrapper Filter |
compoundVisitor | public static Visitor compoundVisitor(Visitor[] parts)(Code) | | Creates a visitor that will wrap and delegate to more visitors
during one scan
Parameters: parts - aray of Visitors to delegate to. a wrapper Visitor |
interestingRoots | public static Set<Object> interestingRoots()(Code) | | a set of objects that may be sufficient to transitively referencenear all objects on the java heap. |
scan | public static void scan(Filter f, Visitor v, Collection roots, boolean analyzeStaticData) throws Exception(Code) | | Traverse the graph of objects reachable from roots Collection, notifying
the Visitor.
Parameters: f - a Filter for excluding objects. null means accept all objects. Parameters: v - a Visitor to be notified on all found objects and references. Parameters: roots - a Collection of objects to be evaluated. |
scanExclusivelyInAWT | public static void scanExclusivelyInAWT(Filter f, Visitor v, Set roots) throws Exception(Code) | | Traverse the graph of objects reachable from roots Collection, notifying
the Visitor. It performs the scan from inside AWT queue and tries to
suspend other threads during the scan.
Parameters: f - a Filter for excluding objects. null means accept all objects. Parameters: v - a Visitor to be notified on all found objects and references. Parameters: roots - a Collection of objects to be evaluated. |
skipNonStrongReferencesFilter | public static Filter skipNonStrongReferencesFilter()(Code) | | A Filter factory that creates a Filter ignoring weak and soft references.
the Filter implementation |
skipObjectsFilter | public static Filter skipObjectsFilter(Collection<Object> except, boolean include)(Code) | | A Filter factory that creates a Filter ignoring given collection
of objects and/or their outgoing references.
Parameters: except - a Collection of objects to be ignored Parameters: include - whether ignore the objects themselves (false) or onlytheir outgoing references (true). the Filter implementation |
skipReferencesFilter | public static Filter skipReferencesFilter(Collection<Field> except)(Code) | | A Filter factory that creates a Filter ignoring given references
Parameters: except - a Collection of Fields to be ignored. the Filter implementation |
|
|