Examples of newLineIfNotEmpty()


Examples of org.eclipse.xtend2.lib.StringConcatenation.newLineIfNotEmpty()

          public CharSequence compile(final CompilationStrategy.CompilationContext it) {
            StringConcatenation _builder = new StringConcatenation();
            String _builderClassName = ImmutableProcessor.this.builderClassName(cls);
            _builder.append(_builderClassName, "");
            _builder.append(" builder = builder();");
            _builder.newLineIfNotEmpty();
            _builder.append("init.apply(builder);");
            _builder.newLine();
            _builder.append("return builder.build();");
            _builder.newLine();
            return _builder;
View Full Code Here

Examples of org.eclipse.xtend2.lib.StringConcatenation.newLineIfNotEmpty()

            StringConcatenation _builder = new StringConcatenation();
            _builder.append("return new ");
            String _builderClassName = ImmutableProcessor.this.builderClassName(cls);
            _builder.append(_builderClassName, "");
            _builder.append("();");
            _builder.newLineIfNotEmpty();
            return _builder;
          }
        };
        it.setBody(_function);
      }
View Full Code Here

Examples of org.eclipse.xtend2.lib.StringConcatenation.newLineIfNotEmpty()

                _builder.append(_simpleName, "");
                _builder.append(" = ");
                String _simpleName_1 = p.getSimpleName();
                _builder.append(_simpleName_1, "");
                _builder.append(";");
                _builder.newLineIfNotEmpty();
              }
            }
            return _builder;
          }
        };
View Full Code Here

Examples of org.eclipse.xtend2.lib.StringConcatenation.newLineIfNotEmpty()

                StringConcatenation _builder = new StringConcatenation();
                _builder.append("return ");
                String _simpleName = field.getSimpleName();
                _builder.append(_simpleName, "");
                _builder.append(";");
                _builder.newLineIfNotEmpty();
                return _builder;
              }
            };
            it.setBody(_function);
          }
View Full Code Here

Examples of org.eclipse.xtend2.lib.StringConcatenation.newLineIfNotEmpty()

            StringConcatenation _builder = new StringConcatenation();
            _builder.append("if (o instanceof ");
            String _simpleName = cls.getSimpleName();
            _builder.append(_simpleName, "");
            _builder.append(") {");
            _builder.newLineIfNotEmpty();
            _builder.append("  ");
            String _simpleName_1 = cls.getSimpleName();
            _builder.append(_simpleName_1, "  ");
            _builder.append(" other = (");
            String _simpleName_2 = cls.getSimpleName();
View Full Code Here

Examples of org.eclipse.xtend2.lib.StringConcatenation.newLineIfNotEmpty()

            _builder.append(_simpleName_1, "  ");
            _builder.append(" other = (");
            String _simpleName_2 = cls.getSimpleName();
            _builder.append(_simpleName_2, "  ");
            _builder.append(") o;");
            _builder.newLineIfNotEmpty();
            _builder.append("  ");
            _builder.append("return ");
            _builder.append(result, "  ");
            _builder.append(";");
            _builder.newLineIfNotEmpty();
View Full Code Here

Examples of org.eclipse.xtend2.lib.StringConcatenation.newLineIfNotEmpty()

            _builder.newLineIfNotEmpty();
            _builder.append("  ");
            _builder.append("return ");
            _builder.append(result, "  ");
            _builder.append(";");
            _builder.newLineIfNotEmpty();
            _builder.append("}");
            _builder.newLine();
            _builder.append("return false;");
            _builder.newLine();
            return _builder;
View Full Code Here

Examples of org.eclipse.xtend2.lib.StringConcatenation.newLineIfNotEmpty()

      _builder.append(", ");
      TypeReference _newTypeReference_1 = this.context.newTypeReference("java.util.concurrent.TimeUnit");
      String _javaCode = context.toJavaCode(_newTypeReference_1);
      _builder.append(_javaCode, "");
      _builder.append(".MILLISECONDS)");
      _builder.newLineIfNotEmpty();
      _builder.append(".maximumSize(");
      _builder.append(maxSize, "");
      _builder.append(")");
      _builder.newLineIfNotEmpty();
      _builder.append(".build(new com.google.common.cache.CacheLoader");
View Full Code Here

Examples of org.eclipse.xtend2.lib.StringConcatenation.newLineIfNotEmpty()

      _builder.append(".MILLISECONDS)");
      _builder.newLineIfNotEmpty();
      _builder.append(".maximumSize(");
      _builder.append(maxSize, "");
      _builder.append(")");
      _builder.newLineIfNotEmpty();
      _builder.append(".build(new com.google.common.cache.CacheLoader");
      TypeReference _cacheKeyType = this.cacheKeyType();
      String _javaCode_1 = context.toJavaCode(_cacheKeyType);
      _builder.append(_javaCode_1, "");
      _builder.append(", ");
View Full Code Here

Examples of org.eclipse.xtend2.lib.StringConcatenation.newLineIfNotEmpty()

      _builder.append(", ");
      TypeReference _wrappedReturnType = this.wrappedReturnType();
      String _javaCode_2 = context.toJavaCode(_wrappedReturnType);
      _builder.append(_javaCode_2, "");
      _builder.append(">() {");
      _builder.newLineIfNotEmpty();
      _builder.append("  ");
      _builder.append("@Override");
      _builder.newLine();
      _builder.append("  ");
      _builder.append("public ");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.