public String getName() { String _join = IterableExtensions.join(this.simpleNames, "."); return ((this.packageName + ".") + _join); }
/** * @since 2.9 */ public static String getDefaultArgumentList(ParserRule rule) { String result = IterableExtensions.join(rule.getParameters(), "[", ", ", "]", new Functions.Function1<Parameter, String>() { @Override public String apply(Parameter p) { return Boolean.FALSE.toString(); } }); return result; }
public String getXPath(final ReferenceLink referenceLink, final ServiceDataResource containingDataResource) { String _join = IterableExtensions.join(this.getPathToAtomLinkWithNs(referenceLink, containingDataResource), "/"); String _plus = ("/" + _join); return (_plus + "/atom:link"); }
private String getSimpleMethodName(final TypeReference type) { String _join = IterableExtensions.join(type.getSimpleNames(), "$"); final Function1<TypeReference, CharSequence> _function = (TypeReference it) -> { return this.getSimpleMethodName(it); }; String _join_1 = IterableExtensions.<TypeReference>join(type.getTypeArguments(), "$", "$", "", _function); return (_join + _join_1); }
private File getFolder() { File _xblockexpression = null; { final Function1<Object, String> _function = (Object it) -> { return this.resolveForFolder(it); }; final String path = IterableExtensions.join(ListExtensions.<Object, String>map(this.folderComponents, _function), "/"); final File dir = new File(path); dir.mkdirs(); _xblockexpression = dir; } return _xblockexpression; }
private void logState() { getLog().info("Encoding: " + (encoding == null ? "not set. Encoding provider will be used." : encoding)); getLog().info("Compiler source level: " + compilerSourceLevel); getLog().info("Compiler target level: " + compilerTargetLevel); if (getLog().isDebugEnabled()) { getLog().debug("Source dirs: " + IterableExtensions.join(sourceRoots, ", ")); getLog().debug("Java source dirs: " + IterableExtensions.join(javaSourceRoots, ", ")); getLog().debug("Classpath entries: " + IterableExtensions.join(getClasspathElements(), ", ")); } }
@Override public String toString(final QualifiedName name) { if ((name == null)) { throw new IllegalArgumentException("Qualified name cannot be null"); } final Function1<String, String> _function = new Function1<String, String>() { @Override public String apply(final String it) { return ElkGraphQualifiedNameConverter.this.idValueConverter.toString(it); } }; return IterableExtensions.join(ListExtensions.<String, String>map(name.getSegments(), _function), ElkGraphQualifiedNameConverter.DELIMITER); } }
@Override public String toString() { String _name = this.getName(); final Function1<TypeReference, CharSequence> _function = (TypeReference it) -> { return it.toString(); }; String _join = IterableExtensions.<TypeReference>join(this.typeArguments, "<", ", ", ">", _function); return (_name + _join); }
protected String generateImports() { final Function1<String, String> _function = (String it) -> { return (("import " + it) + ";\n"); }; return IterableExtensions.join(ListExtensions.<String, String>map(IterableExtensions.<String>sort(this.imports), _function), ""); }
public String getXsdFilePath(final ResourceAPI resourceAPI) { try { final GenTemplateTraceItem item = GenTemplateTraceUtils.getTraceItem(this.xsdTrace, "file", "sourceData", this.locator.<ResourceAPI>locate(resourceAPI)); final Path outDir = Paths.get(this.context.getOutputDirectory().getAbsolutePath()); final Path file = Paths.get(item.getOutputFile().getAbsolutePath()); return IterableExtensions.join(outDir.relativize(file), "/"); } catch (Throwable _e) { throw Exceptions.sneakyThrow(_e); } }
public String getDocHtml(final String summary, final String doc) { String _join = IterableExtensions.join(IterableExtensions.<String>filterNull(Collections.<String>unmodifiableList(CollectionLiterals.<String>newArrayList(summary, doc))), "\n\n"); String _processMarkdown = null; if (_join!=null) { _processMarkdown=this.processMarkdown(_join); } return this.wrap(_processMarkdown); }
private String getArrayShape(final Object obj) { final Function1<Object, String> _function = (Object it) -> { return this.getArrayBounds(it); }; return IterableExtensions.join(ListExtensions.<Object, String>map(this.collectItemTypes(obj, false), _function)); }
private String getNamespace(final Object... components) { final Function1<Object, String> _function = (Object it) -> { return this.resolveForNamespace(it); }; return IterableExtensions.join(ListExtensions.<Object, String>map(((List<Object>)Conversions.doWrapArray(components)), _function), "."); }
private String generateCallParameters(final TestStep step, final TemplateContainer templateContainer) { String _xblockexpression = null; { final List<Pair<StepContent, Optional<JvmTypeReference>>> stepContentsWithTypes = this.getVariablesWithTypesInOrder(step, templateContainer); final Function1<Pair<StepContent, Optional<JvmTypeReference>>, Iterable<String>> _function = (Pair<StepContent, Optional<JvmTypeReference>> it) -> { return this.toParameterString(it.getKey(), it.getValue(), templateContainer, true); }; _xblockexpression = IterableExtensions.join(Iterables.<String>concat(ListExtensions.<Pair<StepContent, Optional<JvmTypeReference>>, Iterable<String>>map(stepContentsWithTypes, _function)), ", "); } return _xblockexpression; }
protected String elementAliasToIdentifier(final GrammarAlias.AbstractElementAlias alias) { final Set<String> rulesSet = CollectionLiterals.<String>newHashSet(); final String body = this.elementAliasToIdentifier(alias, rulesSet, false); final List<String> rulesList = CollectionLiterals.<String>newArrayList(((String[])Conversions.unwrapArray(rulesSet, String.class))); ListExtensions.<String>sortInplace(rulesList); final String rule = IterableExtensions.join(rulesList, "_"); return ((rule + "_") + body); } }
public String getConstructorAlreadyExistsMessage(final MutableTypeDeclaration it) { StringConcatenation _builder = new StringConcatenation(); _builder.append("Cannot create FinalFieldsConstructor as a constructor with the signature \"new("); String _join = IterableExtensions.join(this.getFinalFieldsConstructorArgumentTypes(it), ","); _builder.append(_join); _builder.append(")\" already exists."); return _builder.toString(); }
@Override public String toString() { StringConcatenation _builder = new StringConcatenation(); _builder.append("rootIndentLenght="); _builder.append(this.rootIndentLenght); _builder.newLineIfNotEmpty(); _builder.append(this.leadingText); String _join = IterableExtensions.join(this.lines); _builder.append(_join); _builder.newLineIfNotEmpty(); return _builder.toString(); }
protected String _buildReadExpression(final VariableReferencePathAccess varRef) { StringConcatenation _builder = new StringConcatenation(); String _variableToVarName = this.variableToVarName(varRef.getVariable()); _builder.append(_variableToVarName); final Function1<AccessPathElement, String> _function = (AccessPathElement it) -> { return this.jsonUtil.jsonPathReadAccessToString(it); }; String _join = IterableExtensions.join(ListExtensions.<AccessPathElement, String>map(varRef.getPath(), _function)); _builder.append(_join); return _builder.toString(); }
public String restoreString(final VariableReferencePathAccess varPathAccess) { StringConcatenation _builder = new StringConcatenation(); String _name = varPathAccess.getVariable().getName(); _builder.append(_name); final Function1<AccessPathElement, String> _function = (AccessPathElement it) -> { return this.restoreString(it); }; String _join = IterableExtensions.join(ListExtensions.<AccessPathElement, String>map(varPathAccess.getPath(), _function)); _builder.append(_join); return _builder.toString(); }
public String toLocationString(final AbstractTraceRegion traceRegion) { StringConcatenation _builder = new StringConcatenation(); String _string = traceRegion.getAssociatedSrcRelativePath().toString(); _builder.append(_string); _builder.append(":"); final Function1<ILocationData, String> _function = (ILocationData it) -> { return this.toReportableString(it); }; String _join = IterableExtensions.join(ListExtensions.<ILocationData, String>map(traceRegion.getAssociatedLocations(), _function), ", "); _builder.append(_join); return _builder.toString(); }