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 classTypeManager.EventTypeEntryprivate static classTypeManager.NopEventSinkprivate static classTypeManager.SkipFieldsEventSinkprivate classTypeManager.TypeEntryprivate classTypeManager.TypeIdentifierReader
-
Field Summary
Fields Modifier and Type Field Description private FastAccessNumberMap<TypeManager.EventTypeEntry>eventTypesprivate ChunkStructureheaderprivate FastAccessNumberMap<TypeManager.TypeEntry>otherTypesprivate 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.StringbuildLabel(java.lang.String id, ChunkMetadata.AnnotatedElement element)private ValueReaders.IValueReadercreateFieldReader(ChunkMetadata.FieldElement f, java.lang.String valueType)private TypeManager.TypeEntrygetTypeEntry(long typeId)(package private) voidreadConstants(long typeId, IDataInput input, int constantCount)(package private) voidreadEvent(long typeId, IDataInput input)private voidresolveAnnotations(ChunkMetadata.AnnotatedElement ae)(package private) voidresolveConstants()
-
-
-
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:
InvalidJfrFileExceptionjava.io.IOException
-
-
Method Detail
-
readEvent
void readEvent(long typeId, IDataInput input) throws InvalidJfrFileException, java.io.IOException- Throws:
InvalidJfrFileExceptionjava.io.IOException
-
readConstants
void readConstants(long typeId, IDataInput input, int constantCount) throws InvalidJfrFileException, java.io.IOException- Throws:
InvalidJfrFileExceptionjava.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)
-
-