Package com.darkcollective.relix.embed
Record Class ReferencePage
java.lang.Object
java.lang.Record
com.darkcollective.relix.embed.ReferencePage
- Record Components:
path- where the page sits in the reference, such asoperators/select.md; the argument toreferencePagecategory- the family it belongs to:operator,join,set,aggregate,predicate,literal,language,advancedorguidetitle- a short name, such asSelectionsymbol- how the construct is written, such asσorROLLING; for a page about no single construct, a key word for itsummary- one line saying what it is forkeys- every word the page can be looked up by, lower case except for glyphs: its symbol, its keyword spellings, its common names
public record ReferencePage(String path, String category, String title, String symbol, String summary, List<String> keys)
extends Record
One page of the language reference, as
Relix.referencePages() lists it.
The markdown itself is Relix.referencePage(String) of path(). The
other components are what a tool needs to find and list a page without reading it:
the words a user might look it up by, and a one-line summary.
- Since:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.keys()Returns the value of thekeysrecord component.path()Returns the value of thepathrecord component.summary()Returns the value of thesummaryrecord component.symbol()Returns the value of thesymbolrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
symbol
Returns the value of thesymbolrecord component.- Returns:
- the value of the
symbolrecord component
-
summary
Returns the value of thesummaryrecord component.- Returns:
- the value of the
summaryrecord component
-
keys
Returns the value of thekeysrecord component.- Returns:
- the value of the
keysrecord component
-