private int getLineNumber(StreamTokenizer tokeniser, Reader in) {
        int line = tokeniser.lineno();
        if (tokeniser.ttype == StreamTokenizer.TT_EOL) {
            line -= 1;
        }
        if (in instanceof UnfoldingReader) {
            // need to take unfolded lines into account
            final int unfolded = ((UnfoldingReader) in).getLinesUnfolded();
            line += unfolded;
        }
        return line;
    }
private int getLineNumber ( StreamTokenizer tokeniser , Reader in ) { int line = tokeniser . lineno ( ) ; if ( tokeniser . ttype == StreamTokenizer . TT_EOL ) { line -= 1 ; } if ( in instanceof UnfoldingReader ) { final int unfolded = ( ( UnfoldingReader ) in ) . getLinesUnfolded ( ) ; line += unfolded ; } return line ; }
@param tokeniser
@param in
@return int value of the ttype field of the tokeniser