@Override public boolean isRecursive() { if ((this.recursive == null)) { this.recursive = Wrapper.<Boolean>wrap(Boolean.valueOf(this.internalIsRecursive())); } return (this.recursive.get()).booleanValue(); }
public void addImportedPackages(Set<String> packages) { String s = (String) getMainAttributes().get(IMPORT_PACKAGE); Wrapper<Boolean> modified = Wrapper.wrap(this.modified); String result = mergeIntoCommaSeparatedList(s, packages, modified); this.modified = modified.get(); getMainAttributes().put(IMPORT_PACKAGE, result); }
/** * adds the qualified names to the require-bundle attribute, if not already * present. * * @param bundles - passing parameterized bundled (e.g. versions, etc.) is not supported */ public void addRequiredBundles(Set<String> bundles) { // TODO manage transitive dependencies // don't require self Set<String> bundlesToMerge; String bundleName = (String) getMainAttributes().get(BUNDLE_NAME); if (bundleName != null && bundles.contains(bundleName) || projectName != null && bundles.contains(projectName)) { bundlesToMerge = new LinkedHashSet<String>(bundles); bundlesToMerge.remove(bundleName); bundlesToMerge.remove(projectName); } else { bundlesToMerge = bundles; } String s = (String) getMainAttributes().get(REQUIRE_BUNDLE); Wrapper<Boolean> modified = Wrapper.wrap(this.modified); String result = mergeIntoCommaSeparatedList(s, bundlesToMerge, modified); this.modified = modified.get(); getMainAttributes().put(REQUIRE_BUNDLE, result); }
/** * adds the qualified names to the export-package attribute, if not already * present. * * @param packages - passing parameterized packages is not supported */ public void addExportedPackages(Set<String> packages) { String s = (String) getMainAttributes().get(EXPORT_PACKAGE); Wrapper<Boolean> modified = Wrapper.wrap(this.modified); String result = mergeIntoCommaSeparatedList(s, packages, modified); this.modified = modified.get(); getMainAttributes().put(EXPORT_PACKAGE, result); }
Wrapper<Boolean> modified = Wrapper.wrap(this.modified); String result = mergeIntoCommaSeparatedList(s, bundlesToMerge, modified, lineDelimiter); this.modified = modified.get();
public void addImportedPackages(Set<String> packages) { String s = (String) getMainAttributes().get(IMPORT_PACKAGE); Wrapper<Boolean> modified = Wrapper.wrap(this.modified); String result = mergeIntoCommaSeparatedList(s, packages, modified, lineDelimiter); this.modified = modified.get(); getMainAttributes().put(IMPORT_PACKAGE, result); }
/** * adds the qualified names to the export-package attribute, if not already * present. * * @param packages - passing parameterized packages is not supported */ public void addExportedPackages(Set<String> packages) { String s = (String) getMainAttributes().get(EXPORT_PACKAGE); Wrapper<Boolean> modified = Wrapper.wrap(this.modified); String result = mergeIntoCommaSeparatedList(s, packages, modified, lineDelimiter); this.modified = modified.get(); getMainAttributes().put(EXPORT_PACKAGE, result); }
final Wrapper<Boolean> clear = Wrapper.wrap(Boolean.FALSE); try { delta.accept(new IResourceDeltaVisitor() {
protected void writeGrammar() { final Wrapper<Boolean> isSaving = Wrapper.<Boolean>wrap(Boolean.valueOf(false)); final ResourceSet cloneInto = new ResourceSetImpl(); Map<String, Object> _extensionToFactoryMap = cloneInto.getResourceFactoryRegistry().getExtensionToFactoryMap();
IScope parent, final boolean validStaticScope) { final Wrapper<IScope> wrapper = Wrapper.wrap(parent); synonymProvider.collectSynonymTypes(featureDeclarator, new SynonymTypesProvider.Acceptor() {
@Override protected Map<JvmTypeParameter, LightweightMergedBoundTypeArgument> getDeclaratorParameterMapping() { final Wrapper<Map<JvmTypeParameter, LightweightMergedBoundTypeArgument>> receiverTypeParameterMapping = Wrapper.wrap(Collections.<JvmTypeParameter, LightweightMergedBoundTypeArgument>emptyMap()); XExpression receiver = getReceiver(); if (receiver != null) {
final TypeConformanceComputationArgument rawConformanceCheck = new TypeConformanceComputationArgument(true, false, false, false, false, false); if (!declaringTypeReference.isAssignableFrom(receiverType, rawConformanceCheck)) { final Wrapper<LightweightTypeReference> expectedReceiverTypeWrapper = Wrapper.wrap(null); CommonTypeComputationServices services = receiverType.getOwner().getServices(); SynonymTypesProvider synonymProvider = services.getSynonymTypesProvider();