package node.setComponentNode; public class SetComponentSeqNode extends SetComponentNode { SetComponentNode head; SetComponentNode tail; public SetComponentSeqNode( SetComponentNode head, SetComponentNode tail ) { this.head = head; this.tail = tail; } public String toString() { return head.toString() + tail.toString(); } public boolean match( char c ) { return head.match( c ) || tail.match( c ); } }