APIdia Launch Partner
Top Description Inners Fields Constructors Methods
jdk.jfr.internal.consumer

pack-priv final Class ParserFactory

extends Object
Class Inheritance
Imports
java.io.IOException, java.util.ArrayList, .List, jdk.jfr.EventType, .ValueDescriptor, jdk.jfr.internal.LongMap, .MetadataDescriptor, .PrivateAccess, .Type

Class that create parsers suitable for reading events and constant pools

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class

Field Summary

Modifier and TypeField and Description
private final LongMap<ConstantLookup>
private final LongMap<Parser>
private final TimeConverter
private final LongMap<Type>

Constructor Summary

AccessConstructor and Description
public
ParserFactory(MetadataDescriptor metadata, LongMap<ConstantLookup> constantLookups, TimeConverter timeConverter)

Method Summary

Modifier and TypeMethod and Description
private CompositeParser
createCompositeParser(Type type, boolean event)

private EventParser
private Parser
createParser(ValueDescriptor v, boolean event)

private Parser
createPrimitiveParser(Type type, boolean event)

public LongMap<Parser>
public LongMap<Type>
private Parser
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

constantLookupsback to summary
private final LongMap<ConstantLookup> constantLookups
parsersback to summary
private final LongMap<Parser> parsers
timeConverterback to summary
private final TimeConverter timeConverter
typesback to summary
private final LongMap<Type> types

Constructor Detail

ParserFactoryback to summary
public ParserFactory(MetadataDescriptor metadata, LongMap<ConstantLookup> constantLookups, TimeConverter timeConverter) throws IOException

Method Detail

createCompositeParserback to summary
private CompositeParser createCompositeParser(Type type, boolean event) throws IOException
createEventParserback to summary
private EventParser createEventParser(EventType eventType) throws IOException
createParserback to summary
private Parser createParser(ValueDescriptor v, boolean event) throws IOException
createPrimitiveParserback to summary
private Parser createPrimitiveParser(Type type, boolean event) throws IOException
getParsersback to summary
public LongMap<Parser> getParsers()
getTypeMapback to summary
public LongMap<Type> getTypeMap()
registerParserTypeback to summary
private Parser registerParserType(Type t, Parser parser)
jdk.jfr.internal.consumer back to summary

private final Class ParserFactory.ArrayParser

extends Parser
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Parser

Constructor Summary

AccessConstructor and Description
public
ArrayParser(Parser elementParser)

Method Summary

Modifier and TypeMethod and Description
public Object
parse(RecordingInput input)

Implements abstract jdk.jfr.internal.consumer.Parser.parse.

Parses data from a RecordingInput and return an object.

public Object
parseReferences(RecordingInput input)

Overrides jdk.jfr.internal.consumer.Parser.parseReferences.

Parses data from a RecordingInput to find references to constants.

public void
skip(RecordingInput input)

Implements abstract jdk.jfr.internal.consumer.Parser.skip.

Skips data that would usually be by parsed the parse(RecordingInput) method.

Field Detail

elementParserback to summary
private final Parser elementParser

Constructor Detail

ArrayParserback to summary
public ArrayParser(Parser elementParser)

Method Detail

parseback to summary
public Object parse(RecordingInput input) throws IOException

Implements abstract jdk.jfr.internal.consumer.Parser.parse.

Doc from jdk.jfr.internal.consumer.Parser.parse.

Parses data from a RecordingInput and return an object.

Annotations
@Override
Exceptions
IOException:
if operation couldn't be completed due to I/O problems
parseReferencesback to summary
public Object parseReferences(RecordingInput input) throws IOException

Overrides jdk.jfr.internal.consumer.Parser.parseReferences.

Doc from jdk.jfr.internal.consumer.Parser.parseReferences.

Parses data from a RecordingInput to find references to constants. If data is not a reference, null is returned.

Annotations
@Override
Exceptions
IOException:
if operation couldn't be completed due to I/O problems
skipback to summary
public void skip(RecordingInput input) throws IOException

