Package info.monitorenter.reflection
Class ObjectRecorder.ObjectInspection
- java.lang.Object
-
- info.monitorenter.reflection.ObjectRecorder.ObjectInspection
-
- Enclosing class:
- ObjectRecorder
public final class ObjectRecorder.ObjectInspection extends java.lang.ObjectData container for the inspection of the internal intance.- Version:
- $Revision: 1.10 $
- Author:
- Achim Westermann
-
-
Field Summary
Fields Modifier and Type Field Description protected longm_timeTime stamp of the inspection.
-
Constructor Summary
Constructors Modifier Constructor Description protectedObjectInspection()Creates an instance linked to the outer recorder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidadd(java.lang.Object value)Adds an inspected value to this inspection.java.lang.Objectget(int index)Get the value for the attribute at the given index.longgetTime()Returns the time stamp in ms of this inspection.protected voidremove(java.lang.Object value)Removes the inspected value from this inspection.java.lang.StringtoString()Returns a pretty print of this inspection.
-
-
-
Method Detail
-
add
protected void add(java.lang.Object value)
Adds an inspected value to this inspection.- Parameters:
value- an inspected value of this inspection.
-
get
public java.lang.Object get(int index)
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
protected void remove(java.lang.Object value)
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
public java.lang.String toString()
Returns a pretty print of this inspection.- Overrides:
toStringin classjava.lang.Object- Returns:
- a pretty print of this inspection.
- See Also:
Object.toString()
-
-