Update GenericToken specialToken method to obtain only comment tokens
This commit is contained in:
@ -16,11 +16,11 @@ public interface GenericToken {
|
||||
GenericToken getNext();
|
||||
|
||||
/**
|
||||
* Obtain a special generic token which, according to the input stream which generated the instance of this token,
|
||||
* Obtain a comment-type token which, according to the input stream which generated the instance of this token,
|
||||
* precedes this instance token and succeeds the previous generic token (if there is any).
|
||||
* @return the special token if it exists; null if it does not exist
|
||||
* @return the comment-type token if it exists; null if it does not exist
|
||||
*/
|
||||
GenericToken getPreviousSpecialGenericToken();
|
||||
GenericToken getPreviousComment();
|
||||
|
||||
/**
|
||||
* Gets the token's text.
|
||||
|
@ -59,7 +59,7 @@ public class Token implements GenericToken, java.io.Serializable]]></replacevalu
|
||||
}
|
||||
|
||||
@Override
|
||||
public GenericToken getPreviousSpecialGenericToken() {
|
||||
public GenericToken getPreviousComment() {
|
||||
return specialToken;
|
||||
}
|
||||
|
||||
|
@ -101,7 +101,7 @@ public class Token implements GenericToken, java.io.Serializable]]></replacevalu
|
||||
}
|
||||
|
||||
@Override
|
||||
public GenericToken getPreviousSpecialGenericToken() {
|
||||
public GenericToken getPreviousComment() {
|
||||
return specialToken;
|
||||
}
|
||||
|
||||
|
@ -59,7 +59,7 @@ public class Token implements GenericToken, java.io.Serializable]]></replacevalu
|
||||
}
|
||||
|
||||
@Override
|
||||
public GenericToken getPreviousSpecialGenericToken() {
|
||||
public GenericToken getPreviousComment() {
|
||||
return specialToken;
|
||||
}
|
||||
|
||||
|
@ -79,7 +79,7 @@ public class Token implements GenericToken, java.io.Serializable]]></replacevalu
|
||||
}
|
||||
|
||||
@Override
|
||||
public GenericToken getPreviousSpecialGenericToken() {
|
||||
public GenericToken getPreviousComment() {
|
||||
return specialToken;
|
||||
}
|
||||
|
||||
|
@ -59,7 +59,7 @@ public class Token implements GenericToken, java.io.Serializable]]></replacevalu
|
||||
}
|
||||
|
||||
@Override
|
||||
public GenericToken getPreviousSpecialGenericToken() {
|
||||
public GenericToken getPreviousComment() {
|
||||
return specialToken;
|
||||
}
|
||||
|
||||
|
@ -59,7 +59,7 @@ public class Token implements GenericToken, java.io.Serializable]]></replacevalu
|
||||
}
|
||||
|
||||
@Override
|
||||
public GenericToken getPreviousSpecialGenericToken() {
|
||||
public GenericToken getPreviousComment() {
|
||||
return specialToken;
|
||||
}
|
||||
|
||||
|
@ -96,7 +96,7 @@ public class Token implements GenericToken, java.io.Serializable]]></replacevalu
|
||||
}
|
||||
|
||||
@Override
|
||||
public GenericToken getPreviousSpecialGenericToken() {
|
||||
public GenericToken getPreviousComment() {
|
||||
return specialToken;
|
||||
}
|
||||
|
||||
|
@ -59,7 +59,7 @@ public class Token implements GenericToken, java.io.Serializable]]></replacevalu
|
||||
}
|
||||
|
||||
@Override
|
||||
public GenericToken getPreviousSpecialGenericToken() {
|
||||
public GenericToken getPreviousComment() {
|
||||
return specialToken;
|
||||
}
|
||||
|
||||
|
@ -79,7 +79,7 @@ public class Token implements GenericToken, java.io.Serializable]]></replacevalu
|
||||
}
|
||||
|
||||
@Override
|
||||
public GenericToken getPreviousSpecialGenericToken() {
|
||||
public GenericToken getPreviousComment() {
|
||||
return specialToken;
|
||||
}
|
||||
|
||||
|
@ -92,7 +92,7 @@ public class Token implements GenericToken, java.io.Serializable]]></replacevalu
|
||||
}
|
||||
|
||||
@Override
|
||||
public GenericToken getPreviousSpecialGenericToken() {
|
||||
public GenericToken getPreviousComment() {
|
||||
return specialToken;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user