Class DefiningSymbolHandler

java.lang.Object
de.monticore.types.check.helpers.DefiningSymbolHandler
All Implemented Interfaces:
CommonExpressionsHandler, ExpressionsBasisHandler, de.monticore.visitor.IHandler

public class DefiningSymbolHandler extends Object implements ExpressionsBasisHandler, CommonExpressionsHandler
Provides a handlers for CommonExpressions and ExpressionBasis that implement part of the logic of DefiningSymbolSetter. Compose this handler with a traverser and potentially handlers for other languages to get a full implementation. The traverser/handling pattern is used to downcast expressions to their real types. Thereby we can easily set ASTNameExpression.setDefiningSymbol(ISymbol) or similar methods while maintaining flexibility for language composition.