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


Java ECollections.toEList方法代码示例

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


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

示例1: getVariableDeclarations

import org.eclipse.emf.common.util.ECollections; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<VariableDeclaration> getVariableDeclarations() {
	EList<VariableDeclaration> _switchResult = null;
	boolean _matched = false;
	if (this instanceof VariableDeclaration) {
		_matched=true;
		_switchResult = ECollections.<VariableDeclaration>toEList(java.util.Collections.<VariableDeclaration>unmodifiableList(org.eclipse.xtext.xbase.lib.CollectionLiterals.<VariableDeclaration>newArrayList(((VariableDeclaration) this))));
	}
	if (!_matched) {
		if (this instanceof VariableBinding) {
			_matched=true;
			_switchResult = ECollections.<VariableDeclaration>toEList(Iterators.<VariableDeclaration>filter(this.eAllContents(), VariableDeclaration.class));
		}
	}
	if (!_matched) {
		_switchResult = ECollections.<VariableDeclaration>toEList(java.util.Collections.<VariableDeclaration>unmodifiableList(org.eclipse.xtext.xbase.lib.CollectionLiterals.<VariableDeclaration>newArrayList()));
	}
	return _switchResult;
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:24,代码来源:VariableDeclarationOrBindingImpl.java

示例2: getVarDecl

import org.eclipse.emf.common.util.ECollections; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<VariableDeclaration> getVarDecl() {
	final Function1<VariableDeclarationOrBinding, EList<VariableDeclaration>> _function = new Function1<VariableDeclarationOrBinding, EList<VariableDeclaration>>() {
		public EList<VariableDeclaration> apply(final VariableDeclarationOrBinding it) {
			return it.getVariableDeclarations();
		}
	};
	return ECollections.<VariableDeclaration>toEList(Iterables.<VariableDeclaration>concat(XcoreEListExtensions.<VariableDeclarationOrBinding, EList<VariableDeclaration>>map(this.getVarDeclsOrBindings(), _function)));
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:14,代码来源:VariableDeclarationContainerImpl.java

示例3: lineTags

import org.eclipse.emf.common.util.ECollections; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<LineTag> lineTags(final String title) {
	final Function1<LineTag, Boolean> _function = new Function1<LineTag, Boolean>() {
		public Boolean apply(final LineTag it) {
			String _title = it.getTitle().getTitle();
			return Boolean.valueOf(Objects.equal(_title, title));
		}
	};
	return ECollections.<LineTag>toEList(IterableExtensions.<LineTag>filter(this.getLineTags(), _function));
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:15,代码来源:DocletImpl.java

示例4: identityProvidersAtAllParents

import org.eclipse.emf.common.util.ECollections; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<net.menthor.onto2.ontouml.Class> identityProvidersAtAllParents() {
	ArrayList<net.menthor.onto2.ontouml.Class> result = CollectionLiterals.<net.menthor.onto2.ontouml.Class>newArrayList();
	EList<Classifier> _allParents = this.allParents();
	for (final Classifier p : _allParents) {
		if ((p instanceof net.menthor.onto2.ontouml.Class)) {
			boolean _isIdentityProviderClass = ((net.menthor.onto2.ontouml.Class)p).isIdentityProviderClass();
			if (_isIdentityProviderClass) {
				result.add(((net.menthor.onto2.ontouml.Class)p));
			}
		}
	}
	return ECollections.<net.menthor.onto2.ontouml.Class>toEList(result);
}
 
开发者ID:MenthorTools,项目名称:menthor-xcore,代码行数:19,代码来源:ClassImpl.java

示例5: classes

import org.eclipse.emf.common.util.ECollections; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<net.menthor.onto2.ontouml.Class> classes() {
	ArrayList<net.menthor.onto2.ontouml.Class> result = CollectionLiterals.<net.menthor.onto2.ontouml.Class>newArrayList();
	EList<ContainedElement> _elements = this.getElements();
	for (final ContainedElement e : _elements) {
		if ((e instanceof net.menthor.onto2.ontouml.Class)) {
			result.add(((net.menthor.onto2.ontouml.Class)e));
		}
	}
	return ECollections.<net.menthor.onto2.ontouml.Class>toEList(result);
}
 
开发者ID:MenthorTools,项目名称:menthor-xcore,代码行数:16,代码来源:ContainerImpl.java

示例6: allRelatedTypes

import org.eclipse.emf.common.util.ECollections; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<Type> allRelatedTypes() {
	ArrayList<Type> result = CollectionLiterals.<Type>newArrayList();
	EList<EndPoint> _allEnds = this.allEnds();
	for (final EndPoint ep : _allEnds) {
		{
			final Classifier type_ = ep.getEndType();
			boolean _notEquals = (!Objects.equal(type_, null));
			if (_notEquals) {
				result.add(((Type) type_));
			}
		}
	}
	return ECollections.<Type>toEList(result);
}
 
开发者ID:MenthorTools,项目名称:menthor-xcore,代码行数:20,代码来源:TypeImpl.java

示例7: specifics

import org.eclipse.emf.common.util.ECollections; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<Classifier> specifics() {
	ArrayList<Classifier> result = CollectionLiterals.<Classifier>newArrayList();
	EList<Generalization> _generalizations = this.getGeneralizations();
	for (final Generalization g : _generalizations) {
		Classifier _specific = g.getSpecific();
		result.add(_specific);
	}
	return ECollections.<Classifier>toEList(result);
}
 
开发者ID:MenthorTools,项目名称:menthor-xcore,代码行数:15,代码来源:GeneralizationSetImpl.java

示例8: children

import org.eclipse.emf.common.util.ECollections; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<Classifier> children() {
	ArrayList<Classifier> list = CollectionLiterals.<Classifier>newArrayList();
	EList<Generalization> _isGeneralIn = this.getIsGeneralIn();
	for (final Generalization g : _isGeneralIn) {
		Classifier _specific = g.getSpecific();
		list.add(_specific);
	}
	return ECollections.<Classifier>toEList(list);
}
 
开发者ID:MenthorTools,项目名称:menthor-xcore,代码行数:15,代码来源:ClassifierImpl.java

示例9: parents

import org.eclipse.emf.common.util.ECollections; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<Classifier> parents() {
	ArrayList<Classifier> list = CollectionLiterals.<Classifier>newArrayList();
	EList<Generalization> _isSpecificIn = this.getIsSpecificIn();
	for (final Generalization g : _isSpecificIn) {
		Classifier _general = g.getGeneral();
		list.add(_general);
	}
	return ECollections.<Classifier>toEList(list);
}
 
开发者ID:MenthorTools,项目名称:menthor-xcore,代码行数:15,代码来源:ClassifierImpl.java

示例10: allParents

import org.eclipse.emf.common.util.ECollections; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<Classifier> allParents() {
	ArrayList<Classifier> list = CollectionLiterals.<Classifier>newArrayList();
	EList<Classifier> _eList = ECollections.<Classifier>toEList(list);
	this.allParents(this, _eList);
	return ECollections.<Classifier>toEList(list);
}
 
开发者ID:MenthorTools,项目名称:menthor-xcore,代码行数:12,代码来源:ClassifierImpl.java

示例11: allChildren

import org.eclipse.emf.common.util.ECollections; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<Classifier> allChildren() {
	ArrayList<Classifier> list = CollectionLiterals.<Classifier>newArrayList();
	EList<Classifier> _eList = ECollections.<Classifier>toEList(list);
	this.allChildren(this, _eList);
	return ECollections.<Classifier>toEList(list);
}
 
开发者ID:MenthorTools,项目名称:menthor-xcore,代码行数:12,代码来源:ClassifierImpl.java

示例12: types

import org.eclipse.emf.common.util.ECollections; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<Type> types() {
	ArrayList<Type> result = CollectionLiterals.<Type>newArrayList();
	EList<ContainedElement> _elements = this.getElements();
	for (final ContainedElement e : _elements) {
		if ((e instanceof Type)) {
			result.add(((Type)e));
		}
	}
	return ECollections.<Type>toEList(result);
}
 
开发者ID:MenthorTools,项目名称:menthor-xcore,代码行数:16,代码来源:ContainerImpl.java

示例13: dataTypes

import org.eclipse.emf.common.util.ECollections; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<DataType> dataTypes() {
	ArrayList<DataType> result = CollectionLiterals.<DataType>newArrayList();
	EList<ContainedElement> _elements = this.getElements();
	for (final ContainedElement e : _elements) {
		if ((e instanceof DataType)) {
			result.add(((DataType)e));
		}
	}
	return ECollections.<DataType>toEList(result);
}
 
开发者ID:MenthorTools,项目名称:menthor-xcore,代码行数:16,代码来源:ContainerImpl.java

示例14: allClasses

import org.eclipse.emf.common.util.ECollections; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<net.menthor.onto2.ontouml.Class> allClasses() {
	ArrayList<net.menthor.onto2.ontouml.Class> result = CollectionLiterals.<net.menthor.onto2.ontouml.Class>newArrayList();
	EList<net.menthor.onto2.ontouml.Class> _eList = ECollections.<net.menthor.onto2.ontouml.Class>toEList(result);
	this.allClasses(this, _eList);
	return ECollections.<net.menthor.onto2.ontouml.Class>toEList(result);
}
 
开发者ID:MenthorTools,项目名称:menthor-xcore,代码行数:12,代码来源:ContainerImpl.java

示例15: allGeneralizationSets

import org.eclipse.emf.common.util.ECollections; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<GeneralizationSet> allGeneralizationSets() {
	ArrayList<GeneralizationSet> result = CollectionLiterals.<GeneralizationSet>newArrayList();
	EList<GeneralizationSet> _eList = ECollections.<GeneralizationSet>toEList(result);
	this.allGeneralizationSets(this, _eList);
	return ECollections.<GeneralizationSet>toEList(result);
}
 
开发者ID:MenthorTools,项目名称:menthor-xcore,代码行数:12,代码来源:ContainerImpl.java


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