umbrello 2.32.3 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:136
Import_Rose::methodName
void methodName(const QString &m)
Definition: import_rose.cpp:53
UMLObject::asUMLClassifier
UMLClassifier * asUMLClassifier()
Definition: umlobject.cpp:1309
template.h
PHPImportPrivate::getParsedFiles
QStringList getParsedFiles(const QString &fileName)
Definition: phpimport.cpp:721
PHPImportPrivate::m_printTokens
bool m_printTokens
Definition: phpimport.cpp:740
DebugLanguageParserHelper::tokenStream
Php::TokenStream * tokenStream()
Definition: phpimport.cpp:557
UMLArtifact
Non-graphical information for a Artifact.
Definition: artifact.h:28
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
PHPImportPrivate
Definition: phpimport.cpp:674
UMLObject::ot_Artifact
@ ot_Artifact
Definition: umlobject.h:97
UMLApp::logWindow
QListWidget * logWindow() const
Definition: uml.cpp:1905
Php::PHPIncludeFileVisitor::m_content
QString m_content
Definition: phpimport.cpp:129
UMLObject::ot_Class
@ ot_Class
Definition: umlobject.h:89
Php::PHPIncludeFileVisitor::setFilePath
void setFilePath(const QString &path)
Definition: phpimport.cpp:70
operation.h
DebugLanguageParserHelper::ast
StartAstT * ast() const
Definition: phpimport.cpp:572
Import_Utils::createGeneralization
UMLAssociation * createGeneralization(UMLClassifier *child, UMLClassifier *parent)
Definition: import_utils.cpp:603
Php
Definition: phpimport.cpp:59
Php::PHPImportVisitor::tokenValue
QString tokenValue(const KDevPG::ListNode< Php::NamespacedIdentifierAst * > *node)
Definition: phpimport.cpp:168
Php::PHPImportVisitor::visitClassExtends
void visitClassExtends(ClassExtendsAst *node)
Definition: phpimport.cpp:338
UniqueID::init
void init()
Definition: uniqueid.cpp:37
artifact.h
object_factory.h
UMLObject::ot_Interface
@ ot_Interface
Definition: umlobject.h:86
Php::PHPIncludeFileVisitor::setDependencies
void setDependencies(QStringList &dependencies)
Definition: phpimport.cpp:80
association.h
ClassImport
Definition: classimport.h:26
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:498
Php::PHPImportVisitor::visitInterfaceDeclarationStatement
void visitInterfaceDeclarationStatement(InterfaceDeclarationStatementAst *node)
Definition: phpimport.cpp:377
DebugLanguageParserHelper::m_session
SessionT m_session
Definition: phpimport.cpp:663
Php::PHPImportVisitor::visitSimpleNamespaceDeclarationStatement
void visitSimpleNamespaceDeclarationStatement(NamespaceDeclarationStatementAst *node)
Definition: phpimport.cpp:201
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:262
Php::PHPImportVisitor::m_nsCnt
int m_nsCnt
Definition: phpimport.cpp:502
DebugLanguageParserHelper::runSession
bool runSession(const QString &fileName=QString())
Definition: phpimport.cpp:591
qerr
QTextStream qerr(stderr)
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
DebugLanguageParserHelper
Definition: phpimport.cpp:526
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:668
classimport.h
optionstate.h
UMLObject::asUMLArtifact
UMLArtifact * asUMLArtifact()
Definition: umlobject.cpp:1303
qin
QTextStream qin(stdin)
Settings::optionState
OptionState & optionState()
Definition: optionstate.cpp:362
Php::PHPImportVisitor::visitClassStatement
void visitClassStatement(ClassStatementAst *node)
Definition: phpimport.cpp:300
PHPImport::m_d
PHPImportPrivate * m_d
Definition: phpimport.h:38
PHPImportPrivate::~PHPImportPrivate
~PHPImportPrivate()
Definition: phpimport.cpp:687
Php::PHPImportVisitor::m_currentScope
QStringList m_currentScope
Definition: phpimport.cpp:500
Uml::Visibility::Public
@ Public
Definition: basictypes.h:60
PHPImportPrivate::PHPImportPrivate
PHPImportPrivate()
Definition: phpimport.cpp:676
Php::PHPImportVisitor::tokenValue
QString tokenValue(AstNode *node)
Definition: phpimport.cpp:159
PHPImport::~PHPImport
virtual ~PHPImport()
Definition: phpimport.cpp:756
DebugLanguageParserHelper::parseCode
bool parseCode(const QString &code)
parse code directly
Definition: phpimport.cpp:549
attribute.h
Php::PHPImportVisitor::visitStart
void visitStart(StartAst *node)
Definition: phpimport.cpp:181
a
QString a
Definition: petalnode.cpp:18
phpimport.h
Php::PHPImportVisitor::visitUseNamespace
void visitUseNamespace(UseNamespaceAst *node)
Definition: phpimport.cpp:270
DebugLanguageParserHelper::m_printTokens
const bool m_printTokens
Definition: phpimport.cpp:665
Php::PHPIncludeFileVisitor::m_filePath
QString m_filePath
Definition: phpimport.cpp:132
PHPImportPrivate::parseFile
bool parseFile(const QStringList &files)
Definition: phpimport.cpp:694
UMLObject::ot_Datatype
@ ot_Datatype
Definition: umlobject.h:87
Php::PHPImportVisitor::visitClassDeclarationStatement
void visitClassDeclarationStatement(ClassDeclarationStatementAst *node)
Definition: phpimport.cpp:398
Php::PHPIncludeFileVisitor::m_str
TokenStream * m_str
Definition: phpimport.cpp:128
PHPImport::parseFile
bool parseFile(const QString &fileName)
Definition: phpimport.cpp:801
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:130
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:85
Php::PHPImportVisitor::setFileName
void setFileName(const QString &fileName)
Definition: phpimport.cpp:154
DebugLanguageParserHelper::m_dependencies
QStringList m_dependencies
Definition: phpimport.cpp:667
Php::PHPIncludeFileVisitor::setVariableMapping
void setVariableMapping(VariableMapping &map)
Definition: phpimport.cpp:75
Php::PHPIncludeFileVisitor::m_dependencies
QStringList * m_dependencies
Definition: phpimport.cpp:131
DebugLanguageParserHelper::printToken
void printToken(int token, const LexerT &lexer) const
Definition: phpimport.cpp:655
Php::PHPIncludeFileVisitor::m_map
VariableMapping m_map
Definition: phpimport.cpp:133
PHPImport::feedTheModel
void feedTheModel(const QString &fileName)
Definition: phpimport.cpp:769
PhpParser
DebugLanguageParserHelper< Php::ParseSession, Php::TokenStream, Php::Parser::Token, Php::Lexer, Php::StartAst, Php::DebugVisitor, Php::tokenText > PhpParser
Definition: phpimport.cpp:672
CodeImpThread
Definition: codeimpthread.h:36
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
Import_Utils::makeOperation
UMLOperation * makeOperation(UMLClassifier *parent, const QString &name)
Definition: import_utils.cpp:416
PHPImportPrivate::m_printAst
bool m_printAst
Definition: phpimport.cpp:739
DebugLanguageParserHelper::isFeeded
bool isFeeded()
Definition: phpimport.cpp:582
Php::PHPImportVisitor
Definition: phpimport.cpp:142
DebugLanguageParserHelper::m_ast
StartAstT * m_ast
Definition: phpimport.cpp:666
Php::PHPImportVisitor::m_str
TokenStream * m_str
Definition: phpimport.cpp:495
Php::PHPImportVisitor::visitStapledNamespaceDeclarationStatement
void visitStapledNamespaceDeclarationStatement(NamespaceDeclarationStatementAst *node)
Definition: phpimport.cpp:230
Php::PHPImportVisitor::PHPImportVisitor
PHPImportVisitor(TokenStream *str, const QString &content=QString())
Definition: phpimport.cpp:144
DebugLanguageParserHelper::dependencies
QStringList dependencies() const
Definition: phpimport.cpp:567
Uml::Visibility::Enum
Enum
Definition: basictypes.h:59
DebugLanguageParserHelper::m_printAst
const bool m_printAst
Definition: phpimport.cpp:664
UMLDoc::findUMLObject
UMLObject * findUMLObject(const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject, UMLObject *currentObj=0)
Definition: umldoc.cpp:1067
classifier.h
uError
#define uError()
Definition: debug_utils.h:123
UMLOperation
Definition: operation.h:25
Php::PHPImportVisitor::m_usingClasses
QList< QPointer< UMLClassifier > > m_usingClasses
Definition: phpimport.cpp:499
PHPImport::initialize
void initialize()
Definition: phpimport.cpp:786
Php::PHPImportVisitor::visitClassVariable
void visitClassVariable(ClassVariableAst *node)
Definition: phpimport.cpp:294
uml.h
Php::PHPImportVisitor::_printToken
void _printToken(AstNode *node, const QString &mType, const QString &mName=QString())
Definition: phpimport.cpp:463
DebugLanguageParserHelper::DebugLanguageParserHelper
DebugLanguageParserHelper(const bool printAst, const bool printTokens)
Definition: phpimport.cpp:528
Object_Factory::createNewUMLObject
UMLObject * createNewUMLObject(UMLObject::ObjectType type, const QString &name, UMLPackage *parentPkg, bool undoable)
Definition: object_factory.cpp:95
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
debug_utils.h
PHPImport::PHPImport
PHPImport(CodeImpThread *thread=0)
Definition: phpimport.cpp:747
DebugLanguageParserHelper::contents
QString contents() const
Definition: phpimport.cpp:562
DebugLanguageParserHelper::setFeeded
void setFeeded(bool state)
Definition: phpimport.cpp:577
umlobject.h
Php::PHPIncludeFileVisitor
Definition: phpimport.cpp:64
Php::PHPIncludeFileVisitor::PHPIncludeFileVisitor
PHPIncludeFileVisitor(TokenStream *str, const QString &content=QString())
Definition: phpimport.cpp:66
Php::PHPImportVisitor::m_content
QString m_content
Definition: phpimport.cpp:496
TokenTextFunc
QString(* TokenTextFunc)(int)
Definition: phpimport.cpp:523
PHPImportPrivate::m_parsers
QMap< QString, PhpParser * > m_parsers
Definition: phpimport.cpp:741
Php::PHPImportVisitor::m_indent
int m_indent
Definition: phpimport.cpp:497
Php::PHPImportVisitor::visitFunctionDeclarationStatement
void visitFunctionDeclarationStatement(FunctionDeclarationStatementAst *node)
Definition: phpimport.cpp:424
Php::PHPImportVisitor::m_fileName
QString m_fileName
Definition: phpimport.cpp:501
UMLObject::asUMLPackage
UMLPackage * asUMLPackage()
Definition: umlobject.cpp:1325
Php::PHPIncludeFileVisitor::visitIncludeExpression
void visitIncludeExpression(UnaryExpressionAst *node)
Definition: phpimport.cpp:93
DebugLanguageParserHelper::parseFile
bool parseFile(const QString &fileName)
parse contents of a file
Definition: phpimport.cpp:537
PHPImport
Definition: phpimport.h:26
package.h
Php::VariableMapping
QMap< QString, QString > VariableMapping
Definition: phpimport.cpp:61
UMLArtifact::file
@ file
Definition: artifact.h:37
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1064
umldoc.h
PHPImport::initPerFile
void initPerFile()
Definition: phpimport.cpp:793
Php::PHPImportVisitor::visitClassImplements
void visitClassImplements(ClassImplementsAst *node)
Definition: phpimport.cpp:352
UMLPackage
Non-graphical information for a Package.
Definition: package.h:33
enum.h