|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.insane.scanner.ScannerUtils
public final class ScannerUtils
Method Summary | |
---|---|
static Filter |
compoundFilter(Filter[] parts)
Creates a filter that will wrap and delegate to more filters, performing a logical and operation on their results |
static Visitor |
compoundVisitor(Visitor[] parts)
Creates a visitor that will wrap and delegate to more visitors during one scan |
static java.util.Set |
interestingRoots()
|
static int |
recursiveSizeOf(java.util.Collection roots,
Filter f)
|
static void |
scan(Filter f,
Visitor v,
java.util.Collection roots,
boolean analyzeStaticData)
Traverse the graph of objects reachable from roots Collection, notifying the Visitor. |
static void |
scanExclusivelyInAWT(Filter f,
Visitor v,
java.util.Set roots)
Traverse the graph of objects reachable from roots Collection, notifying the Visitor. |
static int |
sizeOf(java.lang.Object o)
|
static Filter |
skipNonStrongReferencesFilter()
A Filter factory that creates a Filter ignoring weak and soft references. |
static Filter |
skipObjectsFilter(java.util.Collection except,
boolean include)
A Filter factory that creates a Filter ignoring given collection of objects and/or their outgoing references. |
static Filter |
skipReferencesFilter(java.util.Collection except)
A Filter factory that creates a Filter ignoring given references |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Visitor compoundVisitor(Visitor[] parts)
parts
- aray of Visitors to delegate to.
public static Filter compoundFilter(Filter[] parts)
parts
- aray of Filters to delegate to.
public static Filter skipObjectsFilter(java.util.Collection except, boolean include)
except
- a Collection of objects to be ignoredinclude
- whether ignore the objects themselves (false) or only
their outgoing references (true).
public static Filter skipReferencesFilter(java.util.Collection except)
except
- a Collection of Fields to be ignored.
public static Filter skipNonStrongReferencesFilter()
public static int sizeOf(java.lang.Object o)
public static int recursiveSizeOf(java.util.Collection roots, Filter f) throws java.lang.Exception
java.lang.Exception
public static void scan(Filter f, Visitor v, java.util.Collection roots, boolean analyzeStaticData) throws java.lang.Exception
f
- a Filter for excluding objects. null means accept all objects.v
- a Visitor to be notified on all found objects and references.roots
- a Collection of objects to be evaluated.
java.lang.Exception
public static java.util.Set interestingRoots()
public static void scanExclusivelyInAWT(Filter f, Visitor v, java.util.Set roots) throws java.lang.Exception
f
- a Filter for excluding objects. null means accept all objects.v
- a Visitor to be notified on all found objects and references.roots
- a Collection of objects to be evaluated.
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |