1 /* |
1 /* |
2 * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
57 /** Buffer of saved tokens (used during lookahead) |
57 /** Buffer of saved tokens (used during lookahead) |
58 */ |
58 */ |
59 private List<Token> savedTokens = new ArrayList<Token>(); |
59 private List<Token> savedTokens = new ArrayList<Token>(); |
60 |
60 |
61 private JavaTokenizer tokenizer; |
61 private JavaTokenizer tokenizer; |
|
62 |
62 /** |
63 /** |
63 * Create a scanner from the input array. This method might |
64 * Create a scanner from the input array. This method might |
64 * modify the array. To avoid copying the input array, ensure |
65 * modify the array. To avoid copying the input array, ensure |
65 * that {@code inputLength < input.length} or |
66 * that {@code inputLength < input.length} or |
66 * {@code input[input.length -1]} is a white space character. |
67 * {@code input[input.length -1]} is a white space character. |