Record Class RegexNode.CharClassNode
java.lang.Object
java.lang.Record
org.eu.autogex.regex.ast.RegexNode.CharClassNode
- Record Components:
chars- The set of permitted characters.
- All Implemented Interfaces:
RegexNode
- Enclosing interface:
RegexNode
-
Nested Class Summary
Nested classes/interfaces inherited from interface RegexNode
RegexNode.CharClassNode, RegexNode.ConcatNode, RegexNode.LiteralNode, RegexNode.OptionalNode, RegexNode.PlusNode, RegexNode.StarNode, RegexNode.UnionNode, RegexNode.Visitor<T>, RegexNode.WildcardNode -
Constructor Summary
ConstructorsConstructorDescriptionCharClassNode(Set<Character> chars) Creates an instance of aCharClassNoderecord class. -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(RegexNode.Visitor<T> visitor) Accepts a visitor to apply an operation on this node.chars()Returns the value of thecharsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.
-
Constructor Details
-
CharClassNode
-
-
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 withObjects::equals(Object,Object). -
chars
-