Class MCVarDeclarationStatementsScopesGenitor
- java.lang.Object
-
- de.monticore.statements.mcvardeclarationstatements._symboltable.MCVarDeclarationStatementsScopesGenitor
-
- All Implemented Interfaces:
MCVarDeclarationStatementsHandler,MCVarDeclarationStatementsVisitor2,de.monticore.visitor.IHandler,de.monticore.visitor.IVisitor
public class MCVarDeclarationStatementsScopesGenitor extends java.lang.Object implements MCVarDeclarationStatementsVisitor2, MCVarDeclarationStatementsHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected IMCVarDeclarationStatementsScopefirstCreatedScopeprotected java.util.Deque<IMCVarDeclarationStatementsScope>scopeStackprotected MCVarDeclarationStatementsTraversertraverser
-
Constructor Summary
Constructors Constructor Description MCVarDeclarationStatementsScopesGenitor()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.monticore.visitor.IHandler
handle, handle, handle, handle, handle, traverse, traverse
-
Methods inherited from interface de.monticore.visitor.IVisitor
endVisit, endVisit, endVisit, endVisit, visit, visit, visit, visit
-
Methods inherited from interface de.monticore.statements.mcvardeclarationstatements._visitor.MCVarDeclarationStatementsHandler
handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, traverse, traverse, traverse, traverse, traverse, traverse, traverse, traverse, traverse
-
-
-
-
Field Detail
-
scopeStack
protected java.util.Deque<IMCVarDeclarationStatementsScope> scopeStack
-
traverser
protected MCVarDeclarationStatementsTraverser traverser
-
firstCreatedScope
protected IMCVarDeclarationStatementsScope firstCreatedScope
-
-
Method Detail
-
getTraverser
public MCVarDeclarationStatementsTraverser getTraverser()
- Specified by:
getTraverserin interfacede.monticore.visitor.IHandler- Specified by:
getTraverserin interfaceMCVarDeclarationStatementsHandler
-
setTraverser
public void setTraverser(MCVarDeclarationStatementsTraverser traverser)
- Specified by:
setTraverserin interfaceMCVarDeclarationStatementsHandler
-
getFirstCreatedScope
public IMCVarDeclarationStatementsScope getFirstCreatedScope()
-
createFromAST
public IMCVarDeclarationStatementsArtifactScope createFromAST(ASTLocalVariableDeclarationStatement rootNode)
-
putOnStack
public void putOnStack(IMCVarDeclarationStatementsScope scope)
-
getCurrentScope
public final java.util.Optional<IMCVarDeclarationStatementsScope> getCurrentScope()
-
removeCurrentScope
public final java.util.Optional<IMCVarDeclarationStatementsScope> removeCurrentScope()
-
setScopeStack
public void setScopeStack(java.util.Deque<? extends IMCVarDeclarationStatementsScope> scopeStack)
-
createScope
public IMCVarDeclarationStatementsScope createScope(boolean shadowing)
-
visit
public void visit(ASTDeclaratorId node)
- Specified by:
visitin interfaceMCVarDeclarationStatementsVisitor2
-
endVisit
public void endVisit(ASTDeclaratorId node)
- Specified by:
endVisitin interfaceMCVarDeclarationStatementsVisitor2
-
initFieldHP1
protected void initFieldHP1(FieldSymbol symbol)
-
initFieldHP2
protected void initFieldHP2(FieldSymbol symbol)
-
visit
public void visit(ASTLocalVariableDeclarationStatement node)
- Specified by:
visitin interfaceMCVarDeclarationStatementsVisitor2
-
visit
public void visit(ASTLocalVariableDeclaration node)
- Specified by:
visitin interfaceMCVarDeclarationStatementsVisitor2
-
visit
public void visit(ASTVariableDeclarator node)
- Specified by:
visitin interfaceMCVarDeclarationStatementsVisitor2
-
visit
public void visit(ASTSimpleInit node)
- Specified by:
visitin interfaceMCVarDeclarationStatementsVisitor2
-
initScopeHP1
protected void initScopeHP1(IMCVarDeclarationStatementsScope scope)
-
initScopeHP2
protected void initScopeHP2(IMCVarDeclarationStatementsScope scope)
-
initArtifactScopeHP1
protected void initArtifactScopeHP1(IMCVarDeclarationStatementsArtifactScope scope)
-
initArtifactScopeHP2
protected void initArtifactScopeHP2(IMCVarDeclarationStatementsArtifactScope scope)
-
addToScopeStack
public void addToScopeStack(IMCVarDeclarationStatementsScope scope)
-
-