forked from jasder/antlr
v4: Specify @Override
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9373]
This commit is contained in:
parent
9ce0968a5e
commit
8d92e55e49
|
@ -44,6 +44,7 @@ public class Parser extends BaseRecognizer {
|
||||||
super(input);
|
super(input);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void reset() {
|
public void reset() {
|
||||||
super.reset(); // reset all recognizer state variables
|
super.reset(); // reset all recognizer state variables
|
||||||
if ( _input !=null ) {
|
if ( _input !=null ) {
|
||||||
|
@ -71,6 +72,7 @@ public class Parser extends BaseRecognizer {
|
||||||
return (Token)super.match(ttype);
|
return (Token)super.match(ttype);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected Object getCurrentInputSymbol() {
|
protected Object getCurrentInputSymbol() {
|
||||||
return ((TokenStream)_input).LT(1);
|
return ((TokenStream)_input).LT(1);
|
||||||
}
|
}
|
||||||
|
@ -92,6 +94,7 @@ public class Parser extends BaseRecognizer {
|
||||||
return ((TokenStream)_input);
|
return ((TokenStream)_input);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getSourceName() {
|
public String getSourceName() {
|
||||||
return _input.getSourceName();
|
return _input.getSourceName();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue