KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jfun > parsec > GetIndexParser


1 /**
2  *
3  */

4 package jfun.parsec;
5
6 final class GetIndexParser extends Parser<Integer JavaDoc> {
7   GetIndexParser(String JavaDoc n) {
8     super(n);
9   }
10
11   boolean apply(final ParseContext ctxt) {
12     ctxt.setReturn(new Integer JavaDoc(ctxt.getIndex()));
13     return true;
14   }
15 }
Popular Tags