org.eclipse.xtext.xbase.serializer
Class XbaseSemanticSequencer
java.lang.Object
org.eclipse.xtext.serializer.sequencer.AbstractSemanticSequencer
org.eclipse.xtext.xbase.serializer.AbstractXbaseSemanticSequencer
org.eclipse.xtext.xbase.serializer.XbaseSemanticSequencer
- All Implemented Interfaces:
- ISemanticSequencer
public class XbaseSemanticSequencer
- extends AbstractXbaseSemanticSequencer
Method Summary |
protected java.lang.String |
getValidOperator(org.eclipse.emf.ecore.EObject semanticObject,
RuleCall ruleCall,
java.lang.Iterable<java.lang.String> names,
ICompositeNode node)
|
protected boolean |
isBuilderSyntax(XAbstractFeatureCall featureCall,
org.eclipse.emf.ecore.EReference reference,
boolean explicitOperationCall,
ISemanticNodeProvider.INodesForEObjectProvider nodes)
|
protected boolean |
isXShortClosure(org.eclipse.emf.ecore.EObject semanticObject,
org.eclipse.emf.ecore.EReference reference,
ISemanticNodeProvider.INodesForEObjectProvider nodes)
|
protected void |
sequence_XAdditiveExpression(org.eclipse.emf.ecore.EObject context,
XBinaryOperation operation)
Constraint:
(
(leftOperand=XAdditiveExpression_XBinaryOperation_1_0_0_0 feature=[JvmIdentifiableElement|OpAdd] rightOperand=XMultiplicativeExpression) |
(leftOperand=XMultiplicativeExpression_XBinaryOperation_1_0_0_0 feature=[JvmIdentifiableElement|OpMulti] rightOperand=XUnaryOperation) |
(leftOperand=XOtherOperatorExpression_XBinaryOperation_1_0_0_0 feature=[JvmIdentifiableElement|OpOther] rightOperand=XAdditiveExpression) |
(leftOperand=XRelationalExpression_XBinaryOperation_1_1_0_0_0 feature=[JvmIdentifiableElement|OpCompare] rightOperand=XOtherOperatorExpression) |
(leftOperand=XEqualityExpression_XBinaryOperation_1_0_0_0 feature=[JvmIdentifiableElement|OpEquality] rightOperand=XRelationalExpression) |
(leftOperand=XAndExpression_XBinaryOperation_1_0_0_0 feature=[JvmIdentifiableElement|OpAnd] rightOperand=XEqualityExpression) |
(leftOperand=XOrExpression_XBinaryOperation_1_0_0_0 feature=[JvmIdentifiableElement|OpOr] rightOperand=XAndExpression) |
(leftOperand=XAssignment_XBinaryOperation_1_1_0_0_0 feature=[JvmIdentifiableElement|OpMultiAssign] rightOperand=XAssignment)
) |
protected void |
sequence_XFeatureCall(org.eclipse.emf.ecore.EObject context,
XFeatureCall featureCall)
Constraint:
(
declaringType=[JvmDeclaredType|StaticQualifier]? |
protected void |
sequence_XMemberFeatureCall(org.eclipse.emf.ecore.EObject context,
XMemberFeatureCall featureCall)
Constraint:
(
memberCallTarget=XMemberFeatureCall_XMemberFeatureCall_1_1_0_0_0
(nullSafe? |
Methods inherited from class org.eclipse.xtext.xbase.serializer.AbstractXbaseSemanticSequencer |
createSequence, init, sequence_FullJvmFormalParameter, sequence_JvmFormalParameter, sequence_JvmLowerBound, sequence_JvmParameterizedTypeReference, sequence_JvmTypeParameter, sequence_JvmTypeReference, sequence_JvmUpperBound, sequence_JvmUpperBoundAnded, sequence_JvmWildcardTypeReference, sequence_XAssignment, sequence_XBlockExpression, sequence_XBooleanLiteral, sequence_XCasePart, sequence_XCastedExpression, sequence_XCatchClause, sequence_XClosure, sequence_XConstructorCall, sequence_XDoWhileExpression, sequence_XExpression, sequence_XExpressionInClosure, sequence_XForLoopExpression, sequence_XFunctionTypeRef, sequence_XIfExpression, sequence_XIntLiteral, sequence_XRelationalExpression, sequence_XReturnExpression, sequence_XShortClosure, sequence_XStringLiteral, sequence_XSwitchExpression, sequence_XThrowExpression, sequence_XTryCatchFinallyExpression, sequence_XTypeLiteral, sequence_XUnaryOperation, sequence_XVariableDeclaration, sequence_XWhileExpression |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OPERATOR_NOT_SUPPORTED
public static final java.lang.String OPERATOR_NOT_SUPPORTED
- See Also:
- Constant Field Values
XbaseSemanticSequencer
public XbaseSemanticSequencer()
sequence_XAdditiveExpression
protected void sequence_XAdditiveExpression(org.eclipse.emf.ecore.EObject context,
XBinaryOperation operation)
- Constraint:
(
(leftOperand=XAdditiveExpression_XBinaryOperation_1_0_0_0 feature=[JvmIdentifiableElement|OpAdd] rightOperand=XMultiplicativeExpression) |
(leftOperand=XMultiplicativeExpression_XBinaryOperation_1_0_0_0 feature=[JvmIdentifiableElement|OpMulti] rightOperand=XUnaryOperation) |
(leftOperand=XOtherOperatorExpression_XBinaryOperation_1_0_0_0 feature=[JvmIdentifiableElement|OpOther] rightOperand=XAdditiveExpression) |
(leftOperand=XRelationalExpression_XBinaryOperation_1_1_0_0_0 feature=[JvmIdentifiableElement|OpCompare] rightOperand=XOtherOperatorExpression) |
(leftOperand=XEqualityExpression_XBinaryOperation_1_0_0_0 feature=[JvmIdentifiableElement|OpEquality] rightOperand=XRelationalExpression) |
(leftOperand=XAndExpression_XBinaryOperation_1_0_0_0 feature=[JvmIdentifiableElement|OpAnd] rightOperand=XEqualityExpression) |
(leftOperand=XOrExpression_XBinaryOperation_1_0_0_0 feature=[JvmIdentifiableElement|OpOr] rightOperand=XAndExpression) |
(leftOperand=XAssignment_XBinaryOperation_1_1_0_0_0 feature=[JvmIdentifiableElement|OpMultiAssign] rightOperand=XAssignment)
)
- Overrides:
sequence_XAdditiveExpression
in class AbstractXbaseSemanticSequencer
getValidOperator
protected java.lang.String getValidOperator(org.eclipse.emf.ecore.EObject semanticObject,
RuleCall ruleCall,
java.lang.Iterable<java.lang.String> names,
ICompositeNode node)
sequence_XFeatureCall
protected void sequence_XFeatureCall(org.eclipse.emf.ecore.EObject context,
XFeatureCall featureCall)
- Constraint:
(
declaringType=[JvmDeclaredType|StaticQualifier]?
(typeArguments+=JvmArgumentTypeReference typeArguments+=JvmArgumentTypeReference*)?
feature=[JvmIdentifiableElement|IdOrSuper]
(explicitOperationCall?='(' (featureCallArguments+=XShortClosure | (featureCallArguments+=XExpression featureCallArguments+=XExpression*))?)?
)
Features:
feature[1, 1]
typeArguments[0, *]
featureCallArguments[1, *]
EXCLUDE_IF_UNSET explicitOperationCall
explicitOperationCall[0, 1]
MANDATORY_IF_SET featureCallArguments
EXCLUDE_IF_UNSET featureCallArguments
MANDATORY_IF_SET featureCallArguments
MANDATORY_IF_SET featureCallArguments
declaringType[0, 1]
- Overrides:
sequence_XFeatureCall
in class AbstractXbaseSemanticSequencer
isXShortClosure
protected boolean isXShortClosure(org.eclipse.emf.ecore.EObject semanticObject,
org.eclipse.emf.ecore.EReference reference,
ISemanticNodeProvider.INodesForEObjectProvider nodes)
isBuilderSyntax
protected boolean isBuilderSyntax(XAbstractFeatureCall featureCall,
org.eclipse.emf.ecore.EReference reference,
boolean explicitOperationCall,
ISemanticNodeProvider.INodesForEObjectProvider nodes)
sequence_XMemberFeatureCall
protected void sequence_XMemberFeatureCall(org.eclipse.emf.ecore.EObject context,
XMemberFeatureCall featureCall)
- Constraint:
(
memberCallTarget=XMemberFeatureCall_XMemberFeatureCall_1_1_0_0_0
(nullSafe?='?.' | spreading?='*.')?
(typeArguments+=JvmArgumentTypeReference typeArguments+=JvmArgumentTypeReference*)?
feature=[JvmIdentifiableElement|ID]
(explicitOperationCall?='(' (memberCallArguments+=XShortClosure | (memberCallArguments+=XExpression memberCallArguments+=XExpression*))?)?
)
Features:
feature[1, 1]
typeArguments[0, *]
memberCallTarget[1, 1]
memberCallArguments[1, *]
EXCLUDE_IF_UNSET explicitOperationCall
explicitOperationCall[0, 1]
MANDATORY_IF_SET memberCallArguments
EXCLUDE_IF_UNSET memberCallArguments
MANDATORY_IF_SET memberCallArguments
MANDATORY_IF_SET memberCallArguments
spreading[0, 1]
EXCLUDE_IF_SET nullSafe
nullSafe[0, 1]
EXCLUDE_IF_SET spreading
- Overrides:
sequence_XMemberFeatureCall
in class AbstractXbaseSemanticSequencer