Class ExpressionBasisTypeVisitor
- java.lang.Object
-
- de.monticore.types3.AbstractTypeVisitor
-
- de.monticore.expressions.expressionsbasis.types3.ExpressionBasisTypeVisitor
-
- All Implemented Interfaces:
ExpressionsBasisVisitor2,de.monticore.visitor.IVisitor
- Direct Known Subclasses:
ExpressionBasisCTTIVisitor,ExpressionBasisTypeIdAsConstructorTypeVisitor
public class ExpressionBasisTypeVisitor extends AbstractTypeVisitor implements ExpressionsBasisVisitor2
-
-
Field Summary
-
Fields inherited from class de.monticore.types3.AbstractTypeVisitor
ctx4Ast, LOG_NAME, tmpMap, type4Ast
-
-
Constructor Summary
Constructors Constructor Description ExpressionBasisTypeVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected java.util.Optional<SymTypeExpression>calculateNameExpression(ASTNameExpression expr)protected java.util.Optional<SymTypeExpression>calculateNameExpressionOrLogError(ASTNameExpression expr)voidendVisit(ASTLiteralExpression expr)voidendVisit(ASTNameExpression expr)note: this will not be called in a ASTFieldAccessExpression given the default ASTFieldAccessExpression traversal; given expr.voidsetWithinScopeResolver(WithinScopeBasicSymbolsResolver withinScopeResolver)Deprecated, for removal: This API element is subject to removal in a future version.is now a static delegate-
Methods inherited from class de.monticore.types3.AbstractTypeVisitor
getAsBasicSymbolsScope, getInferenceContext4Ast, getType4Ast, setContext4Ast, setType4Ast
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
setWithinScopeResolver
@Deprecated(forRemoval=true) public void setWithinScopeResolver(WithinScopeBasicSymbolsResolver withinScopeResolver)
Deprecated, for removal: This API element is subject to removal in a future version.is now a static delegate
-
endVisit
public void endVisit(ASTNameExpression expr)
note: this will not be called in a ASTFieldAccessExpression given the default ASTFieldAccessExpression traversal; given expr. a.b.c, "a" is a ASTNameExpression, however, in FieldAccessExpressions, the "a" is not required to have a type, as such the traversal is customized. Thus, here an expression type has to be calculated.- Specified by:
endVisitin interfaceExpressionsBasisVisitor2
-
calculateNameExpressionOrLogError
protected java.util.Optional<SymTypeExpression> calculateNameExpressionOrLogError(ASTNameExpression expr)
-
calculateNameExpression
protected java.util.Optional<SymTypeExpression> calculateNameExpression(ASTNameExpression expr)
-
endVisit
public void endVisit(ASTLiteralExpression expr)
- Specified by:
endVisitin interfaceExpressionsBasisVisitor2
-
-