Reduce scope from public to protected in parser

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@419726 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stephen Colebourne 2006-07-06 22:18:31 +00:00
parent 21870c8afa
commit c94fd719e7
1 changed files with 5 additions and 5 deletions

View File

@ -187,7 +187,7 @@ protected static class VariableParser {
* The token length
* @return a new token
*/
public static FieldPosition newEscapedVariableToken(int aStartIndex, int aLength) {
protected static FieldPosition newEscapedVariableToken(int aStartIndex, int aLength) {
return newToken(VariableParser.ESCAPED_VAR_TOKEN, aStartIndex, aLength);
}
@ -200,7 +200,7 @@ public static FieldPosition newEscapedVariableToken(int aStartIndex, int aLength
* The token length
* @return a new token
*/
public static FieldPosition newTextToken(int aStartIndex, int aLength) {
protected static FieldPosition newTextToken(int aStartIndex, int aLength) {
return newToken(VariableParser.TEXT_TOKEN, aStartIndex, aLength);
}
@ -220,7 +220,7 @@ private static FieldPosition newToken(int type, int beginIndex, int length) {
* The token length
* @return a new token
*/
public static FieldPosition newVariableToken(int aStartIndex, int aLength) {
protected static FieldPosition newVariableToken(int aStartIndex, int aLength) {
return newToken(VariableParser.VARIABLE_TOKEN, aStartIndex, aLength);
}
@ -259,7 +259,7 @@ public static FieldPosition newVariableToken(int aStartIndex, int aLength) {
* @param length
* the length of the source data
*/
public VariableParser(StrMatcher startMatcher, StrMatcher endMatcher,
protected VariableParser(StrMatcher startMatcher, StrMatcher endMatcher,
StrMatcher escMatcher, int startPos, int length) {
this.setVarStartMatcher(startMatcher);
this.setVarEndMatcher(endMatcher);
@ -348,7 +348,7 @@ private boolean hasNext() {
* the array with the source data
* @return the next token or <b>null</b> if the end is reached
*/
public FieldPosition nextToken(char[] data) {
protected FieldPosition nextToken(char[] data) {
if (getTokenList().isEmpty()) {
if (!hasNext()) {
// end of data is reached