Examples of Source


Examples of Framework.Source

   * @throws RemoteException
   * @throws NotBoundException
   */
  public ClientApplication(String name, String ip, String port) throws MalformedURLException, RemoteException, NotBoundException {
    sources = new ArrayList<Source>();
    Source source = (Source) Naming.lookup("rmi://" + ip + ":" + port + "/" + name);
    sources.add(source);
    createSink();
    registerSink(source);
  }
View Full Code Here

Examples of anvil.codec.Source

    ConstantPool pool = getPool();
    int javafield = pool.addFieldRef(TYPE_MODULE, "java$"+slot,
      "Lanvil/core/reflect/Reflection;");
    int contextclass = pool.addClass(TYPE_CONTEXT);
    code.getstatic(javafield);
    Source isnull = code.if_null();
    code.getstatic(javafield);
    Source notnull = code.go_to();
    isnull.bind();
    code.aload_first();
    code.astring(classname);
    code.invokevirtual(pool.addMethodRef(contextclass, "reflect", "(Ljava/lang/String;)Lanvil/core/reflect/Reflection;"));
    code.dup();
    code.putstatic(javafield);
    notnull.bind();
    code.popop();
    return this;
  }
View Full Code Here

Examples of anvil.codec.Source

      realparams++;
    }

    if (!isstatic) {
      code.aload(l_self);
      Source nonnull = code.if_nonnull();
      code.aload(l_context);
      code.astring(function.toString());
      code.invokevirtual(pool.addMethodRef("anvil/script/Context", "NoInstance",
        "(Ljava/lang/String;)Lanvil/script/ScriptException;"));
      code.athrow();
      nonnull.bind();
    }

    code.aload(l_parameters);
    code.arraylength();
    Switch select = code.select();
View Full Code Here

Examples of au.id.jericho.lib.html.Source

    return wrapper;
  }
 
  private static String extractText(String htmlContent) {
    if (htmlContent != null && htmlContent.length() > 0) {
      Source source = new Source(htmlContent);
      TextExtractor extractor = new TextExtractor(source);
      extractor.setConvertNonBreakingSpaces(true);
      extractor.setExcludeNonHTMLElements(false);
      extractor.setIncludeAttributes(false);
      String output = extractor.toString();
View Full Code Here

Examples of booton.live.Source

        } catch (AssertionError e) {
            throw e; // rethrow assertion error
        } catch (ScriptException e) {
            dumpCode(source);

            Source code = new Source(source.getSimpleName(), Javascript.getScript(source).write());
            TranslationError error = new TranslationError(e);
            error.write(code.findBlock(e.getFailingLineNumber()));

            throw error;
        } catch (Throwable e) {
            dumpCode(source);
View Full Code Here

Examples of buri.ddmsence.ddms.resource.Source

      component = getChild(Rights.getName(version));
      if (component != null)
        _rights = new Rights(component);
      components = element.getChildElements(Source.getName(version), namespace);
      for (int i = 0; i < components.size(); i++)
        _sources.add(new Source(components.get(i)));
      components = element.getChildElements(Type.getName(version), namespace);
      for (int i = 0; i < components.size(); i++)
        _types.add(new Type(components.get(i)));
      components = element.getChildElements(Creator.getName(version), namespace);
      for (int i = 0; i < components.size(); i++)
View Full Code Here

Examples of ch.grengine.source.Source

            int phase = (config.getTargetDirectory() == null) ? Phases.CLASS_GENERATION : Phases.OUTPUT;
            cu.compile(phase);

            Map<Source,CompiledSourceInfo> compiledSourceInfos = new HashMap<Source,CompiledSourceInfo>();
            for (Entry<Source, SourceUnit> entry : sourceUnitMap.entrySet()) {
                Source source = entry.getKey();
                SourceUnit su = entry.getValue();
                Set<String> classNames = new HashSet<String>();
                List<ClassNode> nodes = su.getAST().getClasses();
                for (ClassNode node : nodes) {
                    classNames.add(node.getName());
                }
                CompiledSourceInfo compiledSourceInfo = new CompiledSourceInfo(source,
                        su.getAST().getMainClassName(), classNames, source.getLastModified());
                //System.out.println("SU MainClassName: " + su.getAST().getMainClassName());
                compiledSourceInfos.put(source, compiledSourceInfo);
            }

            @SuppressWarnings("unchecked")
View Full Code Here

Examples of com.asakusafw.compiler.flow.jobflow.JobflowModel.Source

        assert sources != null;
        Set<Source> opposites = Sets.create();
        for (FlowBlock.Input input : target.getInputs()) {
            for (FlowBlock.Connection conn : input.getConnections()) {
                FlowBlock.Output upstream = conn.getUpstream();
                Source source = sources.get(upstream);
                assert source != null;
                opposites.add(source);
            }
        }
        target.resolveSources(opposites);
View Full Code Here

Examples of com.asakusafw.dmdl.thundergate.model.Source

        ModelProperty value = properties.get(0);
        assertThat(value.getName(), is("value"));
        assertThat(value.getType().getKind(), is(PropertyTypeKind.INT));
        assertThat(value.getJoined(), is(nullValue()));

        Source valueSrc = value.getFrom();
        assertThat(valueSrc.getAggregator(), is(Aggregator.IDENT));
        assertThat(valueSrc.getDeclaring(), is(desc.getReference()));
        assertThat(valueSrc.getName(), is("value"));
        assertThat(valueSrc.getType().getKind(), is(PropertyTypeKind.INT));
        assertThat(valueSrc.getAttributes().size(), is(0));
    }
View Full Code Here

Examples of com.asakusafw.modelgen.model.Source

    }

    private Statement createStartSummarizeFor(
            SimpleName parameterName,
            ModelProperty property) {
        Source source = property.getFrom();
        Expression to = f.newFieldAccessExpression(
                f.newThis(),
                common.getFieldNameOf(property.getName(), property.getType()));
        switch (source.getAggregator()) {
        case IDENT:
        case MAX:
        case MIN:
        case SUM:
            return new ExpressionBuilder(f, to)
                .method(Constants.NAME_OPTION_MODIFIER,
                        new ExpressionBuilder(f, parameterName)
                            .method(common.getGetterNameOf(source.getName(), source.getType()))
                            .toExpression())
                .toStatement();
        case COUNT:
            return new ExpressionBuilder(f, to)
                .method(Constants.NAME_OPTION_MODIFIER, Models.toLiteral(f, 1))
View Full Code Here
TOP
Copyright © 2015 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.