File: JavaParser.java

package info (click to toggle)
doctorj 5.0.0-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 6,156 kB
  • ctags: 3,454
  • sloc: java: 30,027; xml: 331; makefile: 82; sh: 61
file content (27 lines) | stat: -rw-r--r-- 607 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package org.incava.java;

import java.io.*;
import java.util.*;

public interface JavaParser
{
    public Token getToken(int n);

    /**
     * Returns t.kind, essentially, except that it accounts for the difference
     * between the 1.3 and 1.4 grammars and lists of constants. That is, for
     * 1.3, the "assert" constant is accounted for.
     */
    public int getTokenKind(Token t);

    /**
     * Returns the compilation unit.
     */
    public ASTCompilationUnit CompilationUnit() throws ParseException;

    /**
     * Resets the parser.
     */
    public void ReInit(InputStream stream);

}