KDevelop API Documentation

perlparser Class Reference

perl source to classview parser More...

#include <perlparser.h>

Collaboration diagram for perlparser:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 perlparser (KDevCore *core, CodeModel *model, QString interpreter)
 perlparser ()
 ~perlparser ()
void initialParse ()
void parse (const QString &fileName)
void parseLines (QStringList *lines, const QString &fileName)
const QStringList UseFiles ()
QString findLib (const QString &lib)

Private Member Functions

void addPackage (const QString &fileName, int lineNr, const QString &name)
void addAttributetoScript (const QString &fileName, int lineNr, const QString &name)
void addAttributetoPackage (const QString &fileName, int lineNr, const QString &name)
void addClass (const QString &fileName, int lineNr)
void addConstructor (const QString &fileName, int lineNr, const QString &methodname)
void addGlobalSub (const QString &fileName, int lineNr, const QString &name, bool privatesub)
void addScriptSub (const QString &fileName, int lineNr, const QString &name, bool privatesub)
void addClassMethod (const QString &fileName, int lineNr, const QString &name, bool privatesub)
void addPackageSub (const QString &fileName, int lineNr, const QString &name, bool privatesub)
void addParentClass (const QString &parent)
void addScript (const QString &fileName, int lineNr, const QString &name)
void addUseLib (const QString &lib)
void getPerlINC ()

Private Attributes

bool m_inpackage
bool m_inscript
bool m_inclass
QString m_lastsub
QString m_lastparentclass
QString m_lastattr
QString m_lastpackagename
QString m_lastscriptname
NamespaceDom m_lastscript
NamespaceDom m_lastpackage
ClassDom m_lastclass
CodeModelm_model
KDevCorem_core
FileDom m_file
QStringList m_INClist
QStringList m_usefiles
QString m_interpreter

Detailed Description

perl source to classview parser

Author:
luc

Definition at line 29 of file perlparser.h.


Constructor & Destructor Documentation

perlparser::perlparser KDevCore core,
CodeModel model,
QString  interpreter
 

Definition at line 25 of file perlparser.cpp.

References getPerlINC(), m_core, m_interpreter, and m_model.

perlparser::perlparser  ) 
 

perlparser::~perlparser  ) 
 

Definition at line 34 of file perlparser.cpp.


Member Function Documentation

void perlparser::addAttributetoPackage const QString fileName,
int  lineNr,
const QString name
[private]
 

Definition at line 272 of file perlparser.cpp.

References CodeModel::create(), kdDebug(), m_lastattr, m_lastpackage, m_model, and VariableDom.

Referenced by parseLines().

void perlparser::addAttributetoScript const QString fileName,
int  lineNr,
const QString name
[private]
 

Definition at line 289 of file perlparser.cpp.

References CodeModel::create(), kdDebug(), m_lastscript, m_model, and VariableDom.

Referenced by parseLines().

void perlparser::addClass const QString fileName,
int  lineNr
[private]
 

Definition at line 304 of file perlparser.cpp.

References ClassDom, CodeModel::create(), kdDebug(), m_inclass, m_lastclass, m_lastpackage, m_lastpackagename, and m_model.

Referenced by parseLines().

void perlparser::addClassMethod const QString fileName,
int  lineNr,
const QString name,
bool  privatesub
[private]
 

Definition at line 388 of file perlparser.cpp.

References CodeModel::create(), FunctionDom, kdDebug(), m_lastclass, m_lastsub, and m_model.

Referenced by parseLines().

void perlparser::addConstructor const QString fileName,
int  lineNr,
const QString methodname
[private]
 

Definition at line 321 of file perlparser.cpp.

References CodeModel::create(), FunctionDom, kdDebug(), m_lastclass, m_lastpackage, and m_model.

Referenced by parseLines().

void perlparser::addGlobalSub const QString fileName,
int  lineNr,
const QString name,
bool  privatesub
[private]
 

Definition at line 347 of file perlparser.cpp.

References addPackageSub(), CodeModel::create(), FunctionDom, kdDebug(), m_lastpackage, m_lastsub, and m_model.

void perlparser::addPackage const QString fileName,
int  lineNr,
const QString name
[private]
 

Definition at line 207 of file perlparser.cpp.

References kdDebug(), and NamespaceDom.

Referenced by parseLines().

void perlparser::addPackageSub const QString fileName,
int  lineNr,
const QString name,
bool  privatesub
[private]
 

Definition at line 409 of file perlparser.cpp.

References CodeModel::create(), FunctionDom, kdDebug(), m_lastpackage, m_lastsub, and m_model.

Referenced by addGlobalSub(), and parseLines().

void perlparser::addParentClass const QString parent  )  [private]
 

Definition at line 427 of file perlparser.cpp.

References kdDebug(), and m_lastclass.

Referenced by parseLines().

void perlparser::addScript const QString fileName,
int  lineNr,
const QString name
[private]
 

Definition at line 237 of file perlparser.cpp.

