Package org.eclipse.xtext.xbase.lib.Procedures

Examples of org.eclipse.xtext.xbase.lib.Procedures.Procedure0


            String _name = method.getName();
            final Procedure1<TaskDef> _function_1 = new Procedure1<TaskDef>() {
              public void apply(final TaskDef it) {
                String[] _value = ((DependsOn) taskAnnotation).value();
                it.setPrerequisitedTasks(((List<String>)Conversions.doWrapArray(_value)));
                final Procedure0 _function = new Procedure0() {
                  public void apply() {
                    try {
                      method.setAccessible(true);
                      method.invoke(BuildScript.this);
                    } catch (Throwable _e) {
View Full Code Here


      StringConcatenation _builder = new StringConcatenation();
      _builder.append("[Task \'");
      _builder.append(name, "");
      _builder.append("\']");
      InputOutput.<String>println(_builder.toString());
      Procedure0 _runnable = task.getRunnable();
      if (_runnable!=null) {
        _runnable.apply();
      }
    } finally {
      task.setExecuted(true);
      task.setIsExecuting(false);
    }
View Full Code Here

   */
  @Pure
  public static <P1> Procedure0 curry(final Procedure1<? super P1> procedure, final P1 argument) {
    if (procedure == null)
      throw new NullPointerException("procedure");
    return new Procedure0() {
      public void apply() {
        procedure.apply(argument);
      }
    };
  }
View Full Code Here

TOP

Related Classes of org.eclipse.xtext.xbase.lib.Procedures.Procedure0

Copyright © 2018 www.massapicom. 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.