Class ExpressionExtension
- java.lang.Object
-
- org.emftext.language.java.extensions.expressions.ExpressionExtension
-
public class ExpressionExtension extends Object
-
-
Constructor Summary
Constructors Constructor Description ExpressionExtension()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Type
getAlternativeType(Expression me)
static long
getArrayDimension(Expression me)
static Type
getOneType(Expression me, boolean alternative)
static TypeReference
getOneTypeReference(Expression me, boolean alternative)
static Type
getType(Expression me)
Returns the type of the expression considering all concrete subtypes of the Expression.
-
-
-
Method Detail
-
getType
public static Type getType(Expression me)
Returns the type of the expression considering all concrete subtypes of the Expression.- Parameters:
me
- the expression.- Returns:
- type of expression
-
getAlternativeType
public static Type getAlternativeType(Expression me)
-
getOneType
public static Type getOneType(Expression me, boolean alternative)
-
getOneTypeReference
public static TypeReference getOneTypeReference(Expression me, boolean alternative)
-
getArrayDimension
public static long getArrayDimension(Expression me)
-
-