All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.xtext.xbase.compiler.LoopParams Maven / Gradle / Ivy

/**
 * Copyright (c) 2012 itemis AG (http://www.itemis.eu) and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 */
package org.eclipse.xtext.xbase.compiler;

import org.eclipse.xtext.xbase.compiler.output.ITreeAppendable;
import org.eclipse.xtext.xbase.lib.Functions.Function1;

@SuppressWarnings("all")
public class LoopParams {
  private Function1 prefix;
  
  private Function1 separator;
  
  private Function1 suffix;
  
  public Function1 setPrefix(final Function1 prefix) {
    return this.prefix = prefix;
  }
  
  public Function1 setSeparator(final Function1 separator) {
    return this.separator = separator;
  }
  
  public Function1 setSuffix(final Function1 suffix) {
    return this.suffix = suffix;
  }
  
  public Function1 setPrefix(final String prefix) {
    final Function1 _function = new Function1() {
      @Override
      public ITreeAppendable apply(final ITreeAppendable it) {
        return it.append(prefix);
      }
    };
    return this.prefix = _function;
  }
  
  public Function1 setSeparator(final String separator) {
    final Function1 _function = new Function1() {
      @Override
      public ITreeAppendable apply(final ITreeAppendable it) {
        return it.append(separator);
      }
    };
    return this.separator = _function;
  }
  
  public Function1 setSuffix(final String suffix) {
    final Function1 _function = new Function1() {
      @Override
      public ITreeAppendable apply(final ITreeAppendable it) {
        return it.append(suffix);
      }
    };
    return this.suffix = _function;
  }
  
  public ITreeAppendable appendPrefix(final ITreeAppendable app) {
    ITreeAppendable _xblockexpression = null;
    {
      if (this.prefix!=null) {
        this.prefix.apply(app);
      }
      _xblockexpression = app;
    }
    return _xblockexpression;
  }
  
  public ITreeAppendable appendSeparator(final ITreeAppendable app) {
    ITreeAppendable _xblockexpression = null;
    {
      if (this.separator!=null) {
        this.separator.apply(app);
      }
      _xblockexpression = app;
    }
    return _xblockexpression;
  }
  
  public ITreeAppendable appendSuffix(final ITreeAppendable app) {
    ITreeAppendable _xblockexpression = null;
    {
      if (this.suffix!=null) {
        this.suffix.apply(app);
      }
      _xblockexpression = app;
    }
    return _xblockexpression;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy