Package de.monticore.types.check
Class DeriveSymTypeOfBitExpressions
java.lang.Object
de.monticore.types.check.AbstractDeriveFromExpression
de.monticore.types.check.DeriveSymTypeOfBitExpressions
- All Implemented Interfaces:
BitExpressionsHandler,BitExpressionsVisitor2,de.monticore.visitor.IHandler,de.monticore.visitor.IVisitor
@Deprecated
public class DeriveSymTypeOfBitExpressions
extends AbstractDeriveFromExpression
implements BitExpressionsVisitor2, BitExpressionsHandler
Deprecated.
This Visitor can calculate a SymTypeExpression (type) for the expressions in BitExpressions
It can be combined with other expressions in your language by creating a DelegatorVisitor
-
Field Summary
FieldsFields inherited from class de.monticore.types.check.AbstractDeriveFromExpression
ERROR_MSG, typeCheckResult -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SymTypeExpressioncalculateTypeBinary(SymTypeExpression leftResult, SymTypeExpression rightResult, String operator, de.se_rwth.commons.SourcePosition pos) Deprecated.protected SymTypeExpressioncalculateTypeShift(SymTypeExpression leftResult, SymTypeExpression rightResult, String op, de.se_rwth.commons.SourcePosition pos) Deprecated.protected SymTypeExpressionderiveBinary(ASTBinaryExpression expr, String operator) Deprecated.deriveShift(ASTShiftExpression expr, String op) Deprecated.protected SymTypeExpressiongetBinaryNumericPromotion(SymTypeExpression left, SymTypeExpression right, String op, de.se_rwth.commons.SourcePosition pos) Deprecated.helper method to calculate the type of the BinaryExpressionsDeprecated.voidsetTraverser(BitExpressionsTraverser traverser) Deprecated.protected SymTypeExpressionshiftCalculator(SymTypeExpression left, SymTypeExpression right, String op, de.se_rwth.commons.SourcePosition pos) Deprecated.helper method to calculate the type of the ShiftExpressions cannot be linked with the BinaryExpressions because they are not calculated the same wayvoidDeprecated.voidDeprecated.voidDeprecated.voidDeprecated.voidDeprecated.voidDeprecated.Methods inherited from class de.monticore.types.check.AbstractDeriveFromExpression
acceptThisAndReturnSymTypeExpression, acceptThisAndReturnSymTypeExpression, calculateInnerTypes, checkNotObscure, getScope, getTypeCheckResult, isIntegralType, isNumericType, logError, setTypeCheckResult, storeResultOrLogErrorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.monticore.expressions.bitexpressions._visitor.BitExpressionsHandler
handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, traverse, traverse, traverse, traverseMethods inherited from interface de.monticore.expressions.bitexpressions._visitor.BitExpressionsVisitor2
endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitMethods 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
-
traverser
Deprecated.
-
-
Constructor Details
-
DeriveSymTypeOfBitExpressions
public DeriveSymTypeOfBitExpressions()Deprecated.
-
-
Method Details
-
setTraverser
Deprecated.- Specified by:
setTraverserin interfaceBitExpressionsHandler
-
getTraverser
Deprecated.- Specified by:
getTraverserin interfaceBitExpressionsHandler- Specified by:
getTraverserin interfacede.monticore.visitor.IHandler- Specified by:
getTraverserin classAbstractDeriveFromExpression
-
traverse
Deprecated.- Specified by:
traversein interfaceBitExpressionsHandler
-
traverse
Deprecated.- Specified by:
traversein interfaceBitExpressionsHandler
-
traverse
Deprecated.- Specified by:
traversein interfaceBitExpressionsHandler
-
deriveShift
Deprecated. -
calculateTypeShift
protected SymTypeExpression calculateTypeShift(SymTypeExpression leftResult, SymTypeExpression rightResult, String op, de.se_rwth.commons.SourcePosition pos) Deprecated. -
shiftCalculator
protected SymTypeExpression shiftCalculator(SymTypeExpression left, SymTypeExpression right, String op, de.se_rwth.commons.SourcePosition pos) Deprecated.helper method to calculate the type of the ShiftExpressions cannot be linked with the BinaryExpressions because they are not calculated the same way -
traverse
Deprecated.- Specified by:
traversein interfaceBitExpressionsHandler
-
traverse
Deprecated.- Specified by:
traversein interfaceBitExpressionsHandler
-
traverse
Deprecated.- Specified by:
traversein interfaceBitExpressionsHandler
-
deriveBinary
Deprecated. -
calculateTypeBinary
protected SymTypeExpression calculateTypeBinary(SymTypeExpression leftResult, SymTypeExpression rightResult, String operator, de.se_rwth.commons.SourcePosition pos) Deprecated. -
getBinaryNumericPromotion
protected SymTypeExpression getBinaryNumericPromotion(SymTypeExpression left, SymTypeExpression right, String op, de.se_rwth.commons.SourcePosition pos) Deprecated.helper method to calculate the type of the BinaryExpressions
-
TypeCheck3instead.