Example usage for org.eclipse.jdt.core.compiler ITerminalSymbols TokenNameDOT

List of usage examples for org.eclipse.jdt.core.compiler ITerminalSymbols TokenNameDOT

Introduction

In this page you can find the example usage for org.eclipse.jdt.core.compiler ITerminalSymbols TokenNameDOT.

Prototype

int TokenNameDOT

To view the source code for org.eclipse.jdt.core.compiler ITerminalSymbols TokenNameDOT.

Click Source Link

Usage

From source file:org.j2eespider.util.AnnotationUtil.java

License:Open Source License

private static int readName(IScanner scanner, StringBuffer buf) throws InvalidInputException {
    int tok = scanner.getNextToken();
    while (tok == ITerminalSymbols.TokenNameIdentifier) {
        buf.append(scanner.getCurrentTokenSource());
        tok = scanner.getNextToken();/*from   www.  j a  va2 s  .  c  o m*/
        if (tok != ITerminalSymbols.TokenNameDOT) {
            return tok;
        }
        buf.append('.');
        tok = scanner.getNextToken();
    }
    return tok;
}