当前位置: 首页>>代码示例>>Java>>正文


Java EClass.getESuperTypes方法代码示例

本文整理汇总了Java中org.eclipse.emf.ecore.EClass.getESuperTypes方法的典型用法代码示例。如果您正苦于以下问题:Java EClass.getESuperTypes方法的具体用法?Java EClass.getESuperTypes怎么用?Java EClass.getESuperTypes使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.emf.ecore.EClass的用法示例。


在下文中一共展示了EClass.getESuperTypes方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: doSwitch

import org.eclipse.emf.ecore.EClass; //导入方法依赖的package包/类
/**
 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the first non-null result returned by a <code>caseXXX</code> call.
 * @generated
 */
protected T doSwitch(EClass theEClass, EObject theEObject) {
	if (theEClass.eContainer() == modelPackage) {
		return doSwitch(theEClass.getClassifierID(), theEObject);
	}
	else {
		List<EClass> eSuperTypes = theEClass.getESuperTypes();
		return
			eSuperTypes.isEmpty() ?
				defaultCase(theEObject) :
				doSwitch(eSuperTypes.get(0), theEObject);
	}
}
 
开发者ID:amritbhat786,项目名称:DocIT,代码行数:20,代码来源:CompanySwitch.java

示例2: buildIndexWithSuperTypes

import org.eclipse.emf.ecore.EClass; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
private void buildIndexWithSuperTypes(IdEObject eObject, EClass eClass) {
	if (!indexPerClassWithSubTypes.containsKey(eClass)) {
		indexPerClassWithSubTypes.put(eClass, new ArrayList<IdEObject>());
	}
	((List<IdEObject>) indexPerClassWithSubTypes.get(eClass)).add(eObject);
	for (EClass superClass : eClass.getESuperTypes()) {
		buildIndexWithSuperTypes(eObject, superClass);
	}
}
 
开发者ID:shenan4321,项目名称:BIMplatform,代码行数:11,代码来源:IfcModel.java

示例3: doSwitch

import org.eclipse.emf.ecore.EClass; //导入方法依赖的package包/类
/**
 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * 
 * @return the first non-null result returned by a <code>caseXXX</code> call.
 * @generated
 */
protected T doSwitch(EClass theEClass, EObject theEObject)
{
  if (theEClass.eContainer() == modelPackage)
  {
    return doSwitch(theEClass.getClassifierID(), theEObject);
  }
  else
  {
    List<EClass> eSuperTypes = theEClass.getESuperTypes();
    return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject);
  }
}
 
开发者ID:Morgan-Stanley,项目名称:Saturn,代码行数:20,代码来源:SingularitySwitch.java

示例4: doSwitch

import org.eclipse.emf.ecore.EClass; //导入方法依赖的package包/类
/**
 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @return the first non-null result returned by a <code>caseXXX</code> call.
 * @generated
 */
protected Object doSwitch(EClass theEClass, EObject theEObject) {
	if (theEClass.eContainer() == modelPackage) {
		return doSwitch(theEClass.getClassifierID(), theEObject);
	}
	else {
		List eSuperTypes = theEClass.getESuperTypes();
		return
			eSuperTypes.isEmpty() ?
				defaultCase(theEObject) :
				doSwitch((EClass)eSuperTypes.get(0), theEObject);
	}
}
 
开发者ID:TodorovicNikola,项目名称:SurveyDSL,代码行数:20,代码来源:QueryITSwitch.java


注:本文中的org.eclipse.emf.ecore.EClass.getESuperTypes方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。