Home Package Class Method

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 au.id.jericho.lib.html.Source

     *            CrawlURI we're processing.
     * @param cs
     *            Sequence from underlying ReplayCharSequence.
     */
    protected void extract(CrawlURI curi, CharSequence cs) {
        Source source = new Source(cs);
        List<Element> elements = source.findAllElements(StartTagType.NORMAL);
        for (Element element : elements) {
            String elementName = element.getName();
            Attributes attributes;
            if (elementName.equals(HTMLElementName.META)) {
                if (processMeta(curi, element)) {
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

    private AstJoin generateTerm(ModelReference sourceModel, List<Source> group, boolean from) {
        Map<String, ModelProperty> resolver = Maps.create();
        List<AstPropertyMapping> mappings = Lists.create();
        for (ModelProperty property : model.getProperties()) {
            Source source = from ? property.getFrom() : property.getJoined();
            if (source == null) {
                continue;
            }
            resolver.put(source.getName(), property);
            mappings.add(new AstPropertyMapping(
                    null,
                    AstBuilder.getDesciption("{0}.{1}",
                            sourceModel.getSimpleName(),
                            source.getName()),
                    Arrays.asList(new AstAttribute[] {
                            AstBuilder.getOriginalName(property.getName()),
                    }),
                    AstBuilder.toName(source),
                    AstBuilder.toName(property)));
        }

        List<AstSimpleName> grouping = Lists.create();
        for (Source source : group) {
            ModelProperty property = resolver.get(source.getName());
            assert property != null : source;
            grouping.add(AstBuilder.toName(property));
        }

        return new AstJoin(
View Full Code Here

Examples of com.asakusafw.modelgen.model.Source

                        sourceProperty,
                        getReference()));
            }
            simpleName = sourceProperty.substring(qualified + 1);
        }
        Source source = sources.get(simpleName);
        if (source == null) {
            throw new IllegalArgumentException(MessageFormat.format(
                    "\"{0}\" が見つかりません ({1})",
                    simpleName,
                    getReference()));
View Full Code Here

Examples of com.asakusafw.runtime.stage.input.StageInputSplit.Source

                splits = format.getSplits(temporaryJob);
            }
            assert format != null : formatAndMapper.formatClass.getName();
            Class<? extends Mapper<?, ?, ?, ?>> mapper = formatAndMapper.mapperClass;
            for (InputSplit split : splits) {
                Source source = new Source(split, formatAndMapper.formatClass);
                StageInputSplit wrapped = new StageInputSplit(mapper, Collections.singletonList(source));
                wrapped.setConf(context.getConfiguration());
                results.add(wrapped);
            }
        }
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.