Package org.eclipse.xtext.xbase.util
Class XSwitchExpressions
- java.lang.Object
-
- org.eclipse.xtext.xbase.util.XSwitchExpressions
-
public class XSwitchExpressions extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description XSwitchExpressions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LightweightTypeReferencegetSwitchVariableType(XSwitchExpression it)XExpressiongetThen(XCasePart casePart, XSwitchExpression switchExpression)booleanisConstant(XCasePart casePart)booleanisJava7SwitchExpression(XSwitchExpression it)Determine whether the given switch expression is valid for Java version 7 or higher.booleanisJavaCaseExpression(XSwitchExpression it, XCasePart casePart)booleanisJavaSwitchExpression(XSwitchExpression it)Determine whether the given switch expression is valid for Java version 6 or lower.
-
-
-
Method Detail
-
isJavaSwitchExpression
public boolean isJavaSwitchExpression(XSwitchExpression it)
Determine whether the given switch expression is valid for Java version 6 or lower.
-
isJava7SwitchExpression
public boolean isJava7SwitchExpression(XSwitchExpression it)
Determine whether the given switch expression is valid for Java version 7 or higher.
-
isJavaCaseExpression
public boolean isJavaCaseExpression(XSwitchExpression it, XCasePart casePart)
-
getSwitchVariableType
public LightweightTypeReference getSwitchVariableType(XSwitchExpression it)
-
isConstant
public boolean isConstant(XCasePart casePart)
-
getThen
public XExpression getThen(XCasePart casePart, XSwitchExpression switchExpression)
-
-