@Override public EClassifier caseCrossReference(CrossReference object) { return doSwitch(object.getType()); }
protected String addCrossRef(String result, AbstractElement ele) { if (!showAssignment) return result; CrossReference cr = GrammarUtil.containingCrossReference(ele); if (cr == null) return result; String name = cr.getType() != null && cr.getType().getClassifier() != null ? cr.getType().getClassifier() .getName() : "null"; return "[" + name + "|" + result + "]"; }
public EClass getCrossReferenceType() { if (element == null) return null; CrossReference cr = GrammarUtil.containingCrossReference(element); if (cr == null) return null; return (EClass) cr.getType().getClassifier(); }
@Check public void checkCrossReferenceType(CrossReference reference) { checkTypeIsEClass(reference.getType()); }
@Override public String caseCrossReference(CrossReference object) { String cr = "[" + object.getType().getClassifier().getName() + "]"; return addAssignemnt(cr, object) + card(object); }
protected IInstanceDescription tryConsumeVal() { if((value = current.getConsumable("contextRef",true)) == null) return null; IInstanceDescription obj = current.cloneAndConsume("contextRef"); if(value instanceof EObject) { // org::eclipse::xtext::impl::CrossReferenceImpl IInstanceDescription param = getDescr((EObject)value); if(param.isInstanceOf(grammarAccess.getCompoundDialogueAccess().getContextRefExternalReferenceCrossReference_0_4_0().getType().getClassifier())) { type = AssignmentType.CR; element = grammarAccess.getCompoundDialogueAccess().getContextRefExternalReferenceCrossReference_0_4_0(); return obj; } } return null; }
protected IInstanceDescription tryConsumeVal() { if((value = current.getConsumable("dtoType",true)) == null) return null; IInstanceDescription obj = current.cloneAndConsume("dtoType"); if(value instanceof EObject) { // org::eclipse::xtext::impl::CrossReferenceImpl IInstanceDescription param = getDescr((EObject)value); if(param.isInstanceOf(grammarAccess.getBusinessClassAssociationRoleReferenceAccess().getDtoTypeDtoCrossReference_2_0().getType().getClassifier())) { type = AssignmentType.CR; element = grammarAccess.getBusinessClassAssociationRoleReferenceAccess().getDtoTypeDtoCrossReference_2_0(); return obj; } } return null; }
@Override public IEObjectConsumer tryConsume() { if((value = eObjectConsumer.getConsumable("hiddenTokens",false)) == null) return null; IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("hiddenTokens"); if(value instanceof EObject) { // org::eclipse::xtext::impl::CrossReferenceImpl IEObjectConsumer param = createEObjectConsumer((EObject)value); if(param.isInstanceOf(grammarAccess.getGrammarAccess().getHiddenTokensAbstractRuleCrossReference_3_2_1_1_0().getType().getClassifier())) { type = AssignmentType.CROSS_REFERENCE; element = grammarAccess.getGrammarAccess().getHiddenTokensAbstractRuleCrossReference_3_2_1_1_0(); return obj; } } return null; }
@Override public IEObjectConsumer tryConsume() { if((value = eObjectConsumer.getConsumable("rule",true)) == null) return null; IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("rule"); if(value instanceof EObject) { // org::eclipse::xtext::impl::CrossReferenceImpl IEObjectConsumer param = createEObjectConsumer((EObject)value); if(param.isInstanceOf(grammarAccess.getPredicatedRuleCallAccess().getRuleAbstractRuleCrossReference_1_0().getType().getClassifier())) { type = AssignmentType.CROSS_REFERENCE; element = grammarAccess.getPredicatedRuleCallAccess().getRuleAbstractRuleCrossReference_1_0(); return obj; } } return null; }
@Override public IEObjectConsumer tryConsume() { if((value = eObjectConsumer.getConsumable("enumLiteral",true)) == null) return null; IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("enumLiteral"); if(value instanceof EObject) { // org::eclipse::xtext::impl::CrossReferenceImpl IEObjectConsumer param = createEObjectConsumer((EObject)value); if(param.isInstanceOf(grammarAccess.getEnumLiteralDeclarationAccess().getEnumLiteralEEnumLiteralCrossReference_0_0().getType().getClassifier())) { type = AssignmentType.CROSS_REFERENCE; element = grammarAccess.getEnumLiteralDeclarationAccess().getEnumLiteralEEnumLiteralCrossReference_0_0(); return obj; } } return null; }
@Override public IEObjectConsumer tryConsume() { if((value = eObjectConsumer.getConsumable("function",true)) == null) return null; IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("function"); if(value instanceof EObject) { // org::eclipse::xtext::impl::CrossReferenceImpl IEObjectConsumer param = createEObjectConsumer((EObject)value); if(param.isInstanceOf(grammarAccess.getCallAccess().getFunctionFunctionCrossReference_0_0().getType().getClassifier())) { type = AssignmentType.CROSS_REFERENCE; element = grammarAccess.getCallAccess().getFunctionFunctionCrossReference_0_0(); return obj; } } return null; }
protected IInstanceDescription tryConsumeVal() { if((value = current.getConsumable("contextRef",true)) == null) return null; IInstanceDescription obj = current.cloneAndConsume("contextRef"); if(value instanceof EObject) { // org::eclipse::xtext::impl::CrossReferenceImpl IInstanceDescription param = getDescr((EObject)value); if(param.isInstanceOf(grammarAccess.getMasterDetailAccess().getContextRefExternalReferenceCrossReference_4_0().getType().getClassifier())) { type = AssignmentType.CR; element = grammarAccess.getMasterDetailAccess().getContextRefExternalReferenceCrossReference_4_0(); return obj; } } return null; }
protected IInstanceDescription tryConsumeVal() { if((value = current.getConsumable("contextRef",true)) == null) return null; IInstanceDescription obj = current.cloneAndConsume("contextRef"); if(value instanceof EObject) { // org::eclipse::xtext::impl::CrossReferenceImpl IInstanceDescription param = getDescr((EObject)value); if(param.isInstanceOf(grammarAccess.getAutomatedProcessAccess().getContextRefExternalReferenceCrossReference_4_0().getType().getClassifier())) { type = AssignmentType.CR; element = grammarAccess.getAutomatedProcessAccess().getContextRefExternalReferenceCrossReference_4_0(); return obj; } } return null; }
protected IInstanceDescription tryConsumeVal() { if((value = current.getConsumable("contextRef",true)) == null) return null; IInstanceDescription obj = current.cloneAndConsume("contextRef"); if(value instanceof EObject) { // org::eclipse::xtext::impl::CrossReferenceImpl IInstanceDescription param = getDescr((EObject)value); if(param.isInstanceOf(grammarAccess.getLinkPathAccess().getContextRefExternalReferenceCrossReference_4_0().getType().getClassifier())) { type = AssignmentType.CR; element = grammarAccess.getLinkPathAccess().getContextRefExternalReferenceCrossReference_4_0(); return obj; } } return null; }
protected IInstanceDescription tryConsumeVal() { if((value = current.getConsumable("base",true)) == null) return null; IInstanceDescription obj = current.cloneAndConsume("base"); if(value instanceof EObject) { // org::eclipse::xtext::impl::CrossReferenceImpl IInstanceDescription param = getDescr((EObject)value); if(param.isInstanceOf(grammarAccess.getBusinessClassDtoAccess().getBaseExternalReferenceCrossReference_4_0().getType().getClassifier())) { type = AssignmentType.CR; element = grammarAccess.getBusinessClassDtoAccess().getBaseExternalReferenceCrossReference_4_0(); return obj; } } return null; }
@Override public IEObjectConsumer tryConsume() { if((value = eObjectConsumer.getConsumable("hiddenTokens",true)) == null) return null; IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("hiddenTokens"); if(value instanceof EObject) { // org::eclipse::xtext::impl::CrossReferenceImpl IEObjectConsumer param = createEObjectConsumer((EObject)value); if(param.isInstanceOf(grammarAccess.getGrammarAccess().getHiddenTokensAbstractRuleCrossReference_3_2_0_0().getType().getClassifier())) { type = AssignmentType.CROSS_REFERENCE; element = grammarAccess.getGrammarAccess().getHiddenTokensAbstractRuleCrossReference_3_2_0_0(); return obj; } } return null; }
@Override public IEObjectConsumer tryConsume() { if((value = eObjectConsumer.getConsumable("ePackage",true)) == null) return null; IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("ePackage"); if(value instanceof EObject) { // org::eclipse::xtext::impl::CrossReferenceImpl IEObjectConsumer param = createEObjectConsumer((EObject)value); if(param.isInstanceOf(grammarAccess.getGeneratedMetamodelAccess().getEPackageEPackageCrossReference_2_0().getType().getClassifier())) { type = AssignmentType.CROSS_REFERENCE; element = grammarAccess.getGeneratedMetamodelAccess().getEPackageEPackageCrossReference_2_0(); return obj; } } return null; }
@Override public IEObjectConsumer tryConsume() { if((value = eObjectConsumer.getConsumable("reference",true)) == null) return null; IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("reference"); if(value instanceof EObject) { // org::eclipse::xtext::impl::CrossReferenceImpl IEObjectConsumer param = createEObjectConsumer((EObject)value); if(param.isInstanceOf(grammarAccess.getXmadslVariableAccess().getReferenceReferenceableByXmadslVariableCrossReference_0_0().getType().getClassifier())) { type = AssignmentType.CROSS_REFERENCE; element = grammarAccess.getXmadslVariableAccess().getReferenceReferenceableByXmadslVariableCrossReference_0_0(); return obj; } } return null; }
protected IInstanceDescription tryConsumeVal() { if((value = current.getConsumable("contextRef",true)) == null) return null; IInstanceDescription obj = current.cloneAndConsume("contextRef"); if(value instanceof EObject) { // org::eclipse::xtext::impl::CrossReferenceImpl IInstanceDescription param = getDescr((EObject)value); if(param.isInstanceOf(grammarAccess.getContentFormAccess().getContextRefExternalReferenceCrossReference_4_0().getType().getClassifier())) { type = AssignmentType.CR; element = grammarAccess.getContentFormAccess().getContextRefExternalReferenceCrossReference_4_0(); return obj; } } return null; }
protected IInstanceDescription tryConsumeVal() { if((value = current.getConsumable("contextRef",true)) == null) return null; IInstanceDescription obj = current.cloneAndConsume("contextRef"); if(value instanceof EObject) { // org::eclipse::xtext::impl::CrossReferenceImpl IInstanceDescription param = getDescr((EObject)value); if(param.isInstanceOf(grammarAccess.getInteractiveProcessAccess().getContextRefExternalReferenceCrossReference_4_0().getType().getClassifier())) { type = AssignmentType.CR; element = grammarAccess.getInteractiveProcessAccess().getContextRefExternalReferenceCrossReference_4_0(); return obj; } } return null; }