package org.nwapw.abacus.lexing.pattern; import java.util.ArrayList; import java.util.Collection; /** * A node that is used as structural glue in pattern compilation. * @param the type that's used to tell which pattern this node belongs to. */ public class LinkNode extends PatternNode { @Override public void addInto(Collection> into) { if(!into.contains(this)) { into.add(this); addOutputsInto(into); } } }