Public Member Functions | Protected Attributes

antlr.GrammarAtom Class Reference

Inheritance diagram for antlr.GrammarAtom:
antlr.AlternativeElement antlr.GrammarElement antlr.CharLiteralElement antlr.StringLiteralElement antlr.TokenRefElement antlr.WildcardElement

List of all members.

Public Member Functions

 GrammarAtom (Grammar g, Token t, int autoGenType)
String getLabel ()
String getText ()
int getType ()
void setLabel (String label_)
String getASTNodeType ()
void setASTNodeType (String type)
void setOption (Token option, Token value)
String toString ()

Protected Attributes

String label
String atomText
int tokenType = Token.INVALID_TYPE
boolean not = false
String ASTNodeType = null

Detailed Description

A GrammarAtom is either a token ref, a character ref, or string. The analysis doesn't care.


Constructor & Destructor Documentation

antlr.GrammarAtom.GrammarAtom ( Grammar  g,
Token  t,
int  autoGenType 
)

Member Function Documentation

String antlr.GrammarAtom.getText (  ) 
void antlr.GrammarAtom.setASTNodeType ( String  type  ) 
void antlr.GrammarAtom.setLabel ( String  label_  ) 

Reimplemented from antlr.AlternativeElement.

Reimplemented in antlr.WildcardElement.

References antlr.GrammarAtom.label.

String antlr.GrammarAtom.toString (  )  [virtual]

Member Data Documentation

String antlr.GrammarAtom.ASTNodeType = null [protected]

Set to type of AST node to create during parse. Defaults to what is set in the TokenSymbol.

Referenced by antlr.GrammarAtom.getASTNodeType(), and antlr.GrammarAtom.setASTNodeType().


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