This class provides methods to select and query nested objects by passing a
dot "." delimited String object (for instance,
"aaa.bbb"). A method evaluates a nested object from left to right,
and if a part is null, it throws NullPointerException.
| Modifier and Type | Class and Description |
|---|---|
| private static record |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final Integer | |
| pack-priv static final Integer | |
| pack-priv static final Long | |
| pack-priv final ObjectContext | |
| pack-priv final Object[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | Returns: the value of the field,true or falsename of the field to get, not name)nullReturns the value of a field of type |
| public final byte | |
| public final char | |
| public final RecordedClass | |
| public final double | |
| public final Duration | Returns: a time span represented as aDuration, not nullof the field to get, not name)nullReturns the value of a timespan field. |
| private Duration | |
| public List | |
| public final float | |
| public final Instant | Returns: a timstamp represented as anInstant, not nullof the field to get, not name)nullReturns the value of a timestamp field. |
| private Instant | |
| public final int | |
| public final long | |
| private OffsetDateTime | |
| public final short | |
| public final String | |
| public final RecordedThread | |
| pack-priv final <T> T | |
| private <T> T | |
| public final < the return type T> T | |
| private Object | |
| private ValueDescriptor | |
| public boolean | |
| private boolean | |
| private static IllegalArgumentException | |
| pack-priv Object | |
| private Object[] | |
| public final String | Returns: textual description of this objectOverrides java. Returns a textual representation of this object. |
| INTEGER_MINUS_ONE | back to summary |
|---|---|
| pack-priv static final Integer INTEGER_MINUS_ONE | |
| INTEGER_ZERO | back to summary |
|---|---|
| pack-priv static final Integer INTEGER_ZERO | |
| LONG_MINUS_ONE | back to summary |
|---|---|
| pack-priv static final Long LONG_MINUS_ONE | |
| objectContext | back to summary |
|---|---|
| pack-priv final ObjectContext objectContext | |
| objects | back to summary |
|---|---|
| pack-priv final Object[] objects | |
| RecordedObject | back to summary |
|---|---|
| pack-priv RecordedObject(ObjectContext objectContext, Object[] objects) | |
| getBoolean | back to summary |
|---|---|
| public final boolean getBoolean(String name) Returns the value of a field of type
It's possible to index into a nested object using A field might change or be removed in a future JDK release. A best practice for callers of this method is to validate the field before attempting access.
| |
| getByte | back to summary |
|---|---|
| public final byte getByte(String name) Returns the value of a field of type
It's possible to index into a nested object using A field might change or be removed in a future JDK release. A best practice for callers of this method is to validate the field before attempting access.
| |
| getChar | back to summary |
|---|---|
| public final char getChar(String name) Returns the value of a field of type
It's possible to index into a nested object using A field might change or be removed in a future JDK release. A best practice for callers of this method is to validate the field before attempting access.
| |
| getClass | back to summary |
|---|---|
| public final RecordedClass getClass(String name) Returns the value of a field of type
It's possible to index into a nested object using A field might change or be removed in a future JDK release. A best practice for callers of this method is to validate the field before attempting access.
| |
| getDouble | back to summary |
|---|---|
| public final double getDouble(String name) Returns the value of a field of type
This method can be used on fields of the following types:
It's possible to index into a nested object using A field might change or be removed in a future JDK release. A best practice for callers of this method is to validate the field before attempting access.
| |
| getDuration | back to summary |
|---|---|
| public final Duration getDuration(String name) Returns the value of a timespan field.
This method can be used on fields annotated with
If the committed event value was
It's possible to index into a nested object using A field might change or be removed in a future JDK release. A best practice for callers of this method is to validate the field before attempting access.
| |
| getDuration | back to summary |
|---|---|
| private Duration getDuration(long timespan, String name) | |
| getFields | back to summary |
|---|---|
| public List Returns an immutable list of the fields for this object.
| |
| getFloat | back to summary |
|---|---|
| public final float getFloat(String name) Returns the value of a field of type
This method can be used on fields of the following types:
It's possible to index into a nested object using A field might change or be removed in a future JDK release. A best practice for callers of this method is to validate the field before attempting access.
| |
| getInstant | back to summary |
|---|---|
| public final Instant getInstant(String name) Returns the value of a timestamp field.
This method can be used on fields annotated with
It's possible to index into a nested object using A field might change or be removed in a future JDK release. A best practice for callers of this method is to validate the field before attempting access.
| |
| getInstant | back to summary |
|---|---|
| private Instant getInstant(long timestamp, String name) | |
| getInt | back to summary |
|---|---|
| public final int getInt(String name) Returns the value of a field of type
This method can be used on fields of the following types:
If the field has the
It's possible to index into a nested object using A field might change or be removed in a future JDK release. A best practice for callers of this method is to validate the field before attempting access.
| |
| getLong | back to summary |
|---|---|
| public final long getLong(String name) Returns the value of a field of type
This method can be used on fields of the following types:
If the field has the
It's possible to index into a nested object using A field might change or be removed in a future JDK release. A best practice for callers of this method is to validate the field before attempting access.
| |
| getOffsetDateTime | back to summary |
|---|---|
| private OffsetDateTime getOffsetDateTime(String name) | |
| getShort | back to summary |
|---|---|
| public final short getShort(String name) Returns the value of a field of type
This method can be used on the following types:
If the field has the
It's possible to index into a nested object using A field might change or be removed in a future JDK release. A best practice for callers of this method is to validate the field before attempting access.
| |
| getString | back to summary |
|---|---|
| public final String getString(String name) Returns the value of a field of type
It's possible to index into a nested object using A field might change or be removed in a future JDK release. A best practice for callers of this method is to validate the field before attempting access.
| |
| getThread | back to summary |
|---|---|
| public final RecordedThread getThread(String name) Returns the value of a field of type
It's possible to index into a nested object using A field might change or be removed in a future JDK release. A best practice for callers of this method is to validate the field before attempting access.
| |
| getTyped | back to summary |
|---|---|
| pack-priv final <T> T getTyped(String name, Class<T> clazz, T defaultValue) | |
| getTypedValue | back to summary |
|---|---|
| private <T> T getTypedValue(String name, String typeName) | |
| getValue | back to summary |
|---|---|
| public final <T> T getValue(String name) Returns the value of the field with the given name.
The return type may be a primitive type or a subclass of
It's possible to index into a nested object by using A field might change or be removed in a future JDK release. A best practice for callers of this method is to validate the field before attempting access. Example if (event.hasField("intValue")) { int intValue = event.getValue("intValue"); System.out.println("Int value: " + intValue); } if (event.hasField("objectClass")) { RecordedClass clazz = event.getValue("objectClass"); System.out.println("Class name: " + clazz.getName()); } if (event.hasField("sampledThread")) { RecordedThread sampledThread = event.getValue("sampledThread"); System.out.println("Sampled thread: " + sampledThread.getJavaName()); }
| |
| getValue | back to summary |
|---|---|
| private Object getValue(String name, boolean allowUnsigned) | |
| getValueDescriptor | back to summary |
|---|---|
| private ValueDescriptor getValueDescriptor(List<ValueDescriptor> descriptors, String name, String leafType) | |
| hasField | back to summary |
|---|---|
| public boolean hasField(String name) Returns
It's possible to index into a nested field by using
| |
| isStackFrameType | back to summary |
|---|---|
| private boolean isStackFrameType(String typeName) | |
| newIllegalArgumentException | back to summary |
|---|---|
| private static IllegalArgumentException newIllegalArgumentException(String name, String typeName) | |
| objectAt | back to summary |
|---|---|
| pack-priv Object objectAt(int index) | |
| structifyArray | back to summary |
|---|---|
| private Object[] structifyArray(ValueDescriptor v, Object[] array, int dimension) | |
| toString | back to summary |
|---|---|
| public final String toString() Overrides java. Returns a textual representation of this object. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Object |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| public Object |
| value | back to summary |
|---|---|
| private final Object value Record Component accessed by value(). | |
| UnsignedValue | back to summary |
|---|---|
| private UnsignedValue(Object value) | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| value | back to summary |
|---|---|
| public Object value() Record Component getter of value. | |