public class RecordedClass extends Object
Constructor and Description |
---|
RecordedClass() |
Modifier and Type | Method and Description |
---|---|
int |
getObjectSize()
Returns the object size for the class.
|
boolean |
isArray()
Checks whether the class is for instance or array.
|
public int getObjectSize()
The object size for instance class is accurate. But for the array class, it is a magic code 0x1111baba. The array object size can not be determined statically from the JVM klass information because array object size is affected by actual element length.
public boolean isArray()
"Copyright 2018, Alibaba, Inc."