Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Static Public Member Functions | Static Private Member Functions
OODebug::MainMethodFinder Class Reference

Implements a visitor to find a Java main-method. More...

Inheritance diagram for OODebug::MainMethodFinder:
Model::Visitor< MainMethodFinder, OOModel::Method * >

Public Member Functions

virtual OOModel::MethodvisitChildren (Model::Node *n) override
 
- Public Member Functions inherited from Model::Visitor< MainMethodFinder, OOModel::Method * >
virtual ~Visitor ()
 
OOModel::Methodvisit (Node *n)
 

Static Public Member Functions

static void init ()
 
- Static Public Member Functions inherited from Model::Visitor< MainMethodFinder, OOModel::Method * >
static void addType (std::function< OOModel::Method *(MainMethodFinder *, NodeType *)> f)
 

Static Private Member Functions

static OOModel::MethodvisitMethod (MainMethodFinder *, OOModel::Method *m)
 

Additional Inherited Members

- Public Types inherited from Model::Visitor< MainMethodFinder, OOModel::Method * >
using BaseVisitorType = MainMethodFinder
 
using VisitFunctionInstance = std::function< OOModel::Method *(MainMethodFinder *, Node *)>
 
using VisitorResultType = OOModel::Method *
 
- Protected Member Functions inherited from Model::Visitor< MainMethodFinder, OOModel::Method * >
virtual VisitFunctionInstance findFunctionForId (int id)
 

Detailed Description

Implements a visitor to find a Java main-method.

This is helpful e.g. when trying to run the program.

Member Function Documentation

◆ init()

void OODebug::MainMethodFinder::init ( )
static

◆ visitChildren()

OOModel::Method * OODebug::MainMethodFinder::visitChildren ( Model::Node n)
overridevirtual

◆ visitMethod()

OOModel::Method * OODebug::MainMethodFinder::visitMethod ( MainMethodFinder ,
OOModel::Method m 
)
staticprivate