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 TypegetAlternativeType(Expression me)static longgetArrayDimension(Expression me)static TypegetOneType(Expression me, boolean alternative)static TypeReferencegetOneTypeReference(Expression me, boolean alternative)static TypegetType(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)
-
-