SARLValidator.
| Modifier and type | Action and description |
|---|---|
| void | checkCast(ISARLValidator,JvmTypeReference,LightweightTypeReference,LightweightTypeReference)
Check the type. |
| boolean | checkCasts(ISARLValidator,XCastedExpression)
Check the overridable cast operators. |
| protected boolean | checkOverrideableCasts(ISARLValidator,SarlCastedExpression)
Check if the given cast expression has an associated overriding function. |
| protected boolean | isAmbiguousCastContext(JvmTypeReference,LightweightTypeReference,LightweightTypeReference)
Test if the enclosing cast expression is used in an context that make the casting operation mandatory in order to avoid ambiguity. |
| protected void | reportCastWarnings(ISARLValidator,JvmTypeReference,LightweightTypeReference,LightweightTypeReference)
Report the warnings associated to the casted expressions. |
new
def checkCast(ISARLValidator,JvmTypeReference,LightweightTypeReference,LightweightTypeReference)
def checkCasts(ISARLValidator,XCastedExpression) : boolean
protected def checkOverrideableCasts(ISARLValidator,SarlCastedExpression) : boolean
protected def isAmbiguousCastContext(JvmTypeReference,LightweightTypeReference,LightweightTypeReference) : boolean
protected def reportCastWarnings(ISARLValidator,JvmTypeReference,LightweightTypeReference,LightweightTypeReference)