Implements abstract jdk.jfr.internal.consumer.Parser.skip.

Doc from jdk.jfr.internal.consumer.Parser.skip.

Skips data that would usually be by parsed the parse(RecordingInput) method.

Annotations
@Override
Exceptions
IOException:
if operation couldn't be completed due to I/O problems
jdk.jfr.internal.consumer back to summary

private final Class ParserFactory.BooleanParser

extends Parser
Class Inheritance

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Object
parse(RecordingInput input)

Implements abstract jdk.jfr.internal.consumer.Parser.parse.

Parses data from a RecordingInput and return an object.

public void
skip(RecordingInput input)

Implements abstract jdk.jfr.internal.consumer.Parser.skip.

Skips data that would usually be by parsed the parse(RecordingInput) method.

Inherited from jdk.jfr.internal.consumer.Parser:
parseReferences

Constructor Detail

BooleanParserback to summary
private BooleanParser()

Method Detail

parseback to summary
public Object parse(RecordingInput input) throws IOException

Implements abstract jdk.jfr.internal.consumer.Parser.parse.

Doc from jdk.jfr.internal.consumer.Parser.parse.

Parses data from a RecordingInput and return an object.

Annotations
@Override
Exceptions
IOException:
if operation couldn't be completed due to I/O problems
skipback to summary
public void skip(RecordingInput input) throws IOException

Implements abstract jdk.jfr.internal.consumer.Parser.skip.

Doc from jdk.jfr.internal.consumer.Parser.skip.

Skips data that would usually be by parsed the parse(RecordingInput) method.

Annotations
@Override
Exceptions
IOException:
if operation couldn't be completed due to I/O problems
jdk.jfr.internal.consumer back to summary

private final Class ParserFactory.ByteParser

extends Parser
Class Inheritance

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Object
parse(RecordingInput input)

Implements abstract jdk.jfr.internal.consumer.Parser.parse.

Parses data from a RecordingInput and return an object.

public void
skip(RecordingInput input)

Implements abstract jdk.jfr.internal.consumer.Parser.skip.

Skips data that would usually be by parsed the parse(RecordingInput) method.

Inherited from jdk.jfr.internal.consumer.Parser:
parseReferences

Constructor Detail

ByteParserback to summary
private ByteParser()

Method Detail

parseback to summary
public Object parse(RecordingInput input) throws IOException

Implements abstract jdk.jfr.internal.consumer.Parser.parse.

Doc from jdk.jfr.internal.consumer.Parser.parse.

Parses data from a RecordingInput and return an object.

Annotations
@Override
Exceptions
IOException:
if operation couldn't be completed due to I/O problems
skipback to summary
public void skip(RecordingInput input) throws IOException

Implements abstract jdk.jfr.internal.consumer.Parser.skip.

Doc from jdk.jfr.internal.consumer.Parser.skip.

Skips data that would usually be by parsed the parse(RecordingInput) method.

Annotations
@Override
Exceptions
IOException:
if operation couldn't be completed due to I/O problems
jdk.jfr.internal.consumer back to summary

private final Class ParserFactory.CharacterParser

extends Parser
Class Inheritance

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Object
parse(RecordingInput input)

Implements abstract jdk.jfr.internal.consumer.Parser.parse.

Parses data from a RecordingInput and return an object.

public void
skip(RecordingInput input)

Implements abstract jdk.jfr.internal.consumer.Parser.skip.

Skips data that would usually be by parsed the parse(RecordingInput) method.

Inherited from jdk.jfr.internal.consumer.Parser:
parseReferences

Constructor Detail

CharacterParserback to summary
private CharacterParser()

Method Detail

parseback to summary
public Object parse(RecordingInput input) throws IOException

Implements abstract jdk.jfr.internal.consumer.Parser.parse.

Doc from jdk.jfr.internal.consumer.Parser.parse.

Parses data from a RecordingInput and return an object.

