Class TypeManager
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.internal.parser.v1.TypeManager
-
class TypeManager extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
TypeManager.EventTypeEntry
private static class
TypeManager.NopEventSink
private static class
TypeManager.SkipFieldsEventSink
private class
TypeManager.TypeEntry
private class
TypeManager.TypeIdentifierReader
-
Field Summary
Fields Modifier and Type Field Description private FastAccessNumberMap<TypeManager.EventTypeEntry>
eventTypes
private ChunkStructure
header
private FastAccessNumberMap<TypeManager.TypeEntry>
otherTypes
private java.util.Map<java.lang.Long,StructContentType<java.lang.Object[]>>
STRUCT_TYPES
-
Constructor Summary
Constructors Constructor Description TypeManager(java.util.List<ChunkMetadata.ClassElement> classList, LoaderContext context, ChunkStructure header)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.lang.String
buildLabel(java.lang.String id, ChunkMetadata.AnnotatedElement element)
private ValueReaders.IValueReader
createFieldReader(ChunkMetadata.FieldElement f, java.lang.String valueType)
private TypeManager.TypeEntry
getTypeEntry(long typeId)
(package private) void
readConstants(long typeId, IDataInput input, int constantCount)
(package private) void
readEvent(long typeId, IDataInput input)
private void
resolveAnnotations(ChunkMetadata.AnnotatedElement ae)
(package private) void
resolveConstants()
-
-
-
Field Detail
-
STRUCT_TYPES
private final java.util.Map<java.lang.Long,StructContentType<java.lang.Object[]>> STRUCT_TYPES
-
otherTypes
private final FastAccessNumberMap<TypeManager.TypeEntry> otherTypes
-
eventTypes
private final FastAccessNumberMap<TypeManager.EventTypeEntry> eventTypes
-
header
private final ChunkStructure header
-
-
Constructor Detail
-
TypeManager
TypeManager(java.util.List<ChunkMetadata.ClassElement> classList, LoaderContext context, ChunkStructure header) throws InvalidJfrFileException, java.io.IOException
- Throws:
InvalidJfrFileException
java.io.IOException
-
-
Method Detail
-
readEvent
void readEvent(long typeId, IDataInput input) throws InvalidJfrFileException, java.io.IOException
- Throws:
InvalidJfrFileException
java.io.IOException
-
readConstants
void readConstants(long typeId, IDataInput input, int constantCount) throws InvalidJfrFileException, java.io.IOException
- Throws:
InvalidJfrFileException
java.io.IOException
-
resolveConstants
void resolveConstants() throws InvalidJfrFileException
- Throws:
InvalidJfrFileException
-
getTypeEntry
private TypeManager.TypeEntry getTypeEntry(long typeId) throws InvalidJfrFileException
- Throws:
InvalidJfrFileException
-
resolveAnnotations
private void resolveAnnotations(ChunkMetadata.AnnotatedElement ae) throws InvalidJfrFileException
- Throws:
InvalidJfrFileException
-
createFieldReader
private ValueReaders.IValueReader createFieldReader(ChunkMetadata.FieldElement f, java.lang.String valueType) throws InvalidJfrFileException
- Throws:
InvalidJfrFileException
-
buildLabel
private static java.lang.String buildLabel(java.lang.String id, ChunkMetadata.AnnotatedElement element)
-
-