本文整理汇总了Java中org.eclipse.xtext.serializer.sequencer.ISemanticNodeProvider.INodesForEObjectProvider类的典型用法代码示例。如果您正苦于以下问题:Java INodesForEObjectProvider类的具体用法?Java INodesForEObjectProvider怎么用?Java INodesForEObjectProvider使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
INodesForEObjectProvider类属于org.eclipse.xtext.serializer.sequencer.ISemanticNodeProvider包,在下文中一共展示了INodesForEObjectProvider类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: sequence_StmtFOR
import org.eclipse.xtext.serializer.sequencer.ISemanticNodeProvider.INodesForEObjectProvider; //导入依赖的package包/类
/**
* Constraint:
* (tk_for=TK_FOR log_expr=Log_expr plan_term=Plan_term)
*/
protected void sequence_StmtFOR(EObject context, StmtFOR semanticObject) {
if(errorAcceptor != null) {
if(transientValues.isValueTransient(semanticObject, AslPackage.Literals.STMT_FOR__TK_FOR) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AslPackage.Literals.STMT_FOR__TK_FOR));
if(transientValues.isValueTransient(semanticObject, AslPackage.Literals.STMT_FOR__LOG_EXPR) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AslPackage.Literals.STMT_FOR__LOG_EXPR));
if(transientValues.isValueTransient(semanticObject, AslPackage.Literals.STMT_FOR__PLAN_TERM) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AslPackage.Literals.STMT_FOR__PLAN_TERM));
}
INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
feeder.accept(grammarAccess.getStmtFORAccess().getTk_forTK_FORParserRuleCall_0_0(), semanticObject.getTk_for());
feeder.accept(grammarAccess.getStmtFORAccess().getLog_exprLog_exprParserRuleCall_2_0(), semanticObject.getLog_expr());
feeder.accept(grammarAccess.getStmtFORAccess().getPlan_termPlan_termParserRuleCall_4_0(), semanticObject.getPlan_term());
feeder.finish();
}
示例2: sequence_StmtWHILE
import org.eclipse.xtext.serializer.sequencer.ISemanticNodeProvider.INodesForEObjectProvider; //导入依赖的package包/类
/**
* Constraint:
* (tk_while=TK_WHILE log_expr=Log_expr plan_term=Plan_term)
*/
protected void sequence_StmtWHILE(EObject context, StmtWHILE semanticObject) {
if(errorAcceptor != null) {
if(transientValues.isValueTransient(semanticObject, AslPackage.Literals.STMT_WHILE__TK_WHILE) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AslPackage.Literals.STMT_WHILE__TK_WHILE));
if(transientValues.isValueTransient(semanticObject, AslPackage.Literals.STMT_WHILE__LOG_EXPR) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AslPackage.Literals.STMT_WHILE__LOG_EXPR));
if(transientValues.isValueTransient(semanticObject, AslPackage.Literals.STMT_WHILE__PLAN_TERM) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AslPackage.Literals.STMT_WHILE__PLAN_TERM));
}
INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
feeder.accept(grammarAccess.getStmtWHILEAccess().getTk_whileTK_WHILEParserRuleCall_0_0(), semanticObject.getTk_while());
feeder.accept(grammarAccess.getStmtWHILEAccess().getLog_exprLog_exprParserRuleCall_2_0(), semanticObject.getLog_expr());
feeder.accept(grammarAccess.getStmtWHILEAccess().getPlan_termPlan_termParserRuleCall_4_0(), semanticObject.getPlan_term());
feeder.finish();
}
示例3: isXShortClosure
import org.eclipse.xtext.serializer.sequencer.ISemanticNodeProvider.INodesForEObjectProvider; //导入依赖的package包/类
protected boolean isXShortClosure(List<?> values, EReference reference, INodesForEObjectProvider nodes) {
if (values.isEmpty() || values.size() > 2 || !(values.get(0) instanceof XClosure))
return false;
XClosure closure = (XClosure) values.get(0);
if (!closure.isExplicitSyntax())
return false;
INode node = nodes.getNodeForMultiValue(reference, 0, 0, closure);
if (node != null) {
if (node.getGrammarElement() instanceof RuleCall)
return ((RuleCall) node.getGrammarElement()).getRule() == grammarAccess.getXShortClosureRule();
if (node.getGrammarElement() instanceof Action)
return node.getGrammarElement() == grammarAccess.getXShortClosureAccess().getXClosureAction_0_0_0();
return false;
}
return true;
}
示例4: isBuilderSyntax
import org.eclipse.xtext.serializer.sequencer.ISemanticNodeProvider.INodesForEObjectProvider; //导入依赖的package包/类
protected boolean isBuilderSyntax(List<?> values, EReference reference, INodesForEObjectProvider nodes) {
if (values.isEmpty())
return false;
int lastIndex = values.size() - 1;
Object lastValue = values.get(lastIndex);
if (!(lastValue instanceof XClosure))
return false;
INode node = nodes.getNodeForMultiValue(reference, lastIndex, lastIndex, values.get(lastIndex));
if (node != null) {
if (node.getGrammarElement() instanceof RuleCall)
return ((RuleCall) node.getGrammarElement()).getRule() == grammarAccess.getXClosureRule();
if (node.getGrammarElement() instanceof Action)
return node.getGrammarElement() == grammarAccess.getXClosureAccess().getXClosureAction_0_0_0();
return false;
}
return true;
}
示例5: sequence_Datatypes
import org.eclipse.xtext.serializer.sequencer.ISemanticNodeProvider.INodesForEObjectProvider; //导入依赖的package包/类
/**
* Constraint:
* (val1=Datatype1 val2=Datatype2 val3=Datatype3)
*/
protected void sequence_Datatypes(EObject context, Datatypes semanticObject) {
if(errorAcceptor != null) {
if(transientValues.isValueTransient(semanticObject, FormatterTestLanguagePackage.Literals.DATATYPES__VAL1) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, FormatterTestLanguagePackage.Literals.DATATYPES__VAL1));
if(transientValues.isValueTransient(semanticObject, FormatterTestLanguagePackage.Literals.DATATYPES__VAL2) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, FormatterTestLanguagePackage.Literals.DATATYPES__VAL2));
if(transientValues.isValueTransient(semanticObject, FormatterTestLanguagePackage.Literals.DATATYPES__VAL3) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, FormatterTestLanguagePackage.Literals.DATATYPES__VAL3));
}
INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
feeder.accept(grammarAccess.getDatatypesAccess().getVal1Datatype1ParserRuleCall_1_0(), semanticObject.getVal1());
feeder.accept(grammarAccess.getDatatypesAccess().getVal2Datatype2ParserRuleCall_3_0(), semanticObject.getVal2());
feeder.accept(grammarAccess.getDatatypesAccess().getVal3Datatype3ParserRuleCall_4_0(), semanticObject.getVal3());
feeder.finish();
}
示例6: sequence_TestOffset
import org.eclipse.xtext.serializer.sequencer.ISemanticNodeProvider.INodesForEObjectProvider; //导入依赖的package包/类
/**
* Constraint:
* (value=ID first=ID second=ID)
*/
protected void sequence_TestOffset(EObject context, TestOffset semanticObject) {
if(errorAcceptor != null) {
if(transientValues.isValueTransient(semanticObject, FormatterTestLanguagePackage.Literals.TEST_OFFSET__VALUE) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, FormatterTestLanguagePackage.Literals.TEST_OFFSET__VALUE));
if(transientValues.isValueTransient(semanticObject, FormatterTestLanguagePackage.Literals.TEST_OFFSET__FIRST) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, FormatterTestLanguagePackage.Literals.TEST_OFFSET__FIRST));
if(transientValues.isValueTransient(semanticObject, FormatterTestLanguagePackage.Literals.TEST_OFFSET__SECOND) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, FormatterTestLanguagePackage.Literals.TEST_OFFSET__SECOND));
}
INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
feeder.accept(grammarAccess.getTestOffsetAccess().getValueIDTerminalRuleCall_3_0(), semanticObject.getValue());
feeder.accept(grammarAccess.getTestOffsetAccess().getFirstIDTerminalRuleCall_5_0(), semanticObject.getFirst());
feeder.accept(grammarAccess.getTestOffsetAccess().getSecondIDTerminalRuleCall_6_0(), semanticObject.getSecond());
feeder.finish();
}
示例7: sequence_XForLoopExpression
import org.eclipse.xtext.serializer.sequencer.ISemanticNodeProvider.INodesForEObjectProvider; //导入依赖的package包/类
/**
* Constraint:
* (declaredParam=JvmFormalParameter forExpression=XExpression eachExpression=XExpression)
*/
protected void sequence_XForLoopExpression(EObject context, XForLoopExpression semanticObject) {
if(errorAcceptor != null) {
if(transientValues.isValueTransient(semanticObject, XbasePackage.Literals.XFOR_LOOP_EXPRESSION__FOR_EXPRESSION) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, XbasePackage.Literals.XFOR_LOOP_EXPRESSION__FOR_EXPRESSION));
if(transientValues.isValueTransient(semanticObject, XbasePackage.Literals.XFOR_LOOP_EXPRESSION__EACH_EXPRESSION) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, XbasePackage.Literals.XFOR_LOOP_EXPRESSION__EACH_EXPRESSION));
if(transientValues.isValueTransient(semanticObject, XbasePackage.Literals.XFOR_LOOP_EXPRESSION__DECLARED_PARAM) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, XbasePackage.Literals.XFOR_LOOP_EXPRESSION__DECLARED_PARAM));
}
INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
feeder.accept(grammarAccess.getXForLoopExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_0_0_3_0(), semanticObject.getDeclaredParam());
feeder.accept(grammarAccess.getXForLoopExpressionAccess().getForExpressionXExpressionParserRuleCall_1_0(), semanticObject.getForExpression());
feeder.accept(grammarAccess.getXForLoopExpressionAccess().getEachExpressionXExpressionParserRuleCall_3_0(), semanticObject.getEachExpression());
feeder.finish();
}
示例8: sequence_Position_Position
import org.eclipse.xtext.serializer.sequencer.ISemanticNodeProvider.INodesForEObjectProvider; //导入依赖的package包/类
/**
* Constraint:
* name=ID
*
* Features:
* name[1, 1]
*/
protected void sequence_Position_Position(EObject context, Position semanticObject) {
if(errorAcceptor != null) {
if(transientValues.isValueTransient(semanticObject, IOIPackage.Literals.POSITION__NAME) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, IOIPackage.Literals.POSITION__NAME));
}
INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
feeder.accept(grammarAccess.getPositionAccess().getNameIDTerminalRuleCall_1_0(), semanticObject.getName());
feeder.finish();
}
示例9: sequence_BooleanLiteral
import org.eclipse.xtext.serializer.sequencer.ISemanticNodeProvider.INodesForEObjectProvider; //导入依赖的package包/类
/**
* Constraint:
* value=BOOLEAN
*/
protected void sequence_BooleanLiteral(EObject context, BooleanLiteral semanticObject) {
if(errorAcceptor != null) {
if(transientValues.isValueTransient(semanticObject, KronusPackage.Literals.BOOLEAN_LITERAL__VALUE) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, KronusPackage.Literals.BOOLEAN_LITERAL__VALUE));
}
INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
feeder.accept(grammarAccess.getBooleanLiteralAccess().getValueBOOLEANParserRuleCall_0(), semanticObject.isValue());
feeder.finish();
}
示例10: sequence_DoubleLiteral
import org.eclipse.xtext.serializer.sequencer.ISemanticNodeProvider.INodesForEObjectProvider; //导入依赖的package包/类
/**
* Constraint:
* value=DOUBLE
*/
protected void sequence_DoubleLiteral(EObject context, DoubleLiteral semanticObject) {
if(errorAcceptor != null) {
if(transientValues.isValueTransient(semanticObject, KronusPackage.Literals.DOUBLE_LITERAL__VALUE) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, KronusPackage.Literals.DOUBLE_LITERAL__VALUE));
}
INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
feeder.accept(grammarAccess.getDoubleLiteralAccess().getValueDOUBLEParserRuleCall_0(), semanticObject.getValue());
feeder.finish();
}
示例11: sequence_ExportHashtag
import org.eclipse.xtext.serializer.sequencer.ISemanticNodeProvider.INodesForEObjectProvider; //导入依赖的package包/类
/**
* Constraint:
* ref=[HashtagDef|QN]
*/
protected void sequence_ExportHashtag(EObject context, ExportHashtag semanticObject) {
if(errorAcceptor != null) {
if(transientValues.isValueTransient(semanticObject, KronusPackage.Literals.EXPORT_HASHTAG__REF) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, KronusPackage.Literals.EXPORT_HASHTAG__REF));
}
INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
feeder.accept(grammarAccess.getExportHashtagAccess().getRefHashtagDefQNParserRuleCall_1_0_1(), semanticObject.getRef());
feeder.finish();
}
示例12: sequence_ExportRuntimeName
import org.eclipse.xtext.serializer.sequencer.ISemanticNodeProvider.INodesForEObjectProvider; //导入依赖的package包/类
/**
* Constraint:
* ref=[NamedRuntimeDef|QN]
*/
protected void sequence_ExportRuntimeName(EObject context, ExportRuntimeName semanticObject) {
if(errorAcceptor != null) {
if(transientValues.isValueTransient(semanticObject, KronusPackage.Literals.EXPORT_RUNTIME_NAME__REF) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, KronusPackage.Literals.EXPORT_RUNTIME_NAME__REF));
}
INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
feeder.accept(grammarAccess.getExportRuntimeNameAccess().getRefNamedRuntimeDefQNParserRuleCall_0_1(), semanticObject.getRef());
feeder.finish();
}
示例13: sequence_ImportDef
import org.eclipse.xtext.serializer.sequencer.ISemanticNodeProvider.INodesForEObjectProvider; //导入依赖的package包/类
/**
* Constraint:
* module=ModuleDef
*/
protected void sequence_ImportDef(EObject context, ImportDef semanticObject) {
if(errorAcceptor != null) {
if(transientValues.isValueTransient(semanticObject, KronusPackage.Literals.IMPORT_DEF__MODULE) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, KronusPackage.Literals.IMPORT_DEF__MODULE));
}
INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
feeder.accept(grammarAccess.getImportDefAccess().getModuleModuleDefParserRuleCall_1_0(), semanticObject.getModule());
feeder.finish();
}
示例14: sequence_IntegerLiteral
import org.eclipse.xtext.serializer.sequencer.ISemanticNodeProvider.INodesForEObjectProvider; //导入依赖的package包/类
/**
* Constraint:
* value=INT
*/
protected void sequence_IntegerLiteral(EObject context, IntegerLiteral semanticObject) {
if(errorAcceptor != null) {
if(transientValues.isValueTransient(semanticObject, KronusPackage.Literals.INTEGER_LITERAL__VALUE) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, KronusPackage.Literals.INTEGER_LITERAL__VALUE));
}
INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
feeder.accept(grammarAccess.getIntegerLiteralAccess().getValueINTTerminalRuleCall_0(), semanticObject.getValue());
feeder.finish();
}
示例15: sequence_KeywordParameterValue
import org.eclipse.xtext.serializer.sequencer.ISemanticNodeProvider.INodesForEObjectProvider; //导入依赖的package包/类
/**
* Constraint:
* (name=ID value=ValueOperation)
*/
protected void sequence_KeywordParameterValue(EObject context, KeywordParameterValue semanticObject) {
if(errorAcceptor != null) {
if(transientValues.isValueTransient(semanticObject, KronusPackage.Literals.PARAMETER_VALUE__VALUE) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, KronusPackage.Literals.PARAMETER_VALUE__VALUE));
if(transientValues.isValueTransient(semanticObject, KronusPackage.Literals.KEYWORD_PARAMETER_VALUE__NAME) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, KronusPackage.Literals.KEYWORD_PARAMETER_VALUE__NAME));
}
INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
feeder.accept(grammarAccess.getKeywordParameterValueAccess().getNameIDParserRuleCall_0_0(), semanticObject.getName());
feeder.accept(grammarAccess.getKeywordParameterValueAccess().getValueValueOperationParserRuleCall_2_0(), semanticObject.getValue());
feeder.finish();
}