Package com.caucho.xpath.expr

Examples of com.caucho.xpath.expr.ObjectVar


    _useCount++;
    if (value instanceof Iterator)
      value = iteratorToList((Iterator) value);

    if (! (value instanceof Var))
      value = new ObjectVar(value);
   
    return addVar(name, (Var) value);
  }
View Full Code Here


    _useCount++;
    if (value instanceof Iterator)
      value = iteratorToList((Iterator) value);

    if (! (value instanceof Var))
      value = new ObjectVar(value);

    for (int i = _varSize - 1; i >= 0; i--) {
      if (_varKeys[i] == name) {
        _varValues[i] = (Var) value;
        return;
View Full Code Here

      value = iteratorToList((Iterator) value);

    if (value instanceof Var)
      var = (Var) value;
    else
      var = new ObjectVar(value);

    if (_root._globals == null)
      _root._globals = new HashMap<String,Var>();
   
    _root._globals.put(name, var);
View Full Code Here

  public Var evalVar(Node node, ExprEnvironment env)
    throws XPathException
  {
    Object obj = evalObject(node, env);

    return new ObjectVar(obj);
  }
View Full Code Here

    Object value = getValue(name);

    if (value == null)
      return null;
    else
      return new ObjectVar(value);
  }
View Full Code Here

    _useCount++;
    if (value instanceof Iterator)
      value = iteratorToList((Iterator) value);

    if (! (value instanceof Var))
      value = new ObjectVar(value);
   
    return addVar(name, (Var) value);
  }
View Full Code Here

    _useCount++;
    if (value instanceof Iterator)
      value = iteratorToList((Iterator) value);

    if (! (value instanceof Var))
      value = new ObjectVar(value);

    for (int i = _varSize - 1; i >= 0; i--) {
      if (_varKeys[i] == name) {
        _varValues[i] = (Var) value;
        return;
View Full Code Here

      value = iteratorToList((Iterator) value);

    if (value instanceof Var)
      var = (Var) value;
    else
      var = new ObjectVar(value);

    if (_root._globals == null)
      _root._globals = new HashMap<String,Var>();
   
    _root._globals.put(name, var);
View Full Code Here

  public Var evalVar(Node node, ExprEnvironment env)
    throws XPathException
  {
    Object obj = evalObject(node, env);

    return new ObjectVar(obj);
  }
View Full Code Here

    Object value = getValue(name);

    if (value == null)
      return null;
    else
      return new ObjectVar(value);
  }
View Full Code Here

TOP

Related Classes of com.caucho.xpath.expr.ObjectVar

Copyright © 2018 www.massapicom. 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.