58 lines
927 B
Java
58 lines
927 B
Java
package de.dhbwstuttgart.parser;
|
|
|
|
import org.antlr.v4.runtime.CharStream;
|
|
import org.antlr.v4.runtime.Token;
|
|
import org.antlr.v4.runtime.TokenSource;
|
|
|
|
public class NullToken implements Token {
|
|
@Override
|
|
public String getText() {
|
|
return "";
|
|
}
|
|
|
|
@Override
|
|
public int getType() {
|
|
return 0;
|
|
}
|
|
|
|
@Override
|
|
public int getLine() {
|
|
return 0;
|
|
}
|
|
|
|
@Override
|
|
public int getCharPositionInLine() {
|
|
return 0;
|
|
}
|
|
|
|
@Override
|
|
public int getChannel() {
|
|
return 0;
|
|
}
|
|
|
|
@Override
|
|
public int getTokenIndex() {
|
|
return 0;
|
|
}
|
|
|
|
@Override
|
|
public int getStartIndex() {
|
|
return 0;
|
|
}
|
|
|
|
@Override
|
|
public int getStopIndex() {
|
|
return 0;
|
|
}
|
|
|
|
@Override
|
|
public TokenSource getTokenSource() {
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public CharStream getInputStream() {
|
|
return null;
|
|
}
|
|
}
|