mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-11 20:45:05 +00:00
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
|
||||
* @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
|
||||
|
Loading…
x
Reference in New Issue
Block a user