Examples of deref()


Examples of abstrasy.Node.deref()

        Node r = startAt.getSubNode(arg_i++, Node.VTYPE_VALUABLE);
       
        //S'il s'agit d'une expression quotée, il ne peut pas y avoir d'autres éléments...
        if(r.getQType()==Node.TYPE_QEXPR){
            startAt.isGoodArgsCnt(2);
            r=r.deref().letQuoted(false);
        }
        else{
            // sinon... on construit une expression temporaire...
            r=new Node().append(r);
            while(arg_i<startAt.size())
View Full Code Here

Examples of abstrasy.Node.deref()

  public Node eval(Node startAt) throws Exception {
    startAt.isGoodArgsCnt(2);
    Node rnode = startAt.getSubNode(1,Node.VTYPE_VALUABLE);
    if (rnode.isQuoted())
            return rnode.deref().letQuoted(false);
        else
            return rnode;
  }

}
View Full Code Here

Examples of abstrasy.Node.deref()

       
        Node section = startAt.getSubNode(2, Node.TYPE_LAZY);
        Node a, a_before, a_after, res;
        do{
            a = startAt.getSubNode(1, Node.VTYPE_BY_VALUE); // récupération de la donnée (primitive simple)
            a_before = a.deref();                           // de cette manière deref() suffit...
            a_after = a_before.deref();
            Heap.push(); // première barrière...
            Heap.defv(symbole,a_after); // variable synonyme - et homonyme ici...
            Heap.push(); // isolation en cas de (define 'v ...)
            res=section.exec(true); // évaluation de la section
View Full Code Here

Examples of clojure.lang.Var.deref()

  @Override
  public Environment compute(Environment e, IPersistentMap bindings) {
    try {
      Var v=RT.var(sym.getNamespace(),sym.getName());
      if (v!=null) return e.withResult(v.deref());
    } catch (Throwable t) {
      String err="Error trying to lookp var "+sym+" ";
      err+=" with Environment "+e.toString();
      throw new KissException(err,t);
    }
View Full Code Here

Examples of clojure.lang.Var.deref()

  public Object toVar() {
    Var ret = Util.getVar(_namespace, _name);
    if (!hofArgs.isEmpty())
      return ret.applyTo(Util.coerceToSeq(hofArgs));
    else
      return ret.deref();
  }
}
View Full Code Here

Examples of clojure.lang.Var.deref()

  public static List SENTENCE = getDataset("sentence");


  private static List getDataset(String name) {
    Var v = Util.getVar("cascalog.playground", name);
    return (List) v.deref();
  }
}
View Full Code Here

Examples of org.overturetool.vdmj.values.Value.deref()

  {
    boolean evaluated = false;
    if (links.getEvents().keySet().contains(event))
    {
      Value val = getValue(event).value;
      if (val.deref() instanceof OperationValue)
      {
        OperationValue eventOp = (OperationValue) val;
        if (eventOp.paramPatterns.size() == 0)
        {
          try
View Full Code Here

Examples of org.overturetool.vdmj.values.Value.deref()

    {
      List<String> varName = links.getQualifiedName(name);

      Value value = VDMClassHelper.digForVariable(varName.subList(1, varName.size()), list).value;

      if (value.deref() instanceof UndefinedValue)
      {
        throw new RemoteSimulationException("Value: " + name
            + " not initialized");
      }
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.