本文整理汇总了Java中org.eclipse.xtext.Action类的典型用法代码示例。如果您正苦于以下问题:Java Action类的具体用法?Java Action怎么用?Java Action使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Action类属于org.eclipse.xtext包,在下文中一共展示了Action类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: sequence
import org.eclipse.xtext.Action; //导入依赖的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.Action; //导入依赖的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.Action; //导入依赖的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));
}
示例4: sequence
import org.eclipse.xtext.Action; //导入依赖的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));
}
示例5: sequence_Action
import org.eclipse.xtext.Action; //导入依赖的package包/类
/**
* Contexts:
* Action returns Action
*
* Constraint:
* (name=NameID (attributes+=ParameterDecl attributes+=ParameterDecl*)? title=STRING? (annotations+=Annotation annotations+=Annotation*)?)
*/
protected void sequence_Action(ISerializationContext context, org.eclipse.cmf.occi.core.Action semanticObject) {
genericSequencer.createSequence(context, semanticObject);
}
示例6: getEnvironmentVariableAction_0
import org.eclipse.xtext.Action; //导入依赖的package包/类
public Action getEnvironmentVariableAction_0() { return cEnvironmentVariableAction_0; }
示例7: getAdditiveExpressionLhsAction_1_0_0_0
import org.eclipse.xtext.Action; //导入依赖的package包/类
public Action getAdditiveExpressionLhsAction_1_0_0_0() { return cAdditiveExpressionLhsAction_1_0_0_0; }
示例8: getTrainerAction_0
import org.eclipse.xtext.Action; //导入依赖的package包/类
public Action getTrainerAction_0() { return cTrainerAction_0; }
示例9: getEnergyAction_0
import org.eclipse.xtext.Action; //导入依赖的package包/类
public Action getEnergyAction_0() { return cEnergyAction_0; }
示例10: getN4InterfaceDeclarationAction_0_0_0
import org.eclipse.xtext.Action; //导入依赖的package包/类
public Action getN4InterfaceDeclarationAction_0_0_0() { return cN4InterfaceDeclarationAction_0_0_0; }
示例11: getPoliciesAction_0_0
import org.eclipse.xtext.Action; //导入依赖的package包/类
public Action getPoliciesAction_0_0() { return cPoliciesAction_0_0; }
示例12: getN4GetterDeclarationAction_0_0_0
import org.eclipse.xtext.Action; //导入依赖的package包/类
public Action getN4GetterDeclarationAction_0_0_0() { return cN4GetterDeclarationAction_0_0_0; }
示例13: getCommaExpressionExprsAction_1_0
import org.eclipse.xtext.Action; //导入依赖的package包/类
public Action getCommaExpressionExprsAction_1_0() { return cCommaExpressionExprsAction_1_0; }
示例14: getProvidedRuntimeLibrariesAction_0
import org.eclipse.xtext.Action; //导入依赖的package包/类
public Action getProvidedRuntimeLibrariesAction_0() { return cProvidedRuntimeLibrariesAction_0; }
示例15: getTMethodAction_0
import org.eclipse.xtext.Action; //导入依赖的package包/类
public Action getTMethodAction_0() { return cTMethodAction_0; }