References CodeModel::create(), kdDebug(), m_file, m_inclass, m_inpackage, m_inscript, m_lastattr, m_lastclass, m_lastpackage, m_lastscript, m_lastscriptname, m_lastsub, m_model, and NamespaceDom.

Referenced by parseLines().

void perlparser::addScriptSub const QString fileName,
int  lineNr,
const QString name,
bool  privatesub
[private]
 

Definition at line 370 of file perlparser.cpp.

References CodeModel::create(), FunctionDom, kdDebug(), m_lastscript, m_lastsub, and m_model.

Referenced by parseLines().

void perlparser::addUseLib const QString lib  )  [private]
 

Definition at line 437 of file perlparser.cpp.

References CodeModel::hasFile(), kdDebug(), m_model, and m_usefiles.

Referenced by parseLines().

QString perlparser::findLib const QString lib  ) 
 

Definition at line 476 of file perlparser.cpp.

References file, and m_INClist.

Referenced by PerlSupportPart::parseUseFiles().

void perlparser::getPerlINC  )  [private]
 

Definition at line 448 of file perlparser.cpp.

References kdDebug(), and m_INClist.

Referenced by perlparser().

void perlparser::initialParse  ) 
 

Definition at line 42 of file perlparser.cpp.

References m_usefiles.

Referenced by PerlSupportPart::initialParse().

void perlparser::parse const QString fileName  ) 
 

Definition at line 46 of file perlparser.cpp.

References CodeModel::addFile(), CodeModel::create(), kdDebug(), m_file, m_model, and parseLines().

Referenced by PerlSupportPart::maybeParse().

void perlparser::parseLines QStringList lines,
const QString fileName
 

Definition at line 66 of file perlparser.cpp.

References addAttributetoPackage(), addAttributetoScript(), addClass(), addClassMethod(), addConstructor(), addPackage(), addPackageSub(), addParentClass(), addScript(), addScriptSub(), addUseLib(), kdDebug(), m_inclass, m_INClist, m_inpackage, m_inscript, m_lastattr, m_lastclass, m_lastpackage, m_lastscript, and m_lastsub.

Referenced by parse().

const QStringList perlparser::UseFiles  ) 
 

Definition at line 37 of file perlparser.cpp.

Referenced by PerlSupportPart::parseUseFiles().


Member Data Documentation

KDevCore* perlparser::m_core [private]
 

Definition at line 73 of file perlparser.h.

Referenced by perlparser().

FileDom perlparser::m_file [private]
 

Definition at line 74 of file perlparser.h.

Referenced by addScript(), and parse().

bool perlparser::m_inclass [private]
 

Definition at line 59 of file perlparser.h.

Referenced by addClass(), addScript(), and parseLines().

QStringList perlparser::m_INClist [private]
 

Definition at line 77 of file perlparser.h.

Referenced by findLib(), getPerlINC(), and parseLines().

bool perlparser::m_inpackage [private]
 

Definition at line 57 of file perlparser.h.

Referenced by addScript(), and parseLines().

bool perlparser::m_inscript [private]
 

Definition at line 58 of file perlparser.h.

Referenced by addScript(), and parseLines().

QString perlparser::m_interpreter [private]
 

Definition at line 82 of file perlparser.h.

Referenced by perlparser().

QString perlparser::m_lastattr [private]
 

Definition at line 63 of file perlparser.h.

Referenced by addAttributetoPackage(), addScript(), and parseLines().

ClassDom perlparser::m_lastclass [private]
 

Definition at line 69 of file perlparser.h.

Referenced by addClass(), addClassMethod(), addConstructor(), addParentClass(), addScript(), and parseLines().

NamespaceDom perlparser::m_lastpackage [private]
 

Definition at line 68 of file perlparser.h.

Referenced by addAttributetoPackage(), addClass(), addConstructor(), addGlobalSub(), addPackageSub(), addScript(), and parseLines().

QString perlparser::m_lastpackagename [private]
 

Definition at line 64 of file perlparser.h.

Referenced by addClass().

QString perlparser::m_lastparentclass [private]
 

Definition at line 62 of file perlparser.h.

NamespaceDom perlparser::m_lastscript [private]
 

Definition at line 67 of file perlparser.h.

Referenced by addAttributetoScript(), addScript(), addScriptSub(), and parseLines().

QString perlparser::m_lastscriptname [private]
 

Definition at line 65 of file perlparser.h.

Referenced by addScript().

QString perlparser::m_lastsub [private]
 

Definition at line 61 of file perlparser.h.

Referenced by addClassMethod(), addGlobalSub(), addPackageSub(), addScript(), addScriptSub(), and parseLines().

CodeModel* perlparser::m_model [private]
 

Definition at line 72 of file perlparser.h.

Referenced by addAttributetoPackage(), addAttributetoScript(), addClass(), addClassMethod(), addConstructor(), addGlobalSub(), addPackageSub(), addScript(), addScriptSub(), addUseLib(), parse(), and perlparser().

QStringList perlparser::m_usefiles [private]
 

Definition at line 80 of file perlparser.h.

Referenced by addUseLib(), and initialParse().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:45:32 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003