1 11 12 package org.eclipse.jdt.core.compiler; 13 14 import org.eclipse.jdt.core.compiler.InvalidInputException; 15 16 33 public interface IScanner { 34 35 43 char[] getCurrentTokenSource(); 44 45 54 char[] getRawTokenSource(); 55 56 64 int getCurrentTokenStartPosition(); 65 66 74 int getCurrentTokenEndPosition(); 75 76 85 int getLineStart(int lineNumber); 86 87 97 int getLineEnd(int lineNumber); 98 99 106 int[] getLineEnds(); 107 108 115 int getLineNumber(int charPosition); 116 117 125 int getNextToken() throws InvalidInputException; 126 127 132 char[] getSource(); 133 134 141 void resetTo(int startPosition, int endPosition); 142 143 150 void setSource(char[] source); 151 } 152 | Popular Tags |