Record Class XMQThemeStrings
java.lang.Object
java.lang.Record
org.libxmq.imp.XMQThemeStrings
- Record Components:
pre- string to inserted before the tokenpost- string to inserted after the token A color string object is stored for each type of token. It can store the ANSI color prefix, the html span etc. If post is NULL then when the token ends, the pre of the containing color will be reprinted. This is used for ansi codes where there is no stack memory (pop impossible) to the previous colors. I.e. pre = "\033[0;1;32m" which means reset;bold;green but post = NULL. For html/tex coloring we use the stack memory (pop possible) of tags. I.e. pre = "" post = "" I.e. pre = "{\color{red}" post = "}"
-
Constructor Summary
ConstructorsConstructorDescriptionXMQThemeStrings(String pre, String post) Creates an instance of aXMQThemeStringsrecord 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.post()Returns the value of thepostrecord component.pre()Returns the value of theprerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
XMQThemeStrings
-
-
Method Details
-
toString
-
hashCode
-
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). -
pre
-
post
-