public class FieldProcessor extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FieldProcessor.Builder |
protected static interface |
FieldProcessor.CompletionCallback |
static interface |
FieldProcessor.Context |
Modifier and Type | Field and Description |
---|---|
protected FieldProcessor.CompletionCallback |
emptyCallback |
protected HeapUsageEstimator |
heapUsageEstimator |
protected boolean |
verbose |
Modifier | Constructor and Description |
---|---|
protected |
FieldProcessor(FieldProcessor.Builder builder) |
Modifier and Type | Method and Description |
---|---|
protected FieldProcessor.CompletionCallback |
beforeVisitInstance(FieldProcessor.Context context,
org.netbeans.lib.profiler.heap.Instance instance) |
static FieldProcessor.Builder |
builder() |
protected void |
excludeType(String typeName) |
protected static Class<?> |
getFieldClass(org.netbeans.lib.profiler.heap.Field field) |
protected static Class<?> |
getPrimitiveArrayItemClass(org.netbeans.lib.profiler.heap.PrimitiveArrayInstance instance) |
long |
getTotalSize() |
protected void |
incrementSize(FieldProcessor.Context context,
long delta) |
protected void |
log(String s) |
protected void |
processNull(FieldProcessor.Context context) |
protected void |
processObject(FieldProcessor.Context context,
org.netbeans.lib.profiler.heap.Instance instance) |
protected void |
processObjectArray(FieldProcessor.Context context,
org.netbeans.lib.profiler.heap.ObjectArrayInstance instance) |
protected void |
processPrimitive(FieldProcessor.Context context,
String value) |
protected void |
processPrimitiveArray(FieldProcessor.Context context,
org.netbeans.lib.profiler.heap.PrimitiveArrayInstance instance) |
protected void |
processRepeatedRef(FieldProcessor.Context context,
org.netbeans.lib.profiler.heap.Instance instance) |
protected static <T> T |
remove(List<T> list,
java.util.function.Predicate<T> predicate) |
void |
reorderFields(org.netbeans.lib.profiler.heap.JavaClass javaClass,
List<org.netbeans.lib.profiler.heap.FieldValue> fieldValues) |
protected static void |
reorderFirst(List<org.netbeans.lib.profiler.heap.FieldValue> fieldValues,
String... fieldNames) |
protected static void |
reorderLast(List<org.netbeans.lib.profiler.heap.FieldValue> fieldValues,
String... fieldNames) |
protected long |
sizeOfInstance(org.netbeans.lib.profiler.heap.JavaClass javaClass) |
protected final boolean verbose
protected final HeapUsageEstimator heapUsageEstimator
protected final FieldProcessor.CompletionCallback emptyCallback
protected FieldProcessor(FieldProcessor.Builder builder)
protected void excludeType(String typeName)
public long getTotalSize()
protected void processNull(FieldProcessor.Context context)
protected void processPrimitive(FieldProcessor.Context context, String value)
protected void processPrimitiveArray(FieldProcessor.Context context, org.netbeans.lib.profiler.heap.PrimitiveArrayInstance instance)
protected void processObject(FieldProcessor.Context context, org.netbeans.lib.profiler.heap.Instance instance)
protected void processObjectArray(FieldProcessor.Context context, org.netbeans.lib.profiler.heap.ObjectArrayInstance instance)
protected void processRepeatedRef(FieldProcessor.Context context, org.netbeans.lib.profiler.heap.Instance instance)
protected FieldProcessor.CompletionCallback beforeVisitInstance(FieldProcessor.Context context, org.netbeans.lib.profiler.heap.Instance instance)
protected void log(String s)
protected void incrementSize(FieldProcessor.Context context, long delta)
protected long sizeOfInstance(org.netbeans.lib.profiler.heap.JavaClass javaClass)
public void reorderFields(org.netbeans.lib.profiler.heap.JavaClass javaClass, List<org.netbeans.lib.profiler.heap.FieldValue> fieldValues)
protected static void reorderFirst(List<org.netbeans.lib.profiler.heap.FieldValue> fieldValues, String... fieldNames)
protected static void reorderLast(List<org.netbeans.lib.profiler.heap.FieldValue> fieldValues, String... fieldNames)
protected static <T> T remove(List<T> list, java.util.function.Predicate<T> predicate)
protected static Class<?> getPrimitiveArrayItemClass(org.netbeans.lib.profiler.heap.PrimitiveArrayInstance instance)
protected static Class<?> getFieldClass(org.netbeans.lib.profiler.heap.Field field)
public static FieldProcessor.Builder builder()
Copyright © GigaSpaces.