Public Member Functions | Static Public Attributes | Protected Member Functions

antlr.preprocessor.Preprocessor Class Reference

Inheritance diagram for antlr.preprocessor.Preprocessor:
antlr.LLkParser antlr.preprocessor.PreprocessorTokenTypes antlr.Parser

List of all members.

Public Member Functions

void setTool (antlr.Tool tool)
void reportError (String s)
void reportError (RecognitionException e)
void reportWarning (String s)
 Preprocessor (TokenBuffer tokenBuf)
 Preprocessor (TokenStream lexer)
 Preprocessor (ParserSharedInputState state)
final void grammarFile (Hierarchy hier, String file) throws RecognitionException, TokenStreamException
final IndexedVector optionSpec (Grammar gr) throws RecognitionException, TokenStreamException
final Grammar class_def (String file, Hierarchy hier) throws RecognitionException, TokenStreamException
final String superClass () throws RecognitionException, TokenStreamException
final void rule (Grammar gr) throws RecognitionException, TokenStreamException
final String throwsSpec () throws RecognitionException, TokenStreamException
final String exceptionGroup () throws RecognitionException, TokenStreamException
final String exceptionSpec () throws RecognitionException, TokenStreamException
final String exceptionHandler () throws RecognitionException, TokenStreamException

Static Public Attributes

static final String[] _tokenNames
static final BitSet _tokenSet_0 = new BitSet(mk_tokenSet_0())
static final BitSet _tokenSet_1 = new BitSet(mk_tokenSet_1())
static final BitSet _tokenSet_2 = new BitSet(mk_tokenSet_2())
static final BitSet _tokenSet_3 = new BitSet(mk_tokenSet_3())
static final BitSet _tokenSet_4 = new BitSet(mk_tokenSet_4())
static final BitSet _tokenSet_5 = new BitSet(mk_tokenSet_5())
static final BitSet _tokenSet_6 = new BitSet(mk_tokenSet_6())
static final BitSet _tokenSet_7 = new BitSet(mk_tokenSet_7())
static final BitSet _tokenSet_8 = new BitSet(mk_tokenSet_8())

Protected Member Functions

antlr.Tool getTool ()
 Preprocessor (TokenBuffer tokenBuf, int k)
 Preprocessor (TokenStream lexer, int k)

Constructor & Destructor Documentation

antlr.preprocessor.Preprocessor.Preprocessor ( TokenBuffer  tokenBuf,
int  k 
) [protected]
antlr.preprocessor.Preprocessor.Preprocessor ( TokenBuffer  tokenBuf  ) 
antlr.preprocessor.Preprocessor.Preprocessor ( TokenStream  lexer,
int  k 
) [protected]
antlr.preprocessor.Preprocessor.Preprocessor ( TokenStream  lexer  ) 
antlr.preprocessor.Preprocessor.Preprocessor ( ParserSharedInputState  state  ) 

Member Function Documentation

final Grammar antlr.preprocessor.Preprocessor.class_def ( String  file,
Hierarchy  hier 
) throws RecognitionException, TokenStreamException
antlr.Tool antlr.preprocessor.Preprocessor.getTool (  )  [protected]
void antlr.preprocessor.Preprocessor.reportError ( RecognitionException  e  ) 
void antlr.preprocessor.Preprocessor.reportWarning ( String  s  ) 

Delegates the warning message to the tool if any was registered via initTool(antlr.Tool)

Since:
2.7.2

References antlr.Parser.getFilename(), and antlr.preprocessor.Preprocessor.getTool().

void antlr.preprocessor.Preprocessor.setTool ( antlr.Tool  tool  ) 

In order to make it so existing subclasses don't break, we won't require that the antlr.Tool instance be passed as a constructor element. Instead, the antlr.Tool instance should register itself via initTool(antlr.Tool)

Exceptions:
IllegalStateException if a tool has already been registered
Since:
2.7.2

Referenced by antlr.preprocessor.Hierarchy.readGrammarFile().


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties