public class XSwitchExpressions
extends java.lang.Object
Constructor and Description |
---|
XSwitchExpressions() |
Modifier and Type | Method and Description |
---|---|
LightweightTypeReference |
getSwitchVariableType(XSwitchExpression it) |
XExpression |
getThen(XCasePart casePart,
XSwitchExpression switchExpression) |
boolean |
isConstant(XCasePart casePart) |
boolean |
isJava7SwitchExpression(XSwitchExpression it)
Determine whether the given switch expression is valid for Java version 7 or higher.
|
boolean |
isJavaCaseExpression(XSwitchExpression it,
XCasePart casePart) |
boolean |
isJavaSwitchExpression(XSwitchExpression it)
Determine whether the given switch expression is valid for Java version 6 or lower.
|
public boolean isJavaSwitchExpression(XSwitchExpression it)
public boolean isJava7SwitchExpression(XSwitchExpression it)
public boolean isJavaCaseExpression(XSwitchExpression it, XCasePart casePart)
public LightweightTypeReference getSwitchVariableType(XSwitchExpression it)
public boolean isConstant(XCasePart casePart)
public XExpression getThen(XCasePart casePart, XSwitchExpression switchExpression)