Examples of Symbol


Examples of org.ggp.base.util.symbol.grammar.Symbol

    {
      throw new IllegalArgumentException("Expected exactly 2 arguments!");
    }

    SymbolAtom arg1 = (SymbolAtom) list.get(1);
    Symbol arg2 = list.get(2);

    String matchId = arg1.getValue();
    List<GdlTerm> moves = parseMoves(arg2);

    return new PlayRequest(gamer, matchId, moves);
View Full Code Here

Examples of org.grouplens.lenskit.symbols.Symbol

        Map<TypedSymbol<?>, Long2ObjectMap<?>> newChannels =
                new Reference2ObjectArrayMap<TypedSymbol<?>, Long2ObjectMap<?>>();
        // copy all unboxed channels into both maps
        if (channelVectors != null) {
            for (Map.Entry<Symbol, MutableSparseVector> entry : channelVectors.entrySet()) {
                Symbol key = entry.getKey();
                MutableSparseVector msv = entry.getValue().copy();
                newChanVectors.put(key, msv);
                newChannels.put(key.withType(Double.class), new MutableSparseVectorMap(msv));
            }
        }
        // copy all remaining channels into the channel map
        if (channels != null) {
            for (Entry<TypedSymbol<?>, Long2ObjectMap<?>> entry : channels.entrySet()) {
                TypedSymbol<?> key = entry.getKey();
                if (!key.getType().equals(Double.class)) {
                    Long2ObjectMap<?> chan = entry.getValue();
                    assert chan instanceof MutableTypedSideChannel;
                    newChannels.put(key, ((MutableTypedSideChannel<?>) chan).mutableCopy());
                } else {
                    assert newChannels.containsKey(key);
View Full Code Here

Examples of org.infinispan.schematic.document.Symbol

        assertSame("\"abcdefghijklmnopqrstuvwxyz\"", writer.write("abcdefghijklmnopqrstuvwxyz"));
    }

    @Test
    public void shouldCorrectlyWriteSymbolValues() {
        assertSame("\"\"", writer.write(new Symbol("")));
        assertSame("\"10.01\"", writer.write(new Symbol("10.01")));
        assertSame("\"10.01d\"", writer.write(new Symbol("10.01d")));
        assertSame("\"null\"", writer.write(new Symbol("null")));
        assertSame("\"abcdefghijklmnopqrstuvwxyz\"", writer.write(new Symbol("abcdefghijklmnopqrstuvwxyz")));
    }
View Full Code Here

Examples of org.jpox.query.symbol.Symbol

    }
   
    private void compileCandidates()
    {
        // TODO Remove hardcoded refs to "this". Should be an alias variable. JPQL/SQL don't have "this"
        Symbol symbol = new PropertySymbol("this", candidateClass);
        symbol.setValue(candidates);
        symtbl.addSymbol(symbol);
    }
View Full Code Here

Examples of org.jruby.compiler.ir.operands.Symbol

    public Operand buildSValue(SValueNode node, IRScope s) {
        return new SValue(build(node.getValue(), s));
    }

    public Operand buildSymbol(SymbolNode node, IRScope s) {
        return new Symbol(node.getName());
    }   
View Full Code Here

Examples of org.jruby.ir.operands.Symbol

public class ConstMissingInstr extends CallInstr implements ResultInstr {
    private String missingConst;

    public ConstMissingInstr(Variable result, Operand currentModule, String missingConst) {
        super(Operation.CONST_MISSING, CallType.FUNCTIONAL, result, new MethAddr("const_missing"), currentModule, new Operand[]{new Symbol(missingConst)}, null);

        this.missingConst = missingConst;
    }
View Full Code Here

Examples of org.kite9.diagram.adl.Symbol

public class SimpleDiagramSymbolsAndTextLines {

  @Kite9Item
  public Diagram simpleDiagramWithSymbolsAndTextLines() {
    Symbol s = new Symbol("Brother of Tony Scott", 'T', SymbolShape.CIRCLE);
    Glyph rs = new Glyph("Director", "Ridley Scott", createList(new TextLine("Directed: Thelma & Louise"), new TextLine("Directed: Gladiator")),
        createList(s));
    Diagram d1 = new Diagram("my_diagram", listOf(rs), new Key("Big Movies", "", createList(s)));
    return d1;
  }
View Full Code Here

Examples of org.mozilla.javascript.ast.Symbol

      Map<String, Symbol> t = scope.getSymbolTable();
   
      if (t != null) {
        for (String key : t.keySet()) {
          /* read the symbol */
          Symbol symbol = t.get(key);
          /* only add variables and function parameters */
          if (symbol.getDeclType() == Token.LP || symbol.getDeclType() == Token.VAR) {
            result.add(symbol.getName());
             
          }
        }
      }

View Full Code Here

Examples of org.openfeed.proto.inst.Symbol

     
      if(bar != null) {
        Symbol.Builder b = Symbol.newBuilder();
        b.setVendor(VendorID.BARCHART.toString());
        b.setSymbol(bar);
        final Symbol symbol = b.build();
        builder.addSymbols(symbol);
      }
     
      // NOTE: Hard coded for CQG
      final String cqg = xmlStringDecode(ats, ALT_SYMBOL, XML_PASS);
     
      if(cqg != null) {
        Symbol.Builder b = Symbol.newBuilder();
        b.setVendor(DDF_RxInstrumentProvider.CQG_VENDOR_ID.toString());
        b.setSymbol(cqg);
        final Symbol symbol = b.build();
        builder.addSymbols(symbol);
      }
     
      /* market free style description; can be used in full text search */
      builder.setDescription(String.valueOf(xmlStringDecode(ats, SYMBOL_COMMENT,
View Full Code Here

Examples of org.renjin.sexp.Symbol

    ListVector.Builder classListBuilder = ListVector.newBuilder();
    StringVector thisClass;
    StringBuilder buf = new StringBuilder();
   
    for(int i = 0; i < nargs; i++) {
      Symbol arg_sym = sigargs.getElementAsSEXP(i);
      if(is_missing_arg(context, arg_sym, ev)) {
        thisClass = s_missing;
      } else {
        /*  get its class */
        SEXP arg;
        try {
          arg = context.evaluate(arg_sym, ev);
        } catch(EvalException e) {
          throw new EvalException(String.format("error in evaluating the argument '%s' in selecting a " +
              "method for function '%s'",
              arg_sym.getPrintName(), fname.asString()), e);
        }
        thisClass = Methods.R_data_class(arg, true);
      }
      classListBuilder.set(i, thisClass);
      if(i > 0) {
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.