public static class JolResult.ClassLayout
extends java.lang.Object
| Constructor and Description |
|---|
ClassLayout(java.lang.String pClassName,
java.lang.String pPackageName,
java.lang.String pEnclosingClassName,
int pHeaderSize,
long pInstanceSize,
java.util.Collection<JolResult.FieldLayout> pFields)
Create a new
ClassLayout. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getClassName()
Get the name of the class for which this instance contains layout info.
|
java.lang.String |
getEnclosingClassName()
Get the name of the enclosing class of the class this instance contains layout info for.
|
long |
getExternalAlignmentGapSize()
Get the size of any gap caused by the next object being aligned.
|
java.lang.Iterable<JolResult.FieldLayout> |
getFields()
Get an
Iterable with the layouts of the fields in this class. |
java.lang.String |
getFullClassName()
Get the class name prefixed with any enclosing class name.
|
java.lang.String |
getFullyQualifiedName()
Get the full class name prefixed with the package name.
|
int |
getHeaderSize()
Get the object header size of the class.
|
long |
getInstanceSize()
Get the size of instances of the class.
|
long |
getInternalAlignmentGapSize()
Get the sum of all internal field alignment gap sizes.
|
int |
getNumFields()
Get the number of fields in this class.
|
java.lang.String |
getPackageName()
Get the name of the package the class belongs to.
|
public ClassLayout(java.lang.String pClassName,
java.lang.String pPackageName,
java.lang.String pEnclosingClassName,
int pHeaderSize,
long pInstanceSize,
java.util.Collection<JolResult.FieldLayout> pFields)
ClassLayout.pClassName - The name of the class for which to hold layout info.pPackageName - The name of the package the class belongs.pEnclosingClassName - The name of any enclosing class.pHeaderSize - The object header size of the class' instances.pInstanceSize - The size of the class' instances.pFields - The layout of the class' individual fields.java.lang.NullPointerException - if pClassName, pPackageName, or
pFields is null.public java.lang.String getPackageName()
public java.lang.String getClassName()
public java.lang.String getEnclosingClassName()
public java.lang.String getFullClassName()
public java.lang.String getFullyQualifiedName()
public int getNumFields()
public java.lang.Iterable<JolResult.FieldLayout> getFields()
Iterable with the layouts of the fields in this class.Iterable of FieldLayout instances, possibly empty, never
null.public int getHeaderSize()
public long getInstanceSize()
public long getInternalAlignmentGapSize()
public long getExternalAlignmentGapSize()