Record Class RegexNode.LiteralNode
java.lang.Object
java.lang.Record
org.eu.autogex.regex.ast.RegexNode.LiteralNode
- Record Components:
symbol- The character symbol.
- All Implemented Interfaces:
RegexNode
- Enclosing interface:
RegexNode
-
Nested Class Summary
Nested classes/interfaces inherited from interface RegexNode
RegexNode.ConcatNode, RegexNode.LiteralNode, RegexNode.StarNode, RegexNode.UnionNode, RegexNode.Visitor<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(RegexNode.Visitor<T> visitor) Accepts a visitor to apply an operation on this node.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.charsymbol()Returns the value of thesymbolrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
LiteralNode
public LiteralNode(char symbol) Creates an instance of aLiteralNoderecord class.- Parameters:
symbol- the value for thesymbolrecord component
-
-
Method Details
-
accept
Description copied from interface:RegexNodeAccepts a visitor to apply an operation on this node. -
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 with thecomparemethod from their corresponding wrapper classes. -
symbol
-