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 TypedValueImpl
asValue(boolean value)
Shortcut for wrapping the given value instance as a TypedValue objectTypedValueImpl
asValue(byte value)
Shortcut for wrapping the given value instance as a TypedValue objectTypedValueImpl
asValue(char value)
Shortcut for wrapping the given value instance as a TypedValue objectTypedValueImpl
asValue(double value)
Shortcut for wrapping the given value instance as a TypedValue objectTypedValueImpl
asValue(float value)
Shortcut for wrapping the given value instance as a TypedValue objectTypedValueImpl
asValue(int value)
Shortcut for wrapping the given value instance as a TypedValue objectTypedValueImpl
asValue(long value)
Shortcut for wrapping the given value instance as a TypedValue objectTypedValueImpl
asValue(short value)
Shortcut for wrapping the given value instance as a TypedValue objectTypedValueImpl
asValue(Object value)
TypedValueImpl
asValue(String value)
Shortcut for wrapping the given value instance as a TypedValue objectTypedValueImpl
asValue(Consumer<TypedValueBuilder> builderCallback)
Shortcut for creating a new TypedValue object for this typeTypedFieldImpl
getField(String name)
List<TypedFieldImpl>
getFields()
TypesImpl
getTypes()
TypedValueImpl
nullValue()
default TypedValueBuilderImpl
valueBuilder()
-
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:
nullValue
in interfaceType
- Returns:
- a specific TypedValue instance designated as the null value for this type
-
asValue
TypedValueImpl asValue(String value)
Description copied from interface:Type
Shortcut for wrapping the given value instance as a TypedValue object- Specified by:
asValue
in interfaceType
- Parameters:
value
- the value to wrap- Returns:
- a TypedValue object representing the typed value
-
asValue
TypedValueImpl asValue(byte value)
Description copied from interface:Type
Shortcut for wrapping the given value instance as a TypedValue object- Specified by:
asValue
in interfaceType
- Parameters:
value
- the value to wrap- Returns:
- a TypedValue object representing the typed value
-
asValue
TypedValueImpl asValue(char value)
Description copied from interface:Type
Shortcut for wrapping the given value instance as a TypedValue object- Specified by:
asValue
in interfaceType
- Parameters:
value
- the value to wrap- Returns:
- a TypedValue object representing the typed value
-
asValue
TypedValueImpl asValue(short value)
Description copied from interface:Type
Shortcut for wrapping the given value instance as a TypedValue object- Specified by:
asValue
in interfaceType
- Parameters:
value
- the value to wrap- Returns:
- a TypedValue object representing the typed value
-
asValue
TypedValueImpl asValue(int value)
Description copied from interface:Type
Shortcut for wrapping the given value instance as a TypedValue object- Specified by:
asValue
in interfaceType
- Parameters:
value
- the value to wrap- Returns:
- a TypedValue object representing the typed value
-
asValue
TypedValueImpl asValue(long value)
Description copied from interface:Type
Shortcut for wrapping the given value instance as a TypedValue object- Specified by:
asValue
in interfaceType
- Parameters:
value
- the value to wrap- Returns:
- a TypedValue object representing the typed value
-
asValue
TypedValueImpl asValue(float value)
Description copied from interface:Type
Shortcut for wrapping the given value instance as a TypedValue object- Specified by:
asValue
in interfaceType
- Parameters:
value
- the value to wrap- Returns:
- a TypedValue object representing the typed value
-
asValue
TypedValueImpl asValue(double value)
Description copied from interface:Type
Shortcut for wrapping the given value instance as a TypedValue object- Specified by:
asValue
in interfaceType
- Parameters:
value
- the value to wrap- Returns:
- a TypedValue object representing the typed value
-
asValue
TypedValueImpl asValue(boolean value)
Description copied from interface:Type
Shortcut for wrapping the given value instance as a TypedValue object- Specified by:
asValue
in 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:Type
Shortcut for creating a new TypedValue object for this type- Specified by:
asValue
in 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:
valueBuilder
in interfaceType
- Returns:
- a new TypedValueBuilder instance for a value of this particular type
-
-