PageRenderTime 42ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/lib/antlr-2.7.5/antlr/collections/List.java

http://github.com/bamboo/boo
Java | 28 lines | 11 code | 8 blank | 9 comment | 0 complexity | 772dcb47238c443e5534694a5684af6b MD5 | raw file
Possible License(s): GPL-2.0
  1. package antlr.collections;
  2. /* ANTLR Translator Generator
  3. * Project led by Terence Parr at http://www.jGuru.com
  4. * Software rights: http://www.antlr.org/license.html
  5. *
  6. * $Id: //depot/code/org.antlr/release/antlr-2.7.5/antlr/collections/List.java#1 $
  7. */
  8. import java.util.Enumeration;
  9. import java.util.NoSuchElementException;
  10. /**A simple List interface that describes operations
  11. * on a list.
  12. */
  13. public interface List {
  14. public void add(Object o); // can insert at head or append.
  15. public void append(Object o);
  16. public Object elementAt(int index) throws NoSuchElementException;
  17. public Enumeration elements();
  18. public boolean includes(Object o);
  19. public int length();
  20. }