java.lang.Object
java.lang.Record
org.aya.pretty.doc.Doc.EscapedText
- Enclosing interface:
Doc
Already escaped text, which will not be escaped by backend.
Callers should be responsible for escaping the text (like '\n').
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.pretty.doc.Doc
Doc.Cat, Doc.CodeBlock, Doc.Column, Doc.Empty, Doc.EscapedText, Doc.FlatAlt, Doc.HyperLinked, Doc.Image, Doc.InlineCode, Doc.Line, Doc.List, Doc.Nest, Doc.Nesting, Doc.PageWidth, Doc.PlainText, Doc.SpecialSymbol, Doc.Styled, Doc.Union -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionEscapedText(@NotNull String text) Creates an instance of aEscapedTextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull Stringtext()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.pretty.doc.Doc
asSeq, commonRender, debugRender, isEmpty, isNotEmpty, render, renderToAyaMd, renderToHtml, renderToHtml, renderToMd, renderToString, renderToString, renderToTerminal, renderToTerminal, renderToTeX, toDoc
-
Constructor Details
-
EscapedText
Creates an instance of aEscapedTextrecord class.- Parameters:
text- the value for thetextrecord component
-
-
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). -
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-