org.antlr.stringtemplate.language
Class InterfaceParser

java.lang.Object
  extended by antlr.LLkParser
      extended by org.antlr.stringtemplate.language.InterfaceParser
All Implemented Interfaces:
InterfaceParserTokenTypes

public class InterfaceParser
extends antlr.LLkParser
implements InterfaceParserTokenTypes

Match an ST group interface. Just a list of template names with args. Here is a sample interface file: interface nfa; nfa(states,edges); optional state(name);


Field Summary
static java.lang.String[] _tokenNames
           
static java.util.BitSet _tokenSet_0
           
static java.util.BitSet _tokenSet_1
           
static java.util.BitSet _tokenSet_2
           
protected  StringTemplateGroupInterface groupI
           
 
Fields inherited from interface org.antlr.stringtemplate.language.InterfaceParserTokenTypes
COLON, COMMA, EOF, ID, LITERAL_interface, LITERAL_optional, LPAREN, ML_COMMENT, NULL_TREE_LOOKAHEAD, RPAREN, SEMI, SL_COMMENT, WS
 
Constructor Summary
  InterfaceParser(ParserSharedInputState state)
           
  InterfaceParser(TokenBuffer tokenBuf)
           
protected InterfaceParser(TokenBuffer tokenBuf, int k)
           
  InterfaceParser(TokenStream lexer)
           
protected InterfaceParser(TokenStream lexer, int k)
           
 
Method Summary
 java.util.LinkedHashMap args()
           
 void groupInterface(StringTemplateGroupInterface groupI)
           
 void reportError(RecognitionException e)
           
 void template(StringTemplateGroupInterface groupI)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

groupI

protected StringTemplateGroupInterface groupI

_tokenNames

public static final java.lang.String[] _tokenNames

_tokenSet_0

public static final java.util.BitSet _tokenSet_0

_tokenSet_1

public static final java.util.BitSet _tokenSet_1

_tokenSet_2

public static final java.util.BitSet _tokenSet_2
Constructor Detail

InterfaceParser

protected InterfaceParser(TokenBuffer tokenBuf,
                          int k)

InterfaceParser

public InterfaceParser(TokenBuffer tokenBuf)

InterfaceParser

protected InterfaceParser(TokenStream lexer,
                          int k)

InterfaceParser

public InterfaceParser(TokenStream lexer)

InterfaceParser

public InterfaceParser(ParserSharedInputState state)
Method Detail

reportError

public void reportError(RecognitionException e)

groupInterface

public final void groupInterface(StringTemplateGroupInterface groupI)
                          throws RecognitionException,
                                 TokenStreamException
Throws:
RecognitionException
TokenStreamException

template

public final void template(StringTemplateGroupInterface groupI)
                    throws RecognitionException,
                           TokenStreamException
Throws:
RecognitionException
TokenStreamException

args

public final java.util.LinkedHashMap args()
                                   throws RecognitionException,
                                          TokenStreamException
Throws:
RecognitionException
TokenStreamException