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


Java CollectionLiterals.newLinkedHashSet方法代码示例

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


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

示例1: getExternalDependencies

import org.eclipse.xtext.xbase.lib.CollectionLiterals; //导入方法依赖的package包/类
@Override
public Set<ExternalDependency> getExternalDependencies() {
  final LinkedHashSet<ExternalDependency> deps = CollectionLiterals.<ExternalDependency>newLinkedHashSet();
  Set<ExternalDependency> _externalDependencies = super.getExternalDependencies();
  Iterables.<ExternalDependency>addAll(deps, _externalDependencies);
  ExternalDependency _externalDependency = new ExternalDependency();
  final Procedure1<ExternalDependency> _function = (ExternalDependency it) -> {
    ExternalDependency.P2Coordinates _p2 = it.getP2();
    _p2.setBundleId("org.junit");
    ExternalDependency.P2Coordinates _p2_1 = it.getP2();
    _p2_1.setVersion("4.12.0");
    ExternalDependency.MavenCoordinates _maven = it.getMaven();
    _maven.setGroupId("junit");
    ExternalDependency.MavenCoordinates _maven_1 = it.getMaven();
    _maven_1.setArtifactId("junit");
    ExternalDependency.MavenCoordinates _maven_2 = it.getMaven();
    _maven_2.setVersion("4.12");
    ExternalDependency.MavenCoordinates _maven_3 = it.getMaven();
    _maven_3.setScope(Scope.TESTCOMPILE);
  };
  ExternalDependency _doubleArrow = ObjectExtensions.<ExternalDependency>operator_doubleArrow(_externalDependency, _function);
  deps.add(_doubleArrow);
  return deps;
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:25,代码来源:TestProjectDescriptor.java

示例2: getExternalDependencies

import org.eclipse.xtext.xbase.lib.CollectionLiterals; //导入方法依赖的package包/类
@Override
public Set<ExternalDependency> getExternalDependencies() {
  LinkedHashSet<ExternalDependency> _xblockexpression = null;
  {
    final LinkedHashSet<ExternalDependency> deps = CollectionLiterals.<ExternalDependency>newLinkedHashSet();
    Set<ExternalDependency> _externalDependencies = super.getExternalDependencies();
    Iterables.<ExternalDependency>addAll(deps, _externalDependencies);
    boolean _isInlined = this.getTestProject().isInlined();
    if (_isInlined) {
      Set<ExternalDependency> _externalDependencies_1 = this.getTestProject().getExternalDependencies();
      Iterables.<ExternalDependency>addAll(deps, _externalDependencies_1);
    }
    _xblockexpression = deps;
  }
  return _xblockexpression;
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:17,代码来源:TestedProjectDescriptor.java

示例3: getSourceFolders

import org.eclipse.xtext.xbase.lib.CollectionLiterals; //导入方法依赖的package包/类
@Override
public Set<String> getSourceFolders() {
  LinkedHashSet<String> _xblockexpression = null;
  {
    final LinkedHashSet<String> sourceFolders = CollectionLiterals.<String>newLinkedHashSet();
    Set<String> _sourceFolders = super.getSourceFolders();
    Iterables.<String>addAll(sourceFolders, _sourceFolders);
    boolean _isInlined = this.getTestProject().isInlined();
    if (_isInlined) {
      Set<String> _sourceFolders_1 = this.getTestProject().getSourceFolders();
      Iterables.<String>addAll(sourceFolders, _sourceFolders_1);
    }
    _xblockexpression = sourceFolders;
  }
  return _xblockexpression;
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:17,代码来源:TestedProjectDescriptor.java

示例4: getAllAmbiguousTransitions

import org.eclipse.xtext.xbase.lib.CollectionLiterals; //导入方法依赖的package包/类
public Set<ISyntacticSequencerPDAProvider.ISynTransition> getAllAmbiguousTransitions() {
  final Set<ISyntacticSequencerPDAProvider.ISynTransition> result = CollectionLiterals.<ISyntacticSequencerPDAProvider.ISynTransition>newLinkedHashSet();
  List<ISyntacticSequencerPDAProvider.ISynAbsorberState> _allPDAs = this.getAllPDAs();
  for (final ISyntacticSequencerPDAProvider.ISynAbsorberState start : _allPDAs) {
    this.collectAllAmbiguousTransitions(start, result, CollectionLiterals.<Object>newHashSet());
  }
  return result;
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:9,代码来源:SyntacticSequencerExtensions.java

示例5: getExternalDependencies

import org.eclipse.xtext.xbase.lib.CollectionLiterals; //导入方法依赖的package包/类
@Override
public Set<ExternalDependency> getExternalDependencies() {
  LinkedHashSet<ExternalDependency> _xblockexpression = null;
  {
    final LinkedHashSet<ExternalDependency> deps = CollectionLiterals.<ExternalDependency>newLinkedHashSet();
    Set<ExternalDependency> _externalDependencies = super.getExternalDependencies();
    Iterables.<ExternalDependency>addAll(deps, _externalDependencies);
    ExternalDependency _createXtextDependency = ExternalDependency.createXtextDependency("org.eclipse.xtext.ide");
    deps.add(_createXtextDependency);
    ExternalDependency _createXtextDependency_1 = ExternalDependency.createXtextDependency("org.eclipse.xtext.xbase.ide");
    deps.add(_createXtextDependency_1);
    _xblockexpression = deps;
  }
  return _xblockexpression;
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:16,代码来源:IdeProjectDescriptor.java

示例6: getBinIncludes

import org.eclipse.xtext.xbase.lib.CollectionLiterals; //导入方法依赖的package包/类
@Override
public Set<String> getBinIncludes() {
  LinkedHashSet<String> _xblockexpression = null;
  {
    final LinkedHashSet<String> includes = CollectionLiterals.<String>newLinkedHashSet();
    Set<String> _binIncludes = super.getBinIncludes();
    Iterables.<String>addAll(includes, _binIncludes);
    includes.add("plugin.xml");
    _xblockexpression = includes;
  }
  return _xblockexpression;
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:13,代码来源:UiProjectDescriptor.java

示例7: getBinIncludes

import org.eclipse.xtext.xbase.lib.CollectionLiterals; //导入方法依赖的package包/类
public Set<String> getBinIncludes() {
  StringConcatenation _builder = new StringConcatenation();
  String _sourceFolder = this.sourceFolder(Outlet.META_INF);
  _builder.append(_sourceFolder);
  _builder.append("/");
  return CollectionLiterals.<String>newLinkedHashSet(".", _builder.toString());
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:8,代码来源:ProjectDescriptor.java

示例8: getExternalDependencies

import org.eclipse.xtext.xbase.lib.CollectionLiterals; //导入方法依赖的package包/类
public Set<ExternalDependency> getExternalDependencies() {
  final LinkedHashSet<ExternalDependency> deps = CollectionLiterals.<ExternalDependency>newLinkedHashSet();
  Set<EPackageInfo> _ePackageInfos = this.config.getEcore2Xtext().getEPackageInfos();
  for (final EPackageInfo ePackage : _ePackageInfos) {
    ExternalDependency _createBundleDependency = ExternalDependency.createBundleDependency(ePackage.getBundleID());
    deps.add(_createBundleDependency);
  }
  return deps;
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:10,代码来源:ProjectDescriptor.java

示例9: getDevelopmentBundles

import org.eclipse.xtext.xbase.lib.CollectionLiterals; //导入方法依赖的package包/类
@Override
public Set<String> getDevelopmentBundles() {
  final LinkedHashSet<String> result = CollectionLiterals.<String>newLinkedHashSet(
    "org.eclipse.xtext.xbase", 
    "org.eclipse.xtext.common.types", 
    "org.eclipse.xtext.xtext.generator", 
    "org.eclipse.emf.codegen.ecore", 
    "org.eclipse.emf.mwe.utils", 
    "org.eclipse.emf.mwe2.launch", 
    "org.eclipse.emf.mwe2.lib", 
    "org.objectweb.asm", 
    "org.apache.commons.logging", 
    "org.apache.log4j", 
    "com.ibm.icu");
  boolean _isFromExistingEcoreModels = this.isFromExistingEcoreModels();
  if (_isFromExistingEcoreModels) {
    final Function1<EPackageInfo, Boolean> _function = (EPackageInfo it) -> {
      String _fileExtension = it.getGenmodelURI().fileExtension();
      return Boolean.valueOf(Objects.equal(_fileExtension, "xcore"));
    };
    boolean _exists = IterableExtensions.<EPackageInfo>exists(this.getConfig().getEcore2Xtext().getEPackageInfos(), _function);
    if (_exists) {
      result.add("org.eclipse.emf.ecore.xcore");
    }
    result.add("org.eclipse.xtext.generator");
  }
  return result;
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:29,代码来源:RuntimeProjectDescriptor.java

示例10: getBinIncludes

import org.eclipse.xtext.xbase.lib.CollectionLiterals; //导入方法依赖的package包/类
@Override
public Set<String> getBinIncludes() {
  LinkedHashSet<String> _xblockexpression = null;
  {
    final LinkedHashSet<String> includes = CollectionLiterals.<String>newLinkedHashSet();
    Set<String> _binIncludes = super.getBinIncludes();
    Iterables.<String>addAll(includes, _binIncludes);
    if (this.withPluginXml) {
      includes.add("plugin.xml");
    }
    _xblockexpression = includes;
  }
  return _xblockexpression;
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:15,代码来源:RuntimeProjectDescriptor.java

示例11: getBinExcludes

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

示例12: getUpstreamProjects

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


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