Package net.sourceforge.pmd.lang.antlr
Class AntlrTokenManager
- java.lang.Object
-
- net.sourceforge.pmd.lang.antlr.AntlrTokenManager
-
- All Implemented Interfaces:
TokenManager
public class AntlrTokenManager extends Object implements TokenManager
Generic token manager implementation for all Antlr lexers.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AntlrTokenManager.ANTLRSyntaxError
Deprecated.On 7.0.x branch this has been replaced byTokenMgrError
already
-
Constructor Summary
Constructors Constructor Description AntlrTokenManager(org.antlr.v4.runtime.Lexer lexer, String fileName)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFileName()
Object
getNextToken()
void
setFileName(String fileName)
-
-
-
Constructor Detail
-
AntlrTokenManager
public AntlrTokenManager(org.antlr.v4.runtime.Lexer lexer, String fileName)
Constructor- Parameters:
lexer
- The lexerfileName
- The file name
-
-
Method Detail
-
getNextToken
public Object getNextToken()
- Specified by:
getNextToken
in interfaceTokenManager
-
setFileName
public void setFileName(String fileName)
- Specified by:
setFileName
in interfaceTokenManager
-
getFileName
public String getFileName()
-
-