Package info.monitorenter.reflection
Class ObjectRecorder.ObjectInspection
java.lang.Object
info.monitorenter.reflection.ObjectRecorder.ObjectInspection
- Enclosing class:
- ObjectRecorder
Data container for the inspection of the internal intance.
- Version:
- $Revision: 1.10 $
- Author:
- Achim Westermann
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Creates an instance linked to the outer recorder. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Adds an inspected value to this inspection.get
(int index) Get the value for the attribute at the given index.long
getTime()
Returns the time stamp in ms of this inspection.protected void
Removes the inspected value from this inspection.toString()
Returns a pretty print of this inspection.
-
Field Details
-
m_time
protected long m_timeTime stamp of the inspection.
-
-
Constructor Details
-
ObjectInspection
protected ObjectInspection()Creates an instance linked to the outer recorder.
-
-
Method Details
-
add
Adds an inspected value to this inspection.- Parameters:
value
- an inspected value of this inspection.
-
get
Get the value for the attribute at the given index.- Parameters:
index
- the index of the inspected value according to the order it was found on the instance byClass.getDeclaredFields()
.- Returns:
- the value for the attribute at the given index.
-
getTime
public long getTime()Returns the time stamp in ms of this inspection.- Returns:
- the time stamp in ms of this inspection.
-
remove
Removes the inspected value from this inspection.The value is identified by means of
Object.equals(java.lang.Object)
.- Parameters:
value
- the inspected value from this inspection.
-
toString
Returns a pretty print of this inspection.
-