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

pack-priv final Class ViewFile

extends Object
Class Inheritance
Imports
java.io.IOException, java.nio.charset.Charset, java.text.ParseException, java.util.ArrayList, .LinkedHashMap, .List, .Map, jdk.jfr.internal.util.Tokenizer

Represents a configuration file that holds a set up queries and their associated metadata, such as labels and descriptions.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static record

Field Summary

Modifier and TypeField and Description
private final List<ViewFile.ViewConfiguration>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private ViewFile.ViewConfiguration
createView(String fullName)

public static ViewFile
public List<ViewFile.ViewConfiguration>
private List<ViewFile.ViewConfiguration>
parse(String text)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

configurationsback to summary
private final List<ViewFile.ViewConfiguration> configurations

Constructor Detail

ViewFileback to summary
public ViewFile(String text) throws ParseException

Method Detail

createViewback to summary
private ViewFile.ViewConfiguration createView(String fullName)
getDefaultback to summary
public static ViewFile getDefault()
getViewConfigurationsback to summary
public List<ViewFile.ViewConfiguration> getViewConfigurations()
parseback to summary
private List<ViewFile.ViewConfiguration> parse(String text) throws ParseException
jdk.jfr.internal.query back to summary

pack-priv final Record ViewFile.ViewConfiguration

extends Record
Class Inheritance
Record Components
name:String 
category:String 
properties:Map<String, String> 

Field Summary

Modifier and TypeField and Description
private final String
category

Record Component accessed by category().

private final String
name

Record Component accessed by name().

private final Map<String, String>
properties

Record Component accessed by properties().

Constructor Summary

AccessConstructor and Description
pack-priv
ViewConfiguration(String name, String category, Map<String, String> properties)

Method Summary

Modifier and TypeMethod and Description
public String
category()

Record Component getter of category.

public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

private String
get(String key)

public String
public String
public String
public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public String
name()

Record Component getter of name.

public Map<String, String>
properties()

Record Component getter of properties.

public String
public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

categoryback to summary
private final String category

Record Component accessed by category().

nameback to summary
private final String name

Record Component accessed by name().

propertiesback to summary
private final Map<String, String> properties

Record Component accessed by properties().

Constructor Detail

ViewConfigurationback to summary
pack-priv ViewConfiguration(String name, String category, Map<String, String> properties)

Method Detail

categoryback to summary
public String category()

Record Component getter of category.

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
getback to summary
private String get(String key)
getFormback to summary
public String getForm()
getLabelback to summary
public String getLabel()
getTableback to summary
public String getTable()
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

nameback to summary
public String name()

Record Component getter of name.

propertiesback to summary
public Map<String, String> properties()

Record Component getter of properties.

queryback to summary
public String query()
toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.