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:
parent
21870c8afa
commit
c94fd719e7
|
@ -187,7 +187,7 @@ protected static class VariableParser {
|
||||||
* The token length
|
* The token length
|
||||||
* @return a new token
|
* @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);
|
return newToken(VariableParser.ESCAPED_VAR_TOKEN, aStartIndex, aLength);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -200,7 +200,7 @@ public static FieldPosition newEscapedVariableToken(int aStartIndex, int aLength
|
||||||
* The token length
|
* The token length
|
||||||
* @return a new token
|
* @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);
|
return newToken(VariableParser.TEXT_TOKEN, aStartIndex, aLength);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -220,7 +220,7 @@ private static FieldPosition newToken(int type, int beginIndex, int length) {
|
||||||
* The token length
|
* The token length
|
||||||
* @return a new token
|
* @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);
|
return newToken(VariableParser.VARIABLE_TOKEN, aStartIndex, aLength);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -259,7 +259,7 @@ public static FieldPosition newVariableToken(int aStartIndex, int aLength) {
|
||||||
* @param length
|
* @param length
|
||||||
* the length of the source data
|
* the length of the source data
|
||||||
*/
|
*/
|
||||||
public VariableParser(StrMatcher startMatcher, StrMatcher endMatcher,
|
protected VariableParser(StrMatcher startMatcher, StrMatcher endMatcher,
|
||||||
StrMatcher escMatcher, int startPos, int length) {
|
StrMatcher escMatcher, int startPos, int length) {
|
||||||
this.setVarStartMatcher(startMatcher);
|
this.setVarStartMatcher(startMatcher);
|
||||||
this.setVarEndMatcher(endMatcher);
|
this.setVarEndMatcher(endMatcher);
|
||||||
|
@ -348,7 +348,7 @@ private boolean hasNext() {
|
||||||
* the array with the source data
|
* the array with the source data
|
||||||
* @return the next token or <b>null</b> if the end is reached
|
* @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 (getTokenList().isEmpty()) {
|
||||||
if (!hasNext()) {
|
if (!hasNext()) {
|
||||||
// end of data is reached
|
// end of data is reached
|
||||||
|
|
Loading…
Reference in New Issue