Package de.monticore.types.check
Class AbstractDeriveFromExpression
java.lang.Object
de.monticore.types.check.AbstractDeriveFromExpression
- Direct Known Subclasses:
DeriveSymTypeOfAssignmentExpressions,DeriveSymTypeOfBitExpressions,DeriveSymTypeOfBSCommonExpressions,DeriveSymTypeOfExpression,DeriveSymTypeOfJavaClassExpressions,DeriveSymTypeOfLambdaExpressions,DeriveSymTypeOfUglyExpressions
Deprecated.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final StringDeprecated.protected TypeCheckResultDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SymTypeExpressionacceptThisAndReturnSymTypeExpression(ASTExpression expression) Deprecated.Helper method to calculate the SymTypeExpression of a subexpression in a traverse methodprotected SymTypeExpressionDeprecated.Helper method to calculate the SymTypeExpression of a subliteral in a traverse methodprotected List<SymTypeExpression> calculateInnerTypes(ASTExpression... expressions) Deprecated.protected booleancheckNotObscure(List<SymTypeExpression> typesOfInnerExpressions) Deprecated.getScope(IExpressionsBasisScope expressionsBasisScope) Deprecated.abstract ExpressionsBasisTraverserDeprecated.Deprecated.booleanDeprecated.test if the expression is of integral type (long, int, char, short, byte)booleanDeprecated.test if the expression is of numeric type (double, float, long, int, char, short, byte)protected voidDeprecated.voidsetTypeCheckResult(TypeCheckResult typeCheckResult) Deprecated.protected voidstoreResultOrLogError(SymTypeExpression result, ASTExpression expression, String errorCode) Deprecated.Helper method to store the calculated result or log an error if it is not present
-
Field Details
-
typeCheckResult
Deprecated. -
ERROR_MSG
Deprecated.- See Also:
-
-
Constructor Details
-
AbstractDeriveFromExpression
public AbstractDeriveFromExpression()Deprecated.
-
-
Method Details
-
getTraverser
Deprecated. -
getScope
Deprecated. -
setTypeCheckResult
Deprecated. -
getTypeCheckResult
Deprecated. -
logError
Deprecated. -
storeResultOrLogError
protected void storeResultOrLogError(SymTypeExpression result, ASTExpression expression, String errorCode) Deprecated.Helper method to store the calculated result or log an error if it is not present- Parameters:
result- the calculated resultexpression- the expression the SymTypeExpressions is calculated forerrorCode- the code which is logged in case of an error
-
acceptThisAndReturnSymTypeExpression
Deprecated.Helper method to calculate the SymTypeExpression of a subexpression in a traverse method- Parameters:
expression- the expression the SymTypeExpressions is calculated for- Returns:
- the SymTypeExpression of the expression
-
acceptThisAndReturnSymTypeExpression
Deprecated.Helper method to calculate the SymTypeExpression of a subliteral in a traverse method- Parameters:
literal- the literal the SymTypeExpressions is calculated for- Returns:
- the SymTypeExpression of the literal
-
isNumericType
Deprecated.test if the expression is of numeric type (double, float, long, int, char, short, byte) -
isIntegralType
Deprecated.test if the expression is of integral type (long, int, char, short, byte) -
calculateInnerTypes
Deprecated. -
checkNotObscure
Deprecated.
-
TypeCheck3instead.