Package org.openjdk.jol.operations
Class ClasspathedOperation
- java.lang.Object
-
- org.openjdk.jol.operations.ClasspathedOperation
-
- All Implemented Interfaces:
Operation
- Direct Known Subclasses:
ObjectEstimates
,ObjectExternals
,ObjectFootprint
,ObjectInternals
public abstract class ClasspathedOperation extends java.lang.Object implements Operation
-
-
Constructor Summary
Constructors Constructor Description ClasspathedOperation()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description private static java.lang.Object
makeDefaultValue(java.lang.Class<?> type)
void
run(java.lang.String[] args)
protected abstract void
runWith(java.lang.Class<?> klass)
protected java.lang.Object
tryInstantiate(java.lang.Class<?> klass)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openjdk.jol.Operation
description, label
-
-
-
-
Method Detail
-
run
public void run(java.lang.String[] args) throws java.lang.Exception
-
tryInstantiate
protected java.lang.Object tryInstantiate(java.lang.Class<?> klass) throws java.lang.Exception
- Throws:
java.lang.Exception
-
makeDefaultValue
private static java.lang.Object makeDefaultValue(java.lang.Class<?> type)
-
runWith
protected abstract void runWith(java.lang.Class<?> klass) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-