io.sarl.lang.typesystem
Class SARLExpressionHelper
@javax.inject.Singleton
class SARLExpressionHelper
extends java.lang.Object
Helper on expressions.

This implementation extends the Xtend expression helper by assuming that any function with a name starting with "get", "is", "has" is a pure function. It also assumes that "equals", "hashCode", "clone" and "toString" are also pure functions.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
compiler
See:
"http://www.eclipse.org/Xtext/documentation.html#validation", IOperationHelper , SARLOperationHelper
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
boolean hasSideEffects(XAbstractFeatureCall,boolean)
java.lang.Boolean toBooleanPrimitiveWrapperConstant(XExpression)
Convert the boolean constant to the object equivalent if possible.
Constructor Details
new
new
Action Details
hasSideEffects(XAbstractFeatureCall,boolean)
def hasSideEffects(XAbstractFeatureCall,boolean) : boolean
toBooleanPrimitiveWrapperConstant(XExpression)
def toBooleanPrimitiveWrapperConstant(XExpression) : java.lang.Boolean
Convert the boolean constant to the object equivalent if possible.
Parameters:
expression - the expression to convert.
Returns:
one of the boolean constants TRUE or FALSE , or null if the expression is not a constant boolean expression.