Class MCJavaLiteralsScopesGenitor
java.lang.Object
de.monticore.literals.mcjavaliterals._symboltable.MCJavaLiteralsScopesGenitor
- All Implemented Interfaces:
MCJavaLiteralsHandler,MCJavaLiteralsVisitor2,de.monticore.visitor.IHandler,de.monticore.visitor.IVisitor
public class MCJavaLiteralsScopesGenitor
extends Object
implements MCJavaLiteralsVisitor2, MCJavaLiteralsHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IMCJavaLiteralsScopeprotected Deque<IMCJavaLiteralsScope> protected MCJavaLiteralsTraverser -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateFromAST(ASTIntLiteral rootNode) createScope(boolean shadowing) final Optional<IMCJavaLiteralsScope> protected voidprotected voidprotected voidinitScopeHP1(IMCJavaLiteralsScope scope) protected voidinitScopeHP2(IMCJavaLiteralsScope scope) voidputOnStack(IMCJavaLiteralsScope scope) final Optional<IMCJavaLiteralsScope> voidsetScopeStack(Deque<? extends IMCJavaLiteralsScope> scopeStack) voidsetTraverser(MCJavaLiteralsTraverser traverser) voidvisit(ASTDoubleLiteral node) voidvisit(ASTFloatLiteral node) voidvisit(ASTIntLiteral node) voidvisit(ASTLongLiteral node) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.monticore.visitor.IHandler
handle, handle, handle, handle, handle, traverse, traverseMethods inherited from interface de.monticore.visitor.IVisitor
endVisit, endVisit, endVisit, endVisit, visit, visit, visit, visit
-
Field Details
-
scopeStack
-
traverser
-
firstCreatedScope
-
-
Constructor Details
-
MCJavaLiteralsScopesGenitor
public MCJavaLiteralsScopesGenitor()
-
-
Method Details
-
getTraverser
- Specified by:
getTraverserin interfacede.monticore.visitor.IHandler- Specified by:
getTraverserin interfaceMCJavaLiteralsHandler
-
setTraverser
- Specified by:
setTraverserin interfaceMCJavaLiteralsHandler
-
getFirstCreatedScope
-
createFromAST
-
putOnStack
-
getCurrentScope
-
removeCurrentScope
-
setScopeStack
-
createScope
-
visit
- Specified by:
visitin interfaceMCJavaLiteralsVisitor2
-
visit
- Specified by:
visitin interfaceMCJavaLiteralsVisitor2
-
visit
- Specified by:
visitin interfaceMCJavaLiteralsVisitor2
-
visit
- Specified by:
visitin interfaceMCJavaLiteralsVisitor2
-
initScopeHP1
-
initScopeHP2
-
initArtifactScopeHP1
-
initArtifactScopeHP2
-
addToScopeStack
-