Interface TypeImpl
-
- All Known Implementing Classes:
ResolvableType
public interface TypeImpl extends Type
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description TypedValueImplasValue(boolean value)Shortcut for wrapping the given value instance as a TypedValue objectTypedValueImplasValue(byte value)Shortcut for wrapping the given value instance as a TypedValue objectTypedValueImplasValue(char value)Shortcut for wrapping the given value instance as a TypedValue objectTypedValueImplasValue(double value)Shortcut for wrapping the given value instance as a TypedValue objectTypedValueImplasValue(float value)Shortcut for wrapping the given value instance as a TypedValue objectTypedValueImplasValue(int value)Shortcut for wrapping the given value instance as a TypedValue objectTypedValueImplasValue(long value)Shortcut for wrapping the given value instance as a TypedValue objectTypedValueImplasValue(short value)Shortcut for wrapping the given value instance as a TypedValue objectTypedValueImplasValue(Object value)TypedValueImplasValue(String value)Shortcut for wrapping the given value instance as a TypedValue objectTypedValueImplasValue(Consumer<TypedValueBuilder> builderCallback)Shortcut for creating a new TypedValue object for this typeTypedFieldImplgetField(String name)List<TypedFieldImpl>getFields()TypesImplgetTypes()TypedValueImplnullValue()default TypedValueBuilderImplvalueBuilder()-
Methods inherited from interface org.openjdk.jmc.flightrecorder.writer.api.NamedType
getTypeName, isSame
-
Methods inherited from interface org.openjdk.jmc.flightrecorder.writer.api.Type
canAccept, getAnnotations, getId, getSupertype, hasConstantPool, isBuiltin, isResolved, isSimple, isUsedBy
-
-
-
-
Method Detail
-
getFields
List<TypedFieldImpl> getFields()
-
getField
TypedFieldImpl getField(String name)
-
getTypes
TypesImpl getTypes()
-
nullValue
TypedValueImpl nullValue()
- Specified by:
nullValuein interfaceType- Returns:
- a specific TypedValue instance designated as the null value for this type
-
asValue
TypedValueImpl asValue(String value)
Description copied from interface:TypeShortcut for wrapping the given value instance as a TypedValue object- Specified by:
asValuein interfaceType- Parameters:
value- the value to wrap- Returns:
- a TypedValue object representing the typed value
-
asValue
TypedValueImpl asValue(byte value)
Description copied from interface:TypeShortcut for wrapping the given value instance as a TypedValue object- Specified by:
asValuein interfaceType- Parameters:
value- the value to wrap- Returns:
- a TypedValue object representing the typed value
-
asValue
TypedValueImpl asValue(char value)
Description copied from interface:TypeShortcut for wrapping the given value instance as a TypedValue object- Specified by:
asValuein interfaceType- Parameters:
value- the value to wrap- Returns:
- a TypedValue object representing the typed value
-
asValue
TypedValueImpl asValue(short value)
Description copied from interface:TypeShortcut for wrapping the given value instance as a TypedValue object- Specified by:
asValuein interfaceType- Parameters:
value- the value to wrap- Returns:
- a TypedValue object representing the typed value
-
asValue
TypedValueImpl asValue(int value)
Description copied from interface:TypeShortcut for wrapping the given value instance as a TypedValue object- Specified by:
asValuein interfaceType- Parameters:
value- the value to wrap- Returns:
- a TypedValue object representing the typed value
-
asValue
TypedValueImpl asValue(long value)
Description copied from interface:TypeShortcut for wrapping the given value instance as a TypedValue object- Specified by:
asValuein interfaceType- Parameters:
value- the value to wrap- Returns:
- a TypedValue object representing the typed value
-
asValue
TypedValueImpl asValue(float value)
Description copied from interface:TypeShortcut for wrapping the given value instance as a TypedValue object- Specified by:
asValuein interfaceType- Parameters:
value- the value to wrap- Returns:
- a TypedValue object representing the typed value
-
asValue
TypedValueImpl asValue(double value)
Description copied from interface:TypeShortcut for wrapping the given value instance as a TypedValue object- Specified by:
asValuein interfaceType- Parameters:
value- the value to wrap- Returns:
- a TypedValue object representing the typed value
-
asValue
TypedValueImpl asValue(boolean value)
Description copied from interface:TypeShortcut for wrapping the given value instance as a TypedValue object- Specified by:
asValuein interfaceType- Parameters:
value- the value to wrap- Returns:
- a TypedValue object representing the typed value
-
asValue
TypedValueImpl asValue(Consumer<TypedValueBuilder> builderCallback)
Description copied from interface:TypeShortcut for creating a new TypedValue object for this type- Specified by:
asValuein interfaceType- Parameters:
builderCallback- will be called when the new TypedValue is being initialized- Returns:
- a TypedValue object representing the typed value
-
asValue
TypedValueImpl asValue(Object value)
-
valueBuilder
default TypedValueBuilderImpl valueBuilder()
- Specified by:
valueBuilderin interfaceType- Returns:
- a new TypedValueBuilder instance for a value of this particular type
-
-