Lexer Class Reference

#include <Lexer.h>


Public Member Functions

 Lexer (XRef *xref, Stream *str)
 Lexer (XRef *xref, Object *obj)
 ~Lexer ()
ObjectgetObj (Object *obj)
void skipToNextLine ()
void skipChar ()
StreamgetStream ()
int getPos ()
void setPos (Guint pos, int dir=0)

Private Member Functions

int getChar ()
int lookChar ()

Private Attributes

Arraystreams
int strPtr
Object curStr
GBool freeArray
char tokBuf [tokBufSize]


Detailed Description

Definition at line 29 of file Lexer.h.


Constructor & Destructor Documentation

Lexer::Lexer ( XRef xref,
Stream str 
)

Lexer::Lexer ( XRef xref,
Object obj 
)

Lexer::~Lexer (  ) 


Member Function Documentation

Object* Lexer::getObj ( Object obj  ) 

void Lexer::skipToNextLine (  ) 

void Lexer::skipChar (  )  [inline]

Definition at line 50 of file Lexer.h.

References getChar().

00050 { getChar(); }

Stream* Lexer::getStream (  )  [inline]

Definition at line 53 of file Lexer.h.

References curStr, Object::getStream(), Object::isNone(), and NULL.

Referenced by Parser::getStream().

00054     { return curStr.isNone() ? (Stream *)NULL : curStr.getStream(); }

int Lexer::getPos (  )  [inline]

Definition at line 58 of file Lexer.h.

References curStr, Object::isNone(), and Object::streamGetPos().

Referenced by Parser::getPos().

00059     { return curStr.isNone() ? -1 : (int)curStr.streamGetPos(); }

void Lexer::setPos ( Guint  pos,
int  dir = 0 
) [inline]

Definition at line 62 of file Lexer.h.

References curStr, Object::isNone(), and Object::streamSetPos().

00063     { if (!curStr.isNone()) curStr.streamSetPos(pos, dir); }

int Lexer::getChar (  )  [private]

Referenced by skipChar().

int Lexer::lookChar (  )  [private]


Field Documentation

Array* Lexer::streams [private]

Definition at line 70 of file Lexer.h.

int Lexer::strPtr [private]

Definition at line 71 of file Lexer.h.

Object Lexer::curStr [private]

Definition at line 72 of file Lexer.h.

Referenced by getPos(), getStream(), and setPos().

GBool Lexer::freeArray [private]

Definition at line 73 of file Lexer.h.

char Lexer::tokBuf[tokBufSize] [private]

Definition at line 74 of file Lexer.h.


The documentation for this class was generated from the following file:
Generated on Fri Jan 9 13:45:37 2009 for libextractor by  doxygen 1.5.1