Annotations
@Override
Exceptions
IOException:
if operation couldn't be completed due to I/O problems
skipback to summary
public void skip(RecordingInput input) throws IOException

Implements abstract jdk.jfr.internal.consumer.Parser.skip.

Doc from jdk.jfr.internal.consumer.Parser.skip.

Skips data that would usually be by parsed the parse(RecordingInput) method.

Annotations
@Override
Exceptions
IOException:
if operation couldn't be completed due to I/O problems
jdk.jfr.internal.consumer back to summary

private final Class ParserFactory.ConstantValueParser

extends Parser
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final ConstantLookup

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Object
parse(RecordingInput input)

Implements abstract jdk.jfr.internal.consumer.Parser.parse.

Parses data from a RecordingInput and return an object.

public Object
parseReferences(RecordingInput input)

Overrides jdk.jfr.internal.consumer.Parser.parseReferences.

Parses data from a RecordingInput to find references to constants.

public void
skip(RecordingInput input)

Implements abstract jdk.jfr.internal.consumer.Parser.skip.

Skips data that would usually be by parsed the parse(RecordingInput) method.

Field Detail

lookupback to summary
private final ConstantLookup lookup

Constructor Detail

ConstantValueParserback to summary
pack-priv ConstantValueParser(ConstantLookup lookup)

Method Detail

parseback to summary
public Object parse(RecordingInput input) throws IOException

Implements abstract jdk.jfr.internal.consumer.Parser.parse.

Doc from jdk.jfr.internal.consumer.Parser.parse.

Parses data from a RecordingInput and return an object.

Annotations
@Override
Exceptions
IOException:
if operation couldn't be completed due to I/O problems
parseReferencesback to summary
public Object parseReferences(RecordingInput input) throws IOException

Overrides jdk.jfr.internal.consumer.Parser.parseReferences.

Doc from jdk.jfr.internal.consumer.Parser.parseReferences.

Parses data from a RecordingInput to find references to constants. If data is not a reference, null is returned.

Annotations
@Override
Exceptions
IOException:
if operation couldn't be completed due to I/O problems
skipback to summary
public void skip(RecordingInput input) throws IOException

Implements abstract jdk.jfr.internal.consumer.Parser.skip.

Doc from jdk.jfr.internal.consumer.Parser.skip.

Skips data that would usually be by parsed the parse(RecordingInput) method.

Annotations
@Override
Exceptions
IOException:
if operation couldn't be completed due to I/O problems
jdk.jfr.internal.consumer back to summary

private final Class ParserFactory.DoubleParser

extends Parser
Class Inheritance

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Object
parse(RecordingInput input)

Implements abstract jdk.jfr.internal.consumer.Parser.parse.

Parses data from a RecordingInput and return an object.

public void
skip(RecordingInput input)

Implements abstract jdk.jfr.internal.consumer.Parser.skip.

Skips data that would usually be by parsed the parse(RecordingInput) method.

Inherited from jdk.jfr.internal.consumer.Parser:
parseReferences

Constructor Detail

DoubleParserback to summary
private DoubleParser()

Method Detail

parseback to summary
public Object parse(RecordingInput input) throws IOException

Implements abstract jdk.jfr.internal.consumer.Parser.parse.

Doc from jdk.jfr.internal.consumer.Parser.parse.

Parses data from a RecordingInput and return an object.

Annotations
@Override
Exceptions
IOException:
if operation couldn't be completed due to I/O problems
skipback to summary
public void skip(RecordingInput input) throws IOException

Implements abstract jdk.jfr.internal.consumer.Parser.skip.

Doc from jdk.jfr.internal.consumer.Parser.skip.

Skips data that would usually be by parsed the parse(RecordingInput) method.

Annotations
@Override
Exceptions
IOException:
if operation couldn't be completed due to I/O problems
jdk.jfr.internal.consumer back to summary

private final Class ParserFactory.EventValueConstantParser

extends Parser
Class Inheritance

Field Summary

Modifier and TypeField and Description
private long
private long
private Object
private Object
private final ConstantLookup

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Object
parse(RecordingInput input)

Implements abstract jdk.jfr.internal.consumer.Parser.parse.

Parses data from a RecordingInput and return an object.

public Object
parseReferences(RecordingInput input)

Overrides jdk.jfr.internal.consumer.Parser.parseReferences.

Parses data from a RecordingInput to find references to constants.

public void
skip(RecordingInput input)

Implements abstract jdk.jfr.internal.consumer.Parser.skip.

Skips data that would usually be by parsed the parse(RecordingInput) method.

Field Detail

lastKeyback to summary
private long lastKey
lastReferenceKeyback to summary
private long lastReferenceKey
lastReferenceValueback to summary
private Object lastReferenceValue
lastValueback to summary
private Object lastValue
lookupback to summary
private final ConstantLookup lookup

Constructor Detail

EventValueConstantParserback to summary
pack-priv EventValueConstantParser(ConstantLookup lookup)

Method Detail

parseback to summary
public Object parse(RecordingInput input) throws IOException

Implements abstract jdk.jfr.internal.consumer.Parser.parse.

Doc from jdk.jfr.internal.consumer.Parser.parse.

Parses data from a RecordingInput and return an object.

Annotations
@Override
Exceptions
IOException:
if operation couldn't be completed due to I/O problems
parseReferencesback to summary
public Object parseReferences(RecordingInput input) throws IOException

Overrides jdk.jfr.internal.consumer.Parser.parseReferences.

Doc from jdk.jfr.internal.consumer.Parser.parseReferences.

Parses data from a RecordingInput to find references to constants. If data is not a reference, null is returned.

Annotations
@Override
Exceptions
IOException:
if operation couldn't be completed due to I/O problems
skipback to summary
public void skip(RecordingInput input) throws IOException

Implements abstract jdk.jfr.internal.consumer.Parser.skip.

Doc from jdk.jfr.internal.consumer.Parser.skip.

Skips data that would usually be by parsed the parse(RecordingInput) method.

Annotations
@Override
Exceptions
IOException:
if operation couldn't be completed due to I/O problems
jdk.jfr.internal.consumer back to summary

private final Class ParserFactory.FloatParser

extends Parser
Class Inheritance

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Object
parse(RecordingInput input)

Implements abstract jdk.jfr.internal.consumer.Parser.parse.

Parses data from a RecordingInput and return an object.

public void
skip(RecordingInput input)

Implements abstract jdk.jfr.internal.consumer.Parser.skip.

Skips data that would usually be by parsed the parse(RecordingInput) method.

Inherited from jdk.jfr.internal.consumer.Parser:
parseReferences

Constructor Detail

FloatParserback to summary
private FloatParser()

Method Detail

parseback to summary
public Object parse(RecordingInput input) throws IOException

Implements abstract jdk.jfr.internal.consumer.Parser.parse.

Doc from jdk.jfr.internal.consumer.Parser.parse.

Parses data from a RecordingInput and return an object.

Annotations
@Override
Exceptions
IOException:
if operation couldn't be completed due to I/O problems
skipback to summary
public void skip(RecordingInput input) throws IOException

Implements abstract jdk.jfr.internal.consumer.Parser.skip.

Doc from jdk.jfr.internal.consumer.Parser.skip.

Skips data that would usually be by parsed the parse(RecordingInput) method.

Annotations
@Override
Exceptions
IOException:
if operation couldn't be completed due to I/O problems
jdk.jfr.internal.consumer back to summary

private final Class ParserFactory.IntegerParser

extends Parser
Class Inheritance

Field Summary

Modifier and TypeField and Description
private int
private Integer

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Object
parse(RecordingInput input)

Implements abstract jdk.jfr.internal.consumer.Parser.parse.

Parses data from a RecordingInput and return an object.

public void
skip(RecordingInput input)

