Package macromedia.asc.semantics

Examples of macromedia.asc.semantics.ObjectValue


            {
              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


                                                    QName qName, ObjectValue referencedTypeInfo)
    {
        boolean result = false;
        int kind = Tokens.GET_TOKEN;
        String localPart = qName.getLocalPart().intern();
        ObjectValue namespace = ascContext.getNamespace(qName.getNamespace().intern());
       
        if (referencingTypeInfo.hasName(ascContext, kind, localPart, namespace) &&
            referencedTypeInfo.hasName(ascContext, kind, localPart, namespace))
        {
            int referencingIndex = referencingTypeInfo.getSlotIndex(ascContext, kind, localPart, namespace);
View Full Code Here

        {
            CompilationUnit u = s.getCompilationUnit();

            if ((u != null) && u.hasTypeInfo)
            {
        ObjectValue frame = u.typeInfo;
               
                for (QName topLevelDefinition : u.topLevelDefinitions)
                {
                    String name = topLevelDefinition.getLocalPart().intern();
                    ObjectValue namespace = ascContext.getNamespace(topLevelDefinition.getNamespace().intern());

                    if (frame.hasName(ascContext, Tokens.GET_TOKEN, name, namespace))
                    {
                        int slotId = frame.getSlotIndex(ascContext, Tokens.GET_TOKEN, name, namespace);
                        Slot slot = frame.getSlot(ascContext, slotId);
View Full Code Here

        if(useStaticBuiltins)
        {
          if(cx.statics.globalPrototype == null)
          {
            cx.statics.globalPrototype = new ObjectValue();
            initGlobalObject(cx, cx.statics.globalPrototype);
          }
          ob._proto_ = cx.statics.globalPrototype;
        } else {
          initGlobalObject(cx, ob);         
View Full Code Here

                                                    QName qName, ObjectValue referencedTypeInfo)
    {
        boolean result = false;
        int kind = Tokens.GET_TOKEN;
        String localPart = qName.getLocalPart().intern();
        ObjectValue namespace = ascContext.getNamespace(qName.getNamespace().intern());
       
        if (referencingTypeInfo.hasName(ascContext, kind, localPart, namespace) &&
            referencedTypeInfo.hasName(ascContext, kind, localPart, namespace))
        {
            int referencingIndex = referencingTypeInfo.getSlotIndex(ascContext, kind, localPart, namespace);
View Full Code Here

        {
            CompilationUnit u = s.getCompilationUnit();

            if ((u != null) && u.hasTypeInfo)
            {
        ObjectValue frame = u.typeInfo;
               
                for (QName topLevelDefinition : u.topLevelDefinitions)
                {
                    String name = topLevelDefinition.getLocalPart().intern();
                    ObjectValue namespace = ascContext.getNamespace(topLevelDefinition.getNamespace().intern());

                    if (frame.hasName(ascContext, Tokens.GET_TOKEN, name, namespace))
                    {
                        int slotId = frame.getSlotIndex(ascContext, Tokens.GET_TOKEN, name, namespace);
                        Slot slot = frame.getSlot(ascContext, slotId);
View Full Code Here

    int argcount = (node.args != null) ? node.args.items.size() : 0;
    List<Object> args = new ArrayList<Object>(argcount);
    if (argcount > 0)
    {
      boolean temporarilyRemoveTopScope = (node.getMode() == Tokens.DOT_TOKEN);
      ObjectValue topScope = null;

      if (temporarilyRemoveTopScope)
      {
        topScope = cx.scope();
        cx.popScope();
View Full Code Here

        return symbolTable;
    }

  static String convertName(ReferenceValue typeref)
  {
    ObjectValue ns = typeref.namespaces.first();
    if( ns != null && ns.name.length() > 0 )
    {
      StringBuilder value = new StringBuilder(ns.name.length() + 1 + typeref.name.length());
        value.append(ns.name).append(':').append(typeref.name);
      return value.toString();
View Full Code Here

            {
                Iterator namespaceIterator = namespaces.iterator();

                while ( namespaceIterator.hasNext() )
                {
                    ObjectValue objectValue = (ObjectValue) namespaceIterator.next();
                    String packageName = objectValue.toString();
                    if (packageName.length() > 0)
                    {
                        result.add(packageName + "." + className);
                    }
                    else
View Full Code Here

                                                    QName qName, ObjectValue referencedTypeInfo)
    {
        boolean result = false;
        int kind = Tokens.GET_TOKEN;
        String localPart = qName.getLocalPart().intern();
        ObjectValue namespace = ascContext.getNamespace(qName.getNamespace().intern());
       
        if (referencingTypeInfo.hasName(ascContext, kind, localPart, namespace) &&
            referencedTypeInfo.hasName(ascContext, kind, localPart, namespace))
        {
            int referencingIndex = referencingTypeInfo.getSlotIndex(ascContext, kind, localPart, namespace);
View Full Code Here

TOP

Related Classes of macromedia.asc.semantics.ObjectValue

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.