Class TypeFactory
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.internal.parser.v0.factories.TypeFactory
-
- All Implemented Interfaces:
IPoolFactory<IMCType>
final class TypeFactory extends java.lang.Object implements IPoolFactory<IMCType>
Factory responsible for creating aIMCType
-
-
Field Summary
Fields Modifier and Type Field Description private intm_nameIndexprivate CanonicalConstantMap<IMCType>typeMap
-
Constructor Summary
Constructors Constructor Description TypeFactory(ValueDescriptor[] descriptors, CanonicalConstantMap<IMCType> typeMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IMCTypecreateObject(long identifier, java.lang.Object s)Creates a replacement object for a value in a poolContentType<IMCType>getContentType()
-
-
-
Field Detail
-
m_nameIndex
private final int m_nameIndex
-
typeMap
private final CanonicalConstantMap<IMCType> typeMap
-
-
Constructor Detail
-
TypeFactory
public TypeFactory(ValueDescriptor[] descriptors, CanonicalConstantMap<IMCType> typeMap)
-
-
Method Detail
-
createObject
public IMCType createObject(long identifier, java.lang.Object s)
Description copied from interface:IPoolFactoryCreates a replacement object for a value in a pool- Specified by:
createObjectin interfaceIPoolFactory<IMCType>- Parameters:
identifier- the identifier that is used to look up the object- Returns:
- the replacement object that will be used instead
-
getContentType
public ContentType<IMCType> getContentType()
- Specified by:
getContentTypein interfaceIPoolFactory<IMCType>
-
-