Implements abstract jdk.jfr.internal.consumer.Parser.skip.

Skips data that would usually be by parsed the parse(RecordingInput) method.

Inherited from jdk.jfr.internal.consumer.Parser:
parseReferences

Field Detail

lastback to summary
private int last
lastIntegergObjectback to summary
private Integer lastIntegergObject

Constructor Detail

IntegerParserback to summary
private IntegerParser()

Method Detail

parseback to summary
public Object parse(RecordingInput input) throws IOException

Implements abstract jdk.jfr.internal.consumer.Parser.parse.

Doc from jdk.jfr.internal.consumer.Parser.parse.

Parses data from a RecordingInput and return an object.

Annotations
@Override
Exceptions
IOException:
if operation couldn't be completed due to I/O problems
skipback to summary
public void skip(RecordingInput input) throws IOException

Implements abstract jdk.jfr.internal.consumer.Parser.skip.

Doc from jdk.jfr.internal.consumer.Parser.skip.

Skips data that would usually be by parsed the parse(RecordingInput) method.

Annotations
@Override
Exceptions
IOException:
if operation couldn't be completed due to I/O problems
jdk.jfr.internal.consumer back to summary

private final Class ParserFactory.LongParser

extends Parser
Class Inheritance

Field Summary

Modifier and TypeField and Description
private long
private Object

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Object
parse(RecordingInput input)

Implements abstract jdk.jfr.internal.consumer.Parser.parse.

Parses data from a RecordingInput and return an object.

public void
skip(RecordingInput input)

Implements abstract jdk.jfr.internal.consumer.Parser.skip.

Skips data that would usually be by parsed the parse(RecordingInput) method.

Inherited from jdk.jfr.internal.consumer.Parser:
parseReferences

Field Detail

lastback to summary
private long last
lastLongObjectback to summary
private Object lastLongObject

Constructor Detail

LongParserback to summary
private LongParser()

Method Detail

parseback to summary
public Object parse(RecordingInput input) throws IOException

Implements abstract jdk.jfr.internal.consumer.Parser.parse.

Doc from jdk.jfr.internal.consumer.Parser.parse.

Parses data from a RecordingInput and return an object.

Annotations
@Override
Exceptions
IOException:
if operation couldn't be completed due to I/O problems
skipback to summary
public void skip(RecordingInput input) throws IOException

Implements abstract jdk.jfr.internal.consumer.Parser.skip.

Doc from jdk.jfr.internal.consumer.Parser.skip.

Skips data that would usually be by parsed the parse(RecordingInput) method.

Annotations
@Override
Exceptions
IOException:
if operation couldn't be completed due to I/O problems
jdk.jfr.internal.consumer back to summary

private final Class ParserFactory.ShortParser

extends Parser
Class Inheritance

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Object
parse(RecordingInput input)

Implements abstract jdk.jfr.internal.consumer.Parser.parse.

Parses data from a RecordingInput and return an object.

public void
skip(RecordingInput input)

Implements abstract jdk.jfr.internal.consumer.Parser.skip.

Skips data that would usually be by parsed the parse(RecordingInput) method.

Inherited from jdk.jfr.internal.consumer.Parser:
parseReferences

Constructor Detail

ShortParserback to summary
private ShortParser()

Method Detail

parseback to summary
public Object parse(RecordingInput input) throws IOException

Implements abstract jdk.jfr.internal.consumer.Parser.parse.

Doc from jdk.jfr.internal.consumer.Parser.parse.

Parses data from a RecordingInput and return an object.

Annotations
@Override
Exceptions
IOException:
if operation couldn't be completed due to I/O problems
skipback to summary
public void skip(RecordingInput input) throws IOException

Implements abstract jdk.jfr.internal.consumer.Parser.skip.

Doc from jdk.jfr.internal.consumer.Parser.skip.

Skips data that would usually be by parsed the parse(RecordingInput) method.

Annotations
@Override
Exceptions
IOException:
if operation couldn't be completed due to I/O problems