Examples of Executable


Examples of de.esoco.j2me.util.Executable

  {
    CryptoHandler rCrypto = rModel.getCryptoHandler();

    if (rModel.usesEncryption() && rCrypto == null)
    {
      Executable aNewPwQuery = new Executable()
      {
        public void execute(Object rArg)
        {
          queryPassword("MsNewPasswd", true, rModel, true, null);
        }
View Full Code Here

Examples of hudson.model.Queue.Executable

    public static class Contributer extends SubTaskContributor {
        public Collection<? extends SubTask> forProject(final AbstractProject<?, ?> p) {
            return Collections.singleton(new AbstractSubTask() {
                private final AbstractSubTask outer = this;
                public Executable createExecutable() throws IOException {
                    return new Executable() {
                        public SubTask getParent() {
                            return outer;
                        }

                        public void run() {
View Full Code Here

Examples of hudson.model.Queue.Executable

     * If {@linkplain #getCurrentExecutable() current executable} is {@link AbstractBuild},
     * return the workspace that this executor is using, or null if the build hasn't gotten
     * to that point yet.
     */
    public FilePath getCurrentWorkspace() {
        Executable e = executable;
        if(e==null) return null;
        if (e instanceof AbstractBuild) {
            AbstractBuild ab = (AbstractBuild) e;
            return ab.getWorkspace();
        }
View Full Code Here

Examples of hudson.model.Queue.Executable

        }
        return null;
    }

    private boolean isCurrent(Executor executor) {
        Executable currentExecutable = executor.getCurrentExecutable();
        return currentExecutable != null && currentExecutable instanceof DbBackedBuild && this.equals(currentExecutable);
    }
View Full Code Here

Examples of hudson.model.Queue.Executable

     * @return An AbstractBuild for deprecated methods to use.
     */
    private AbstractBuild getBuildForDeprecatedMethods() {
        Executor e = Executor.currentExecutor();
        if(e!=null) {
            Executable exe = e.getCurrentExecutable();
            if (exe instanceof AbstractBuild) {
                AbstractBuild b = (AbstractBuild) exe;
                if(b.getProject()==this)
                    return b;
            }
View Full Code Here

Examples of java.lang.reflect.Executable

                // This is an injection point with an @Named qualifier, with no value specified, we need to assume the name of the field or parameter is the
                // value
                Member member = injectionPoint.getMember();
                if (member instanceof Executable) {
                    // Method or constructor injection
                    Executable executable = (Executable) member;
                    AnnotatedParameter<?> annotatedParameter = (AnnotatedParameter<?>) injectionPoint.getAnnotated();
                    Parameter parameter = executable.getParameters()[annotatedParameter.getPosition()];
                    named = new NamedLiteral(parameter.getName());
                } else {
                    named = new NamedLiteral(injectionPoint.getMember().getName());
                }
View Full Code Here

Examples of loop.Executable

    }
    return classDecl;
  }

  @Override public ClassDecl resolveAliasedType(String alias, String type) {
    Executable dep = aliasedDeps.get(alias);
    if (dep == null)
      return null;

    return dep.getScope().resolve(type, false);
  }
View Full Code Here

Examples of loop.Executable

    }
    return functionDecl;
  }

  @Override public FunctionDecl resolveNamespacedFunction(String name, String namespace) {
    Executable executable = aliasedDeps.get(namespace);
    if (null == executable)
      return null;

    return executable.getScope().resolveFunction(name, false);
  }
View Full Code Here

Examples of loop.Executable

    List<Executable> executables = ModuleLoader.loadAndCompile(Arrays.asList(name));

    if (executables == null || executables.isEmpty())
      throw new RuntimeException("Unable to find/compile: " + name + ".loop");

    Executable executable = executables.get(0);
    this.clazz = executable.getCompiled();
    this.loopFile = executable.file();
  }
View Full Code Here

Examples of loop.Executable

      return null;


    executables = new ArrayList<Executable>();
    for (Reader toLoadFile : toLoad) {
      Executable executable = new Executable(toLoadFile, moduleName);
      try {
        toLoadFile.close();
      } catch (IOException e) {
        // Ignore.
      }

      executable.compile();
      executables.add(executable);
    }

    List<Executable> other = loadedModules.putIfAbsent(moduleName, executables);
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.