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


Java CollectionLiterals.emptySet方法代码示例

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


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

示例1: createContainer

import org.eclipse.xtext.xbase.lib.CollectionLiterals; //导入方法依赖的package包/类
protected IContainer createContainer(final IResourceDescriptions resourceDescriptions, final ChunkedResourceDescriptions chunkedResourceDescriptions, final String projectName) {
  IContainer _xifexpression = null;
  if ((resourceDescriptions instanceof LiveShadowedChunkedResourceDescriptions)) {
    _xifexpression = new LiveShadowedChunkedContainer(((LiveShadowedChunkedResourceDescriptions)resourceDescriptions), projectName);
  } else {
    ResourceDescriptionsData _elvis = null;
    ResourceDescriptionsData _container = chunkedResourceDescriptions.getContainer(projectName);
    if (_container != null) {
      _elvis = _container;
    } else {
      Set<IResourceDescription> _emptySet = CollectionLiterals.<IResourceDescription>emptySet();
      ResourceDescriptionsData _resourceDescriptionsData = new ResourceDescriptionsData(_emptySet);
      _elvis = _resourceDescriptionsData;
    }
    _xifexpression = new ResourceDescriptionsBasedContainer(_elvis);
  }
  return _xifexpression;
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:19,代码来源:ProjectDescriptionBasedContainerManager.java

示例2: getFQFeatureNamesToExclude

import org.eclipse.xtext.xbase.lib.CollectionLiterals; //导入方法依赖的package包/类
public Set<String> getFQFeatureNamesToExclude(final Grammar g) {
  Set<String> _xifexpression = null;
  Grammar _nonTerminalsSuperGrammar = GrammarUtil2.getNonTerminalsSuperGrammar(g);
  boolean _tripleNotEquals = (_nonTerminalsSuperGrammar != null);
  if (_tripleNotEquals) {
    Sets.SetView<String> _xblockexpression = null;
    {
      final Set<String> thisGrammarFqFeatureNames = IterableExtensions.<String>toSet(this.computeFQFeatureNames(g));
      final Function1<Grammar, Iterable<String>> _function = (Grammar it) -> {
        return this.computeFQFeatureNames(it);
      };
      final Set<String> superGrammarsFqFeatureNames = IterableExtensions.<String>toSet(Iterables.<String>concat(ListExtensions.<Grammar, Iterable<String>>map(GrammarUtil.allUsedGrammars(g), _function)));
      _xblockexpression = Sets.<String>intersection(thisGrammarFqFeatureNames, superGrammarsFqFeatureNames);
    }
    _xifexpression = _xblockexpression;
  } else {
    _xifexpression = CollectionLiterals.<String>emptySet();
  }
  return _xifexpression;
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:21,代码来源:ContentAssistFragment2.java

示例3: getGrammarConstraints

import org.eclipse.xtext.xbase.lib.CollectionLiterals; //导入方法依赖的package包/类
public Collection<IGrammarConstraintProvider.IConstraint> getGrammarConstraints(final Grammar grammar) {
  if ((grammar == null)) {
    return CollectionLiterals.<IGrammarConstraintProvider.IConstraint>emptySet();
  }
  final Function1<SerializationContextMap.Entry<IGrammarConstraintProvider.IConstraint>, IGrammarConstraintProvider.IConstraint> _function = (SerializationContextMap.Entry<IGrammarConstraintProvider.IConstraint> it) -> {
    return it.getValue();
  };
  return ListExtensions.<SerializationContextMap.Entry<IGrammarConstraintProvider.IConstraint>, IGrammarConstraintProvider.IConstraint>map(this.gcp.getConstraints(grammar).values(), _function);
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:10,代码来源:SemanticSequencerExtensions.java

示例4: getSourceFolders

import org.eclipse.xtext.xbase.lib.CollectionLiterals; //导入方法依赖的package包/类
@Override
public Set<? extends ISourceFolder> getSourceFolders() {
  return CollectionLiterals.<ISourceFolder>emptySet();
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:5,代码来源:UnknownProjectConfig.java

示例5: IndexState

import org.eclipse.xtext.xbase.lib.CollectionLiterals; //导入方法依赖的package包/类
public IndexState() {
  this(new ResourceDescriptionsData(CollectionLiterals.<IResourceDescription>emptySet()), new Source2GeneratedMapping());
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:4,代码来源:IndexState.java

示例6: getUpstreamProjects

import org.eclipse.xtext.xbase.lib.CollectionLiterals; //导入方法依赖的package包/类
public Set<? extends ProjectDescriptor> getUpstreamProjects() {
  return CollectionLiterals.<ProjectDescriptor>emptySet();
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:4,代码来源:ProjectDescriptor.java

示例7: getDevelopmentBundles

import org.eclipse.xtext.xbase.lib.CollectionLiterals; //导入方法依赖的package包/类
public Set<String> getDevelopmentBundles() {
  return CollectionLiterals.<String>emptySet();
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:4,代码来源:ProjectDescriptor.java


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