本文整理汇总了Java中org.eclipse.xtext.serializer.ISerializationContext.getParserRule方法的典型用法代码示例。如果您正苦于以下问题:Java ISerializationContext.getParserRule方法的具体用法?Java ISerializationContext.getParserRule怎么用?Java ISerializationContext.getParserRule使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.xtext.serializer.ISerializationContext
的用法示例。
在下文中一共展示了ISerializationContext.getParserRule方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: sequence
import org.eclipse.xtext.serializer.ISerializationContext; //导入方法依赖的package包/类
@Override
public void sequence(ISerializationContext context, EObject semanticObject) {
EPackage epackage = semanticObject.eClass().getEPackage();
ParserRule rule = context.getParserRule();
Action action = context.getAssignedAction();
Set<Parameter> parameters = context.getEnabledBooleanParameters();
if (epackage == DslPackage.eINSTANCE)
switch (semanticObject.eClass().getClassifierID()) {
case DslPackage.DSL:
sequence_Dsl(context, (Dsl) semanticObject);
return;
case DslPackage.ENTRY:
sequence_Entry(context, (Entry) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
示例2: sequence
import org.eclipse.xtext.serializer.ISerializationContext; //导入方法依赖的package包/类
@Override
public void sequence(ISerializationContext context, EObject semanticObject) {
EPackage epackage = semanticObject.eClass().getEPackage();
ParserRule rule = context.getParserRule();
Action action = context.getAssignedAction();
Set<Parameter> parameters = context.getEnabledBooleanParameters();
if (epackage == PkmntcgoPackage.eINSTANCE)
switch (semanticObject.eClass().getClassifierID()) {
case PkmntcgoPackage.CARD:
sequence_Card(context, (Card) semanticObject);
return;
case PkmntcgoPackage.DECK:
sequence_Deck(context, (Deck) semanticObject);
return;
case PkmntcgoPackage.DECKS:
sequence_Decks(context, (Decks) semanticObject);
return;
case PkmntcgoPackage.ENERGY:
sequence_Energy(context, (Energy) semanticObject);
return;
case PkmntcgoPackage.POKEMON:
sequence_Pokemon(context, (Pokemon) semanticObject);
return;
case PkmntcgoPackage.TRAINER:
sequence_Trainer(context, (Trainer) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
示例3: sequence
import org.eclipse.xtext.serializer.ISerializationContext; //导入方法依赖的package包/类
@Override
public void sequence(ISerializationContext context, EObject semanticObject) {
EPackage epackage = semanticObject.eClass().getEPackage();
ParserRule rule = context.getParserRule();
Action action = context.getAssignedAction();
Set<Parameter> parameters = context.getEnabledBooleanParameters();
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
示例4: sequence
import org.eclipse.xtext.serializer.ISerializationContext; //导入方法依赖的package包/类
@Override
public void sequence(ISerializationContext context, EObject semanticObject) {
EPackage epackage = semanticObject.eClass().getEPackage();
ParserRule rule = context.getParserRule();
Action action = context.getAssignedAction();
Set<Parameter> parameters = context.getEnabledBooleanParameters();
if (epackage == N4mfPackage.eINSTANCE)
switch (semanticObject.eClass().getClassifierID()) {
case N4mfPackage.BOOTSTRAP_MODULE:
sequence_BootstrapModule(context, (BootstrapModule) semanticObject);
return;
case N4mfPackage.DECLARED_VERSION:
sequence_DeclaredVersion(context, (DeclaredVersion) semanticObject);
return;
case N4mfPackage.EXEC_MODULE:
sequence_ExecModule(context, (ExecModule) semanticObject);
return;
case N4mfPackage.EXTENDED_RUNTIME_ENVIRONMENT:
sequence_ExtendedRuntimeEnvironment(context, (ExtendedRuntimeEnvironment) semanticObject);
return;
case N4mfPackage.IMPLEMENTED_PROJECTS:
sequence_ImplementedProjects(context, (ImplementedProjects) semanticObject);
return;
case N4mfPackage.INIT_MODULES:
sequence_InitModules(context, (InitModules) semanticObject);
return;
case N4mfPackage.MODULE_FILTER:
sequence_ModuleFilter(context, (ModuleFilter) semanticObject);
return;
case N4mfPackage.MODULE_FILTER_SPECIFIER:
sequence_ModuleFilterSpecifier(context, (ModuleFilterSpecifier) semanticObject);
return;
case N4mfPackage.PROJECT_DEPENDENCIES:
sequence_ProjectDependencies(context, (ProjectDependencies) semanticObject);
return;
case N4mfPackage.PROJECT_DEPENDENCY:
sequence_ProjectDependency(context, (ProjectDependency) semanticObject);
return;
case N4mfPackage.PROJECT_DESCRIPTION:
sequence_ProjectDescription(context, (ProjectDescription) semanticObject);
return;
case N4mfPackage.PROJECT_REFERENCE:
sequence_ProjectReference(context, (ProjectReference) semanticObject);
return;
case N4mfPackage.PROVIDED_RUNTIME_LIBRARIES:
sequence_ProvidedRuntimeLibraries(context, (ProvidedRuntimeLibraries) semanticObject);
return;
case N4mfPackage.PROVIDED_RUNTIME_LIBRARY_DEPENDENCY:
sequence_ProvidedRuntimeLibraryDependency(context, (ProvidedRuntimeLibraryDependency) semanticObject);
return;
case N4mfPackage.REQUIRED_RUNTIME_LIBRARIES:
sequence_RequiredRuntimeLibraries(context, (RequiredRuntimeLibraries) semanticObject);
return;
case N4mfPackage.REQUIRED_RUNTIME_LIBRARY_DEPENDENCY:
sequence_RequiredRuntimeLibraryDependency(context, (RequiredRuntimeLibraryDependency) semanticObject);
return;
case N4mfPackage.SIMPLE_PROJECT_DESCRIPTION:
sequence_SimpleProjectDescription(context, (SimpleProjectDescription) semanticObject);
return;
case N4mfPackage.SOURCE_FRAGMENT:
sequence_SourceFragment(context, (SourceFragment) semanticObject);
return;
case N4mfPackage.TESTED_PROJECT:
sequence_TestedProject(context, (TestedProject) semanticObject);
return;
case N4mfPackage.TESTED_PROJECTS:
sequence_TestedProjects(context, (TestedProjects) semanticObject);
return;
case N4mfPackage.VERSION_CONSTRAINT:
sequence_VersionConstraint(context, (VersionConstraint) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
示例5: sequence
import org.eclipse.xtext.serializer.ISerializationContext; //导入方法依赖的package包/类
@Override
public void sequence(ISerializationContext context, EObject semanticObject) {
EPackage epackage = semanticObject.eClass().getEPackage();
ParserRule rule = context.getParserRule();
Action action = context.getAssignedAction();
Set<Parameter> parameters = context.getEnabledBooleanParameters();
if (epackage == MyDslPackage.eINSTANCE)
switch (semanticObject.eClass().getClassifierID()) {
case MyDslPackage.BUTTON:
sequence_Button(context, (Button) semanticObject);
return;
case MyDslPackage.CHECKBOX:
sequence_Checkbox(context, (Checkbox) semanticObject);
return;
case MyDslPackage.DESCRIPTION:
sequence_Description(context, (Description) semanticObject);
return;
case MyDslPackage.FOOTER:
sequence_Footer(context, (Footer) semanticObject);
return;
case MyDslPackage.HEADER:
sequence_Header(context, (Header) semanticObject);
return;
case MyDslPackage.LINK:
sequence_Link(context, (Link) semanticObject);
return;
case MyDslPackage.MENSAMODEL:
sequence_Mensamodel(context, (Mensamodel) semanticObject);
return;
case MyDslPackage.MENU:
sequence_Menu(context, (Menu) semanticObject);
return;
case MyDslPackage.NAV:
sequence_NAV(context, (NAV) semanticObject);
return;
case MyDslPackage.RADIO:
sequence_Radio(context, (Radio) semanticObject);
return;
case MyDslPackage.SELECTOR:
sequence_Selector(context, (Selector) semanticObject);
return;
case MyDslPackage.SIDEBAR:
sequence_Sidebar(context, (Sidebar) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
示例6: sequence
import org.eclipse.xtext.serializer.ISerializationContext; //导入方法依赖的package包/类
@Override
public void sequence(ISerializationContext context, EObject semanticObject) {
EPackage epackage = semanticObject.eClass().getEPackage();
ParserRule rule = context.getParserRule();
Action action = context.getAssignedAction();
Set<Parameter> parameters = context.getEnabledBooleanParameters();
if (epackage == BromiumPackage.eINSTANCE)
switch (semanticObject.eClass().getClassifierID()) {
case BromiumPackage.APPLICATION_ACTION:
sequence_ApplicationAction(context, (ApplicationAction) semanticObject);
return;
case BromiumPackage.CLICK_CLASS_BY_TEXT:
sequence_ClickClassByText(context, (ClickClassByText) semanticObject);
return;
case BromiumPackage.CLICK_CSS_SELECTOR:
sequence_ClickCssSelector(context, (ClickCssSelector) semanticObject);
return;
case BromiumPackage.ELEMENT_BY_CSS_TO_BE_PRESENT:
sequence_ElementByCssToBePresent(context, (ElementByCssToBePresent) semanticObject);
return;
case BromiumPackage.EXPECT_HTTP_REQUEST:
sequence_ExpectHttpRequest(context, (ExpectHttpRequest) semanticObject);
return;
case BromiumPackage.EXPOSED_PARAMETER:
sequence_ExposedParameter(context, (ExposedParameter) semanticObject);
return;
case BromiumPackage.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
case BromiumPackage.PAGE_LOAD:
sequence_PageLoad(context, (PageLoad) semanticObject);
return;
case BromiumPackage.PARAMETER_VALUE:
sequence_ParameterValue(context, (ParameterValue) semanticObject);
return;
case BromiumPackage.POSTCONDITION:
sequence_Postcondition(context, (Postcondition) semanticObject);
return;
case BromiumPackage.PRECONDITION:
sequence_Precondition(context, (Precondition) semanticObject);
return;
case BromiumPackage.SYNTAX_DEFINITION:
sequence_SyntaxDefinition(context, (SyntaxDefinition) semanticObject);
return;
case BromiumPackage.TEXT_OF_ELEMENT_WITH_CSS_SELECTOR_TO_BE:
sequence_TextOfElementWithCssSelectorToBe(context, (TextOfElementWithCssSelectorToBe) semanticObject);
return;
case BromiumPackage.THREE_DOTTED_VERSION:
sequence_ThreeDottedVersion(context, (ThreeDottedVersion) semanticObject);
return;
case BromiumPackage.TYPE_TEXT_IN_ELEMENT_FOUND_BY_CSS_SELECTOR:
sequence_TypeTextInElementFoundByCssSelector(context, (TypeTextInElementFoundByCssSelector) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
示例7: sequence
import org.eclipse.xtext.serializer.ISerializationContext; //导入方法依赖的package包/类
@Override
public void sequence(ISerializationContext context, EObject semanticObject) {
EPackage epackage = semanticObject.eClass().getEPackage();
ParserRule rule = context.getParserRule();
Action action = context.getAssignedAction();
Set<Parameter> parameters = context.getEnabledBooleanParameters();
if (epackage == GexpressionsPackage.eINSTANCE)
switch (semanticObject.eClass().getClassifierID()) {
case GexpressionsPackage.GADDITION_EXPRESSION:
sequence_GAdditionExpression(context, (GAdditionExpression) semanticObject);
return;
case GexpressionsPackage.GAND_EXPRESSION:
sequence_GAndExpression(context, (GAndExpression) semanticObject);
return;
case GexpressionsPackage.GBOOLEAN_EXPRESSION:
sequence_GBooleanExpression(context, (GBooleanExpression) semanticObject);
return;
case GexpressionsPackage.GBRACE_EXPRESSION:
sequence_GBraceExpression(context, (GBraceExpression) semanticObject);
return;
case GexpressionsPackage.GDOUBLE_EXPRESSION:
sequence_GDoubleExpression(context, (GDoubleExpression) semanticObject);
return;
case GexpressionsPackage.GENUM_LITERAL_EXPRESSION:
sequence_GEnumLiteralExpression(context, (GEnumLiteralExpression) semanticObject);
return;
case GexpressionsPackage.GEQUALITY_EXPRESSION:
sequence_GEqualityExpression(context, (GEqualityExpression) semanticObject);
return;
case GexpressionsPackage.GIF_EXPRESSION:
sequence_GIfExpression(context, (GIfExpression) semanticObject);
return;
case GexpressionsPackage.GIMPORT_STATEMENT:
sequence_GImportStatement(context, (GImportStatement) semanticObject);
return;
case GexpressionsPackage.GINTEGER_EXPRESSION:
sequence_GIntegerExpression(context, (GIntegerExpression) semanticObject);
return;
case GexpressionsPackage.GMULTIPLICATION_EXPRESSION:
sequence_GMultiplicationExpression(context, (GMultiplicationExpression) semanticObject);
return;
case GexpressionsPackage.GNAVIGATION_EXPRESSION:
sequence_GNavigationExpression(context, (GNavigationExpression) semanticObject);
return;
case GexpressionsPackage.GNEGATION_EXPRESSION:
sequence_GNegationExpression(context, (GNegationExpression) semanticObject);
return;
case GexpressionsPackage.GOR_EXPRESSION:
sequence_GOrExpression(context, (GOrExpression) semanticObject);
return;
case GexpressionsPackage.GPROGRAM:
sequence_GProgram(context, (GProgram) semanticObject);
return;
case GexpressionsPackage.GREFERENCE_EXPRESSION:
sequence_GReferenceExpression(context, (GReferenceExpression) semanticObject);
return;
case GexpressionsPackage.GRELATION_EXPRESSION:
sequence_GRelationExpression(context, (GRelationExpression) semanticObject);
return;
case GexpressionsPackage.GSTRING_EXPRESSION:
sequence_GStringExpression(context, (GStringExpression) semanticObject);
return;
case GexpressionsPackage.GXOR_EXPRESSION:
sequence_GXorExpression(context, (GXorExpression) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
示例8: sequence
import org.eclipse.xtext.serializer.ISerializationContext; //导入方法依赖的package包/类
@Override
public void sequence(ISerializationContext context, EObject semanticObject) {
EPackage epackage = semanticObject.eClass().getEPackage();
ParserRule rule = context.getParserRule();
Action action = context.getAssignedAction();
Set<Parameter> parameters = context.getEnabledBooleanParameters();
if (epackage == RestaurantePackage.eINSTANCE)
switch (semanticObject.eClass().getClassifierID()) {
case RestaurantePackage.BEBIDA_CALIENTE:
sequence_BebidaCaliente(context, (BebidaCaliente) semanticObject);
return;
case RestaurantePackage.BEBIDA_FRIA:
sequence_BebidaFria(context, (BebidaFria) semanticObject);
return;
case RestaurantePackage.COMPLEMENTO:
sequence_Complemento(context, (Complemento) semanticObject);
return;
case RestaurantePackage.INGREDIENTE:
sequence_Ingrediente(context, (Ingrediente) semanticObject);
return;
case RestaurantePackage.MENU:
sequence_Menu(context, (Menu) semanticObject);
return;
case RestaurantePackage.NUTRICIONAL:
sequence_Nutricional(context, (Nutricional) semanticObject);
return;
case RestaurantePackage.POSTRE:
sequence_Postre(context, (Postre) semanticObject);
return;
case RestaurantePackage.PRINCIPAL:
sequence_Principal(context, (Principal) semanticObject);
return;
case RestaurantePackage.PRODUCTO_O:
sequence_ProductoO(context, (ProductoO) semanticObject);
return;
case RestaurantePackage.PRODUCTO_Y:
sequence_ProductoY(context, (ProductoY) semanticObject);
return;
case RestaurantePackage.RESTAURANTE:
sequence_Restaurante(context, (Restaurante) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}