umbrello: umbrello/codeimport/phpimport.h Source File

umbrello 2.31.0 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

phpimport.h
Go to the documentation of this file.
1 /***************************************************************************
2 * This program is free software; you can redistribute it and/or modify *
3 * it under the terms of the GNU General Public License as published by *
4 * the Free Software Foundation; either version 2 of the License, or *
5 * (at your option) any later version. *
6 * *
7 * copyright (C) 2017-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef PHPIMPORT_H
12 #define PHPIMPORT_H
13
14 #include "classimport.h"
15
16 #include <QString>
17
18 class PHPImportPrivate;
19
25 class PHPImport : public ClassImport
26 {
27 public:
28 explicit PHPImport(CodeImpThread* thread = 0);
29 virtual ~PHPImport();
30
31 protected:
32 void initialize();
33 void initPerFile();
34 bool parseFile(const QString& fileName);
35
36 private:
37 void feedTheModel(const QString& fileName);
38 PHPImportPrivate *m_d;
39 };
40
41 #endif
Php::NamespaceSize
const int NamespaceSize
Definition: phpimport.cpp:133
Import_Rose::methodName
void methodName(const QString &m)
Definition: import_rose.cpp:61
UMLObject::asUMLClassifier
UMLClassifier * asUMLClassifier()
Definition: umlobject.cpp:1308
template.h
PHPImportPrivate::getParsedFiles
QStringList getParsedFiles(const QString &fileName)
Definition: phpimport.cpp:718
PHPImportPrivate::m_printTokens
bool m_printTokens
Definition: phpimport.cpp:737
DebugLanguageParserHelper::tokenStream
Php::TokenStream * tokenStream()
Definition: phpimport.cpp:554
UMLArtifact
Non-graphical information for a Artifact.
Definition: artifact.h:27
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
PHPImportPrivate
Definition: phpimport.cpp:671
UMLObject::ot_Artifact
@ ot_Artifact
Definition: umlobject.h:97
UMLApp::logWindow
QListWidget * logWindow() const
Definition: uml.cpp:1896
Php::PHPIncludeFileVisitor::m_content
QString m_content
Definition: phpimport.cpp:126
UMLObject::ot_Class
@ ot_Class
Definition: umlobject.h:89
Php::PHPIncludeFileVisitor::setFilePath
void setFilePath(const QString &path)
Definition: phpimport.cpp:67
operation.h
DebugLanguageParserHelper::ast
StartAstT * ast() const
Definition: phpimport.cpp:569
Import_Utils::createGeneralization
UMLAssociation * createGeneralization(UMLClassifier *child, UMLClassifier *parent)
Definition: import_utils.cpp:603
Php
Definition: phpimport.cpp:56
Php::PHPImportVisitor::tokenValue
QString tokenValue(const KDevPG::ListNode< Php::NamespacedIdentifierAst * > *node)
Definition: phpimport.cpp:165
Php::PHPImportVisitor::visitClassExtends
void visitClassExtends(ClassExtendsAst *node)
Definition: phpimport.cpp:335
UniqueID::init
void init()
Definition: uniqueid.cpp:45
artifact.h
object_factory.h
UMLObject::ot_Interface
@ ot_Interface
Definition: umlobject.h:86
Php::PHPIncludeFileVisitor::setDependencies
void setDependencies(QStringList &dependencies)
Definition: phpimport.cpp:77
association.h
ClassImport
Definition: classimport.h:25
Import_Utils::createUMLObject
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &inName, UMLPackage *parentPkg, const QString &comment, const QString &stereotype, bool searchInParentPackageOnly, bool remapParent)
Definition: import_utils.cpp:178
qout
QTextStream qout(stdout)
Php::PHPImportVisitor::m_currentNamespace
QVector< QPointer< UMLPackage > > m_currentNamespace
Definition: phpimport.cpp:495
Php::PHPImportVisitor::visitInterfaceDeclarationStatement
void visitInterfaceDeclarationStatement(InterfaceDeclarationStatementAst *node)
Definition: phpimport.cpp:374
DebugLanguageParserHelper::m_session
SessionT m_session
Definition: phpimport.cpp:660
Php::PHPImportVisitor::visitSimpleNamespaceDeclarationStatement
void visitSimpleNamespaceDeclarationStatement(NamespaceDeclarationStatementAst *node)
Definition: phpimport.cpp:198
UMLObject::ot_Package
@ ot_Package
Definition: umlobject.h:85
Import_Utils::insertMethod
void insertMethod(UMLClassifier *klass, UMLOperation *&op, Uml::Visibility::Enum scope, const QString &type, bool isStatic, bool isAbstract, bool isFriend, bool isConstructor, bool isDestructor, const QString &comment)
Definition: import_utils.cpp:498
Php::PHPImportVisitor::visitNamespaceDeclarationStatement
void visitNamespaceDeclarationStatement(NamespaceDeclarationStatementAst *node)
Definition: phpimport.cpp:259
Php::PHPImportVisitor::m_nsCnt
int m_nsCnt
Definition: phpimport.cpp:499
DebugLanguageParserHelper::runSession
bool runSession(const QString &fileName=QString())
Definition: phpimport.cpp:588
qerr
QTextStream qerr(stderr)
UMLObject
The base class for UML objects.
Definition: umlobject.h:73
DebugLanguageParserHelper
Definition: phpimport.cpp:523
import_utils.h
Import_Utils::createArtifactFolder
UMLObject * createArtifactFolder(const QString &name, UMLPackage *parentPkg, const QString &comment)
Definition: import_utils.cpp:649
DebugLanguageParserHelper::m_isFed
bool m_isFed
Definition: phpimport.cpp:665
classimport.h
optionstate.h
UMLObject::asUMLArtifact
UMLArtifact * asUMLArtifact()
Definition: umlobject.cpp:1302
qin
QTextStream qin(stdin)
Settings::optionState
OptionState & optionState()
Definition: optionstate.cpp:370
Php::PHPImportVisitor::visitClassStatement
void visitClassStatement(ClassStatementAst *node)
Definition: phpimport.cpp:297
PHPImport::m_d
PHPImportPrivate * m_d
Definition: phpimport.h:38
PHPImportPrivate::~PHPImportPrivate
~PHPImportPrivate()
Definition: phpimport.cpp:684
Php::PHPImportVisitor::m_currentScope
QStringList m_currentScope
Definition: phpimport.cpp:497
Uml::Visibility::Public
@ Public
Definition: basictypes.h:77
PHPImportPrivate::PHPImportPrivate
PHPImportPrivate()
Definition: phpimport.cpp:673
Php::PHPImportVisitor::tokenValue
QString tokenValue(AstNode *node)
Definition: phpimport.cpp:156
PHPImport::~PHPImport
virtual ~PHPImport()
Definition: phpimport.cpp:753
DebugLanguageParserHelper::parseCode
bool parseCode(const QString &code)
parse code directly
Definition: phpimport.cpp:546
attribute.h
Php::PHPImportVisitor::visitStart
void visitStart(StartAst *node)
Definition: phpimport.cpp:178
a
QString a
Definition: petalnode.cpp:18
phpimport.h
Php::PHPImportVisitor::visitUseNamespace
void visitUseNamespace(UseNamespaceAst *node)
Definition: phpimport.cpp:267
DebugLanguageParserHelper::m_printTokens
const bool m_printTokens
Definition: phpimport.cpp:662
Php::PHPIncludeFileVisitor::m_filePath
QString m_filePath
Definition: phpimport.cpp:129
PHPImportPrivate::parseFile
bool parseFile(const QStringList &files)
Definition: phpimport.cpp:691
UMLObject::ot_Datatype
@ ot_Datatype
Definition: umlobject.h:87
Php::PHPImportVisitor::visitClassDeclarationStatement
void visitClassDeclarationStatement(ClassDeclarationStatementAst *node)
Definition: phpimport.cpp:395
Php::PHPIncludeFileVisitor::m_str
TokenStream * m_str
Definition: phpimport.cpp:125
PHPImport::parseFile
bool parseFile(const QString &fileName)
Definition: phpimport.cpp:798
Import_Utils::addMethodParameter
UMLAttribute * addMethodParameter(UMLOperation *method, const QString &type, const QString &name)
Definition: import_utils.cpp:572
Php::PHPIncludeFileVisitor::m_indent
int m_indent
Definition: phpimport.cpp:127
int
int int y int
Definition: cxx11-lambda-functions-and-expressions.h:4
uDebug
#define uDebug()
Definition: debug_utils.h:122
Php::PHPIncludeFileVisitor::visitUnaryExpression
virtual void visitUnaryExpression(UnaryExpressionAst *node)
Definition: phpimport.cpp:82
Php::PHPImportVisitor::setFileName
void setFileName(const QString &fileName)
Definition: phpimport.cpp:151
DebugLanguageParserHelper::m_dependencies
QStringList m_dependencies
Definition: phpimport.cpp:664
Php::PHPIncludeFileVisitor::setVariableMapping
void setVariableMapping(VariableMapping &map)
Definition: phpimport.cpp:72
Php::PHPIncludeFileVisitor::m_dependencies
QStringList * m_dependencies
Definition: phpimport.cpp:128
DebugLanguageParserHelper::printToken
void printToken(int token, const LexerT &lexer) const
Definition: phpimport.cpp:652
Php::PHPIncludeFileVisitor::m_map
VariableMapping m_map
Definition: phpimport.cpp:130
PHPImport::feedTheModel
void feedTheModel(const QString &fileName)
Definition: phpimport.cpp:766
PhpParser
DebugLanguageParserHelper< Php::ParseSession, Php::TokenStream, Php::Parser::Token, Php::Lexer, Php::StartAst, Php::DebugVisitor, Php::tokenText > PhpParser
Definition: phpimport.cpp:669
CodeImpThread
Definition: codeimpthread.h:35
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:269
Import_Utils::makeOperation
UMLOperation * makeOperation(UMLClassifier *parent, const QString &name)
Definition: import_utils.cpp:416
PHPImportPrivate::m_printAst
bool m_printAst
Definition: phpimport.cpp:736
DebugLanguageParserHelper::isFeeded
bool isFeeded()
Definition: phpimport.cpp:579
Php::PHPImportVisitor
Definition: phpimport.cpp:138
DebugLanguageParserHelper::m_ast
StartAstT * m_ast
Definition: phpimport.cpp:663
Php::PHPImportVisitor::m_str
TokenStream * m_str
Definition: phpimport.cpp:492
Php::PHPImportVisitor::visitStapledNamespaceDeclarationStatement
void visitStapledNamespaceDeclarationStatement(NamespaceDeclarationStatementAst *node)
Definition: phpimport.cpp:227
Php::PHPImportVisitor::PHPImportVisitor
PHPImportVisitor(TokenStream *str, const QString &content=QString())
Definition: phpimport.cpp:141
DebugLanguageParserHelper::dependencies
QStringList dependencies() const
Definition: phpimport.cpp:564
Uml::Visibility::Enum
Enum
Definition: basictypes.h:76
DebugLanguageParserHelper::m_printAst
const bool m_printAst
Definition: phpimport.cpp:661
UMLDoc::findUMLObject
UMLObject * findUMLObject(const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject, UMLObject *currentObj=0)
Definition: umldoc.cpp:1065
classifier.h
uError
#define uError()
Definition: debug_utils.h:123
UMLOperation
Definition: operation.h:24
Php::PHPImportVisitor::m_usingClasses
QList< QPointer< UMLClassifier > > m_usingClasses
Definition: phpimport.cpp:496
PHPImport::initialize
void initialize()
Definition: phpimport.cpp:783
Php::PHPImportVisitor::visitClassVariable
void visitClassVariable(ClassVariableAst *node)
Definition: phpimport.cpp:291
uml.h
Php::PHPImportVisitor::_printToken
void _printToken(AstNode *node, const QString &mType, const QString &mName=QString())
Definition: phpimport.cpp:460
DebugLanguageParserHelper::DebugLanguageParserHelper
DebugLanguageParserHelper(const bool printAst, const bool printTokens)
Definition: phpimport.cpp:525
Object_Factory::createNewUMLObject
UMLObject * createNewUMLObject(UMLObject::ObjectType type, const QString &name, UMLPackage *parentPkg, bool undoable)
Definition: object_factory.cpp:103
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:39
debug_utils.h
PHPImport::PHPImport
PHPImport(CodeImpThread *thread=0)
Definition: phpimport.cpp:744
DebugLanguageParserHelper::contents
QString contents() const
Definition: phpimport.cpp:559
DebugLanguageParserHelper::setFeeded
void setFeeded(bool state)
Definition: phpimport.cpp:574
umlobject.h
Php::PHPIncludeFileVisitor
Definition: phpimport.cpp:60
Php::PHPIncludeFileVisitor::PHPIncludeFileVisitor
PHPIncludeFileVisitor(TokenStream *str, const QString &content=QString())
Definition: phpimport.cpp:63
Php::PHPImportVisitor::m_content
QString m_content
Definition: phpimport.cpp:493
TokenTextFunc
QString(* TokenTextFunc)(int)
Definition: phpimport.cpp:520
PHPImportPrivate::m_parsers
QMap< QString, PhpParser * > m_parsers
Definition: phpimport.cpp:738
Php::PHPImportVisitor::m_indent
int m_indent
Definition: phpimport.cpp:494
Php::PHPImportVisitor::visitFunctionDeclarationStatement
void visitFunctionDeclarationStatement(FunctionDeclarationStatementAst *node)
Definition: phpimport.cpp:421
Php::PHPImportVisitor::m_fileName
QString m_fileName
Definition: phpimport.cpp:498
UMLObject::asUMLPackage
UMLPackage * asUMLPackage()
Definition: umlobject.cpp:1324
Php::PHPIncludeFileVisitor::visitIncludeExpression
void visitIncludeExpression(UnaryExpressionAst *node)
Definition: phpimport.cpp:90
DebugLanguageParserHelper::parseFile
bool parseFile(const QString &fileName)
parse contents of a file
Definition: phpimport.cpp:534
PHPImport
Definition: phpimport.h:25
package.h
Php::VariableMapping
QMap< QString, QString > VariableMapping
Definition: phpimport.cpp:58
UMLArtifact::file
@ file
Definition: artifact.h:53
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1055
umldoc.h
PHPImport::initPerFile
void initPerFile()
Definition: phpimport.cpp:790
Php::PHPImportVisitor::visitClassImplements
void visitClassImplements(ClassImplementsAst *node)
Definition: phpimport.cpp:349
UMLPackage
Non-graphical information for a Package.
Definition: package.h:32
enum.h