本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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());
}
示例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;
}
示例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;
}
示例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;
}
示例11: getBinExcludes
import org.eclipse.xtext.xbase.lib.CollectionLiterals; //导入方法依赖的package包/类
/**
* @since 2.11
*/
public Set<String> getBinExcludes() {
return CollectionLiterals.<String>newLinkedHashSet("**/*.xtend");
}
示例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());
}