Package macromedia.asc.semantics

Examples of macromedia.asc.semantics.Slot


    int slot_id = ob.addVariableSlot(cx,type,var_id);
        ob.getSlot(cx,slot_id).addType(type.getDefaultTypeInfo());
        CHECK_SLOT_INDEX(expected_id,slot_id);
    ob.defineNames(cx,GET_TOKEN,name,namespaces,slot_id);
    ob.defineNames(cx,SET_TOKEN,name,namespaces,slot_id);
    Slot slot = ob.getSlot(cx,slot_id);
    slot.attrs(CALL_ThisMethod,method_id);

    if( is_intrinsic || basebui!=null && basebui.is_intrinsic )
    {
      slot.setVarIndex(-1);   // erase the var_index
    }

    // do backend binding

//    if( var_id >= 0 )
View Full Code Here


        else
        {
            ob.getSlot(cx,implied_id).setDispatchKind(DISPATCH_virtual);
        }

    Slot slot = ob.getSlot(cx,implied_id);
    ob.getSlot(cx,implied_id).attrs(CALL_ThisMethod,method_id);
    slot.setFinal(is_final);
    slot.setOverride(is_override);
    slot.setMethodName("temp$"+classname+"$"+name);
    slot.setGetter(false);

    if( is_intrinsic || basebui!=null && basebui.is_intrinsic )
    {
      slot.setMethodID(-1);   // erase the method_id
    }

        // Do the backend binding

//        if( method_id >= 0 )
View Full Code Here

        else
        {
            ob.getSlot(cx,implied_id).setDispatchKind(DISPATCH_virtual);
        }

    Slot slot = ob.getSlot(cx,implied_id);
    ob.getSlot(cx,implied_id).attrs(CALL_ThisMethod,method_id);
    slot.setFinal(is_final);
    slot.setOverride(is_override);
    slot.setMethodName("temp$"+classname+"$"+name);

    if( is_intrinsic || basebui!=null && basebui.is_intrinsic )
    {
      slot.setMethodID(-1);   // erase the method_id
    }

        // Do the backend binding

    Name(cx, EMPTY_TOKEN, name, ns);
View Full Code Here

            {
                VariableBindingNode binding = it instanceof VariableBindingNode ? (VariableBindingNode)it : null;
                if (binding != null)
                {
                    ReferenceValue ref = binding.ref;
                    Slot slot = null;
                    if ( ref != null )
                        slot = ref.getSlot(cx);
                    if ( slot != null && slot.getMetadata() == null )
                    {
                        for( Node meta_node : vdn.metaData.items)
                        {
                            if( meta_node instanceof MetaDataNode)
                                addMetadataToSlot(cx, slot, (MetaDataNode)meta_node);
View Full Code Here

  public Value evaluate(Context cx, FunctionDefinitionNode node)
  {
         FunctionDefinitionNode fdn = node;
        int kind = fdn.fexpr.kind;
        ReferenceValue ref = fdn.fexpr.ref;
        Slot func_slot = null;
        if( ref != null )
            func_slot = ref.getSlot(cx, kind);

        if (addGoToDefinitionHelpPosition)
            addPositionMetadata(cx, fdn);

        if( func_slot != null && func_slot.getMetadata() == null && fdn.metaData != null)
        {
            for( Node meta_node : fdn.metaData.items)
            {
                if( meta_node instanceof MetaDataNode)
                {
View Full Code Here

        cx.popStaticClassScopes(node);


        ClassDefinitionNode cdn = node;
        ReferenceValue ref = cdn.ref;
        Slot classSlot = null;
        if( ref != null )
            classSlot = ref.getSlot(cx);
        if (addGoToDefinitionHelpPosition)
        {
            addPositionMetadata(cx, cdn);
        }
        if( classSlot != null && classSlot.getMetadata() == null && cdn.metaData != null )
        {
            for( Node meta_node : cdn.metaData.items)
            {
                if( meta_node instanceof MetaDataNode)
                {
View Full Code Here

  public int ExplicitGet( Context cx, ObjectValue ob, String name, Namespaces namespaces, TypeValue type, boolean is_final, boolean is_override, int expected_id , int method_id , int var_id  )
  {
    int slot_id = ob.addMethodSlot(cx,type);
    CHECK_SLOT_INDEX(expected_id,slot_id);
    ob.defineNames(cx,GET_TOKEN,name,namespaces,slot_id);
    Slot slot = ob.getSlot(cx,slot_id);
    slot.attrs(CALL_ThisMethod,method_id);
    slot.setFinal(is_final);
    slot.setOverride(is_override);

    // do backend binding

    if(!Builder.removeBuilderNames)
    {
View Full Code Here

  public int ExplicitSet(Context cx, ObjectValue ob, String name, ObjectValue ns, TypeValue type, boolean is_final, boolean is_override, int expected_id, int method_id, int var_id)
  {
    int slot_id = ob.addMethodSlot(cx, type);
    CHECK_SLOT_INDEX(expected_id, slot_id);
    ob.defineName(cx, SET_TOKEN, name, ns, slot_id);
    Slot slot = ob.getSlot(cx,slot_id);
    slot.attrs(CALL_ThisMethod,method_id);
    slot.setFinal(is_final);
    slot.setOverride(is_override);

    if(!Builder.removeBuilderNames)
    {
      if( method_id >= 0 )
      {
View Full Code Here

  public int ExplicitSet( Context cx, ObjectValue ob, String name, Namespaces namespaces, TypeValue type, boolean is_final, boolean is_override, int expected_id, int method_id , int var_id )
  {
    int slot_id = ob.addMethodSlot(cx,type);
    CHECK_SLOT_INDEX(expected_id,slot_id);
    ob.defineNames(cx,SET_TOKEN,name,namespaces,slot_id);
    Slot slot = ob.getSlot(cx,slot_id);
    slot.attrs(CALL_ThisMethod,method_id);
    slot.setFinal(is_final);
    slot.setOverride(is_override);

    // do backend binding

    if(!Builder.removeBuilderNames)
    {
View Full Code Here

  {
    TypeValue functionType = cx.useStaticSemantics() ? cx.functionType() : type;
    int slot_id = ob.addMethodSlot(cx, functionType);
    CHECK_SLOT_INDEX(expected_id, slot_id);
    ob.defineName(cx, EMPTY_TOKEN, name, ns, slot_id);
    Slot slot = ob.getSlot(cx,slot_id);
    ob.getSlot(cx,slot_id).attrs(CALL_ThisMethod,method_id);
    slot.setFinal(is_final);
    slot.setOverride(is_override);
    slot.setGetter(false);

    // do backend binding
    Name(cx,EMPTY_TOKEN,name,ns);

    return slot_id;
View Full Code Here

TOP

Related Classes of macromedia.asc.semantics.Slot

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.