/src/org/ooc/middle/walkers/Opportunist.java

http://github.com/nddrylliog/ooc · Java · 13 lines · 7 code · 3 blank · 3 comment · 0 complexity · aac68e57b26f6bd726fb62fd5bb22a49 MD5 · raw file

  1. package org.ooc.middle.walkers;
  2. import java.io.IOException;
  3. import org.ooc.frontend.model.Node;
  4. import org.ooc.frontend.model.NodeList;
  5. /**
  6. * @return false if you want to stop, true if you wanna continue.
  7. */
  8. public interface Opportunist<T> {
  9. public boolean take(T node, NodeList<Node> stack) throws IOException;
  10. }