| Package | Description |
|---|---|
| org.eclipse.xtext.xbase | |
| org.eclipse.xtext.xbase.compiler | |
| org.eclipse.xtext.xbase.controlflow | |
| org.eclipse.xtext.xbase.formatting | |
| org.eclipse.xtext.xbase.formatting2 | |
| org.eclipse.xtext.xbase.impl | |
| org.eclipse.xtext.xbase.interpreter.impl | |
| org.eclipse.xtext.xbase.serializer | |
| org.eclipse.xtext.xbase.typesystem.computation |
This package contains the primary hooks for the actual type computation in Xbase
as well as their respective base implementations.
|
| org.eclipse.xtext.xbase.util | |
| org.eclipse.xtext.xbase.validation |
| Modifier and Type | Method and Description |
|---|---|
XSwitchExpression |
XbaseFactory.createXSwitchExpression()
Returns a new object of class 'XSwitch Expression'
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
XbaseCompiler._toJavaExpression(XSwitchExpression expr,
ITreeAppendable b) |
protected void |
XbaseCompiler._toJavaIfElseStatement(XSwitchExpression expr,
ITreeAppendable b,
boolean isReferenced) |
protected void |
XbaseCompiler._toJavaIfStatement(XCasePart casePart,
List<XCasePart> fallThroughCases,
XSwitchExpression expr,
XExpression then,
ITreeAppendable b,
boolean isReferenced,
String switchResultName,
String matchedVariable,
String variableName) |
protected void |
XbaseCompiler._toJavaStatement(XSwitchExpression expr,
ITreeAppendable b,
boolean isReferenced) |
protected void |
XbaseCompiler._toJavaSwitchStatement(XSwitchExpression expr,
ITreeAppendable b,
boolean isReferenced) |
protected boolean |
XbaseCompiler.allCasesAreExitedEarly(XSwitchExpression expr) |
protected String |
XbaseCompiler.createSwitchLocalVariableName(XSwitchExpression expr) |
protected String |
XbaseCompiler.declareAndAppendSwitchSyntheticLocalVariable(XSwitchExpression expr,
String name,
ITreeAppendable b) |
protected String |
XbaseCompiler.declareLocalVariable(XSwitchExpression expr,
ITreeAppendable b) |
protected String |
XbaseCompiler.declareSwitchResultVariable(XSwitchExpression expr,
ITreeAppendable b,
boolean isReferenced) |
protected void |
XbaseCompiler.executeThenPart(XSwitchExpression expr,
String switchResultName,
XExpression then,
ITreeAppendable b,
boolean isReferenced) |
protected ILocationData |
XbaseCompiler.getLocationOfDefault(XSwitchExpression expression) |
protected Object |
XbaseCompiler.getSwitchExpressionKey(XSwitchExpression expr) |
protected String |
XbaseCompiler.getSwitchLocalVariableName(XSwitchExpression expr,
ITreeAppendable b) |
protected String |
XbaseCompiler.getSwitchLocalVariableSimpleName(XSwitchExpression expr) |
protected JvmTypeReference |
XbaseCompiler.getSwitchLocalVariableType(XSwitchExpression expr) |
protected boolean |
XbaseCompiler.isCompiledToJava7Switch(XSwitchExpression expr)
Determine whether the given switch expression should be compiled to a Java switch for Java version 7 or higher.
|
protected boolean |
XbaseCompiler.isCompiledToJavaSwitch(XSwitchExpression expr)
Determine whether the given switch expression should be compiled to a Java switch for Java version 6 or lower.
|
| Modifier and Type | Method and Description |
|---|---|
protected Collection<IEarlyExitComputer.ExitPoint> |
DefaultEarlyExitComputer._exitPoints(XSwitchExpression expression) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
XbaseFormatter2._format(XSwitchExpression expr,
FormattableDocument format)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
XbaseFormatter._format(XSwitchExpression expr,
IFormattableDocument format) |
| Modifier and Type | Class and Description |
|---|---|
class |
XSwitchExpressionImpl
An implementation of the model object 'XSwitch Expression'
|
| Modifier and Type | Method and Description |
|---|---|
XSwitchExpression |
XbaseFactoryImpl.createXSwitchExpression() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
XbaseInterpreter._doEvaluate(XSwitchExpression switchExpression,
IEvaluationContext context,
CancelIndicator indicator) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractXbaseSemanticSequencer.sequence_XSwitchExpression(org.eclipse.emf.ecore.EObject context,
XSwitchExpression semanticObject)
Deprecated.
|
protected void |
AbstractXbaseSemanticSequencer.sequence_XSwitchExpression(ISerializationContext context,
XSwitchExpression semanticObject)
Contexts:
XExpression returns XSwitchExpression
XAssignment returns XSwitchExpression
XAssignment.XBinaryOperation_1_1_0_0_0 returns XSwitchExpression
XOrExpression returns XSwitchExpression
XOrExpression.XBinaryOperation_1_0_0_0 returns XSwitchExpression
XAndExpression returns XSwitchExpression
XAndExpression.XBinaryOperation_1_0_0_0 returns XSwitchExpression
XEqualityExpression returns XSwitchExpression
XEqualityExpression.XBinaryOperation_1_0_0_0 returns XSwitchExpression
XRelationalExpression returns XSwitchExpression
XRelationalExpression.XInstanceOfExpression_1_0_0_0_0 returns XSwitchExpression
XRelationalExpression.XBinaryOperation_1_1_0_0_0 returns XSwitchExpression
XOtherOperatorExpression returns XSwitchExpression
XOtherOperatorExpression.XBinaryOperation_1_0_0_0 returns XSwitchExpression
XAdditiveExpression returns XSwitchExpression
XAdditiveExpression.XBinaryOperation_1_0_0_0 returns XSwitchExpression
XMultiplicativeExpression returns XSwitchExpression
XMultiplicativeExpression.XBinaryOperation_1_0_0_0 returns XSwitchExpression
XUnaryOperation returns XSwitchExpression
XCastedExpression returns XSwitchExpression
XCastedExpression.XCastedExpression_1_0_0_0 returns XSwitchExpression
XPostfixOperation returns XSwitchExpression
XPostfixOperation.XPostfixOperation_1_0_0 returns XSwitchExpression
XMemberFeatureCall returns XSwitchExpression
XMemberFeatureCall.XAssignment_1_0_0_0_0 returns XSwitchExpression
XMemberFeatureCall.XMemberFeatureCall_1_1_0_0_0 returns XSwitchExpression
XPrimaryExpression returns XSwitchExpression
XParenthesizedExpression returns XSwitchExpression
XSwitchExpression returns XSwitchExpression
XExpressionOrVarDeclaration returns XSwitchExpression
Constraint:
(
((declaredParam=JvmFormalParameter switch=XExpression) | (declaredParam=JvmFormalParameter?
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
XbaseTypeComputer._computeTypes(XSwitchExpression object,
ITypeComputationState state) |
protected List<XCasePart> |
XbaseTypeComputer.getCases(XSwitchExpression switchExpression)
Only for testing purpose.
|
protected ITypeComputationState |
XbaseTypeComputer.getSwitchExpressionState(XSwitchExpression expr,
ITypeComputationState state) |
| Modifier and Type | Method and Description |
|---|---|
T |
XbaseSwitch.caseXSwitchExpression(XSwitchExpression object)
Returns the result of interpreting the object as an instance of 'XSwitch Expression'
|
LightweightTypeReference |
XSwitchExpressions.getSwitchVariableType(XSwitchExpression it) |
XExpression |
XSwitchExpressions.getThen(XCasePart casePart,
XSwitchExpression switchExpression) |
boolean |
XSwitchExpressions.isJava7SwitchExpression(XSwitchExpression it)
Determine whether the given switch expression is valid for Java version 7 or higher.
|
boolean |
XSwitchExpressions.isJavaCaseExpression(XSwitchExpression it,
XCasePart casePart) |
boolean |
XSwitchExpressions.isJavaSwitchExpression(XSwitchExpression it)
Determine whether the given switch expression is valid for Java version 6 or lower.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
XbaseImplicitReturnFinder._findImplicitReturns(XSwitchExpression expression,
ImplicitReturnFinder.Acceptor acceptor) |
void |
EarlyExitValidator.checkDeadCode(XSwitchExpression switchExpression) |
void |
XbaseValidator.checkDuplicatedCases(XSwitchExpression switchExpression) |
void |
XbaseValidator.checkIncompleteCasesOnEnum(XSwitchExpression switchExpression) |
void |
XbaseValidator.checkLocalUsageOfSwitchParameter(XSwitchExpression switchExpression) |
void |
XbaseValidator.checkRedundantCase(XSwitchExpression switchExpression) |
void |
XbaseValidator.checkTypeGuardsOrder(XSwitchExpression expression) |
Copyright © 2015. All Rights Reserved.