本文整理汇总了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;
}
示例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)));
}
示例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));
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}