Class ObjectCountVisitor
java.lang.Object
de.monticore.generating.templateengine.reporting.commons.ObjectCountVisitor
- All Implemented Interfaces:
IVisitor
We use this visit mechanism to count instances of AST-Node-Types classes. The
type2count member maps the AST-Node-Type as String to it's object count.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidintReturn the max depthReturn the result mapReturn the result mapintReturn the total object countvoid
-
Field Details
-
type2count
-
type2countPos
-
totalCount
protected int totalCount -
maxDepth
protected int maxDepth -
depth
protected int depth
-
-
Constructor Details
-
ObjectCountVisitor
public ObjectCountVisitor()Constructor for reporting.ObjectCountVisitor
-
-
Method Details
-
visit
-
endVisit
-
getObjectCountMap
Return the result map -
getObjectCountMapPos
Return the result map -
getTotalCount
public int getTotalCount()Return the total object count -
getMaxDepth
public int getMaxDepth()Return the max depth -
clear
public void clear()
-