App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | List of all members
google.appengine._internal.antlr3.tokens.Token Class Reference

basic token interface More...

Inheritance diagram for google.appengine._internal.antlr3.tokens.Token:
google.appengine._internal.antlr3.tokens.ClassicToken google.appengine._internal.antlr3.tokens.CommonToken

Public Member Functions

def getText
 
def setText
 
def getType
 
def setType
 
def getLine
 
def setLine
 
def getCharPositionInLine
 
def setCharPositionInLine
 
def getChannel
 
def setChannel
 
def getTokenIndex
 
def setTokenIndex
 
def getInputStream
 
def setInputStream
 

Detailed Description

basic token interface

@brief Abstract token baseclass.

Member Function Documentation

def google.appengine._internal.antlr3.tokens.Token.getChannel (   self)
@brief Get the channel of the token

Using setter/getter methods is deprecated. Use o.channel instead.
def google.appengine._internal.antlr3.tokens.Token.getCharPositionInLine (   self)
@brief Get the column of the tokens first character,

Columns are numbered 0..n-1

Using setter/getter methods is deprecated. Use o.charPositionInLine instead.
def google.appengine._internal.antlr3.tokens.Token.getInputStream (   self)
@brief From what character stream was this token created.

You don't have to implement but it's nice to know where a Token
comes from if you have include files etc... on the input.
def google.appengine._internal.antlr3.tokens.Token.getLine (   self)
@brief Get the line number on which this token was matched

Lines are numbered 1..n

Using setter/getter methods is deprecated. Use o.line instead.
def google.appengine._internal.antlr3.tokens.Token.getText (   self)
@brief Get the text of the token.

Using setter/getter methods is deprecated. Use o.text instead.
def google.appengine._internal.antlr3.tokens.Token.getTokenIndex (   self)
@brief Get the index in the input stream.

An index from 0..n-1 of the token object in the input stream.
This must be valid in order to use the ANTLRWorks debugger.

Using setter/getter methods is deprecated. Use o.index instead.
def google.appengine._internal.antlr3.tokens.Token.getType (   self)
@brief Get the type of the token.

Using setter/getter methods is deprecated. Use o.type instead.
def google.appengine._internal.antlr3.tokens.Token.setChannel (   self,
  channel 
)
@brief Set the channel of the token

Using setter/getter methods is deprecated. Use o.channel instead.
def google.appengine._internal.antlr3.tokens.Token.setCharPositionInLine (   self,
  pos 
)
@brief Set the column of the tokens first character,

Using setter/getter methods is deprecated. Use o.charPositionInLine instead.
def google.appengine._internal.antlr3.tokens.Token.setInputStream (   self,
  input 
)
@brief From what character stream was this token created.

You don't have to implement but it's nice to know where a Token
comes from if you have include files etc... on the input.
def google.appengine._internal.antlr3.tokens.Token.setLine (   self,
  line 
)
@brief Set the line number on which this token was matched

Using setter/getter methods is deprecated. Use o.line instead.
def google.appengine._internal.antlr3.tokens.Token.setText (   self,
  text 
)
@brief Set the text of the token.

Using setter/getter methods is deprecated. Use o.text instead.
def google.appengine._internal.antlr3.tokens.Token.setTokenIndex (   self,
  index 
)
@brief Set the index in the input stream.

Using setter/getter methods is deprecated. Use o.index instead.
def google.appengine._internal.antlr3.tokens.Token.setType (   self,
  ttype 
)
@brief Get the type of the token.

Using setter/getter methods is deprecated. Use o.type instead.

The documentation for this class was generated from the following file: