Package macromedia.asc.semantics

Examples of macromedia.asc.semantics.Value


                {
                    int l = meta.getValues().length;
                   
                    for (int i = 0; i < l; i++)
                    {
                        Value v = meta.getValues()[i];
                        if (v != null)
                        {
                            if (v instanceof MetaDataEvaluator.KeylessValue && has_name == false)
                            {
                                MetaDataEvaluator.KeylessValue ov = (MetaDataEvaluator.KeylessValue)v;
View Full Code Here


            else
            {
              vs = vb.ref.getSlot(cx, Tokens.GET_TOKEN);
            }
                       
                        Value v = (vs != null ? vs.getValue() : null);
                        ObjectValue ov = ((v instanceof ObjectValue) ? (ObjectValue)(v) : null);
                        // if constant evaluator has determined this has a value, use it.
                        defaultValue = (ov != null) ? ov.getValue() : "unknown";
                    }
                    else
                    {
                        Slot vs = vb.ref.getSlot(cx, Tokens.GET_TOKEN);
                        Value v = (vs != null ? vs.getValue() : null);
                        ObjectValue ov = ((v instanceof ObjectValue) ? (ObjectValue)(v) : null);
                        // if constant evaluator has determined this has a value, use it.
                        defaultValue = (ov != null) ? ov.getValue() : "unknown";
                    }
                }
View Full Code Here

  public Value evaluate(macromedia.asc.util.Context cx, ArgumentListNode node)
  {
    // e.g. for "foo(3,4)", ArgumentListNode.items would contain a
    // LiteralNumberNode for 3, followed by a LiteralNumberNode for 4.
    // Also, for "x[3]", the "3" is represented as an ArgumentListNode.
    Value retval = null;
    for (Node n : node.items)
      retval = n.evaluate(cx, this);
    return retval;
  }
View Full Code Here

    return retval;
  }

  public Value evaluate(macromedia.asc.util.Context cx, ListNode node)
  {
    Value retval = null;
    for (Node item : node.items)
    {
      retval = item.evaluate(cx, this);
    }
    return retval;
View Full Code Here

        out.print("metadata:");
        out.print(node.getId() !=null? node.getId() :"");
        out.print(" ");
        for (int i = 0, length = (node.getValues() == null) ? 0 : node.getValues().length; i < length; i++)
        {
            Value v = node.getValues()[i];
            if (v instanceof MetaDataEvaluator.KeyValuePair)
            {
                MetaDataEvaluator.KeyValuePair pair = (MetaDataEvaluator.KeyValuePair) v;
                out.print("[" + pair.key + "," + pair.obj + "]");
            }
View Full Code Here

            int length = call.args.size();
            node.setValues(new Value[length]);
            for (int i = 0; i < length; i++)
            {
              Node n = call.args.items.get(i);
              Value value = n.evaluate(cx, this);
              if (value == null)
              {
                cx.error(n.pos(), kError_InvalidMetaData);
              }
              node.getValues()[i] = value;
View Full Code Here

    return null;
  }

  public Value evaluate(Context cx, MemberExpressionNode node)
  {
    Value val = null;
    if (node.base != null)
    {
      node.base.evaluate(cx, this);
    }
    if (node.selector != null)
View Full Code Here

    return null;
  }

  public Value evaluate(Context cx, ArgumentListNode node)
  {
    Value val = null;
    for (Node n : node.items)
    {
      if (n != null)
      {
        val = n.evaluate(cx, this);
View Full Code Here

    };

  public Value evaluate(Context cx, LiteralXMLNode node)
  {
    //cx.error(node.pos(), kError_MetaDataContainsXmlLiteral);
    Value v = null;
    if( node.list != null)
    {
      v = node.list.evaluate(cx,this);
    }
    return v;
View Full Code Here

    return null;
  };

  public Value evaluate(Context cx, ListNode node)
  {
    Value v = null;
    for (Node n : node.items)
    {
      if (n != null)
      {
        v = n.evaluate(cx, this);
View Full Code Here

TOP

Related Classes of macromedia.asc.semantics.Value

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.