Examples of visitAttribute()


Examples of org.apache.flex.abc.visitors.ITraitVisitor.visitAttribute()

    {
        ITraitVisitor traitVisitor = addMethodToTraits(itraits, methodName, parameterTypes,
                returnType, defaultParameterValues, needsRest, functionKindTrait, body);
        traitVisitor.visitStart();
        if (isFinal)
            traitVisitor.visitAttribute(Trait.TRAIT_FINAL, true);
        if (isOverride)
            traitVisitor.visitAttribute(Trait.TRAIT_OVERRIDE, true);
        traitVisitor.visitEnd();
    }
View Full Code Here

Examples of org.apache.flex.abc.visitors.ITraitVisitor.visitAttribute()

                returnType, defaultParameterValues, needsRest, functionKindTrait, body);
        traitVisitor.visitStart();
        if (isFinal)
            traitVisitor.visitAttribute(Trait.TRAIT_FINAL, true);
        if (isOverride)
            traitVisitor.visitAttribute(Trait.TRAIT_OVERRIDE, true);
        traitVisitor.visitEnd();
    }

    /**
     * Utility method to add a static method to the generated class.
View Full Code Here

Examples of org.apache.flex.abc.visitors.ITraitVisitor.visitAttribute()

       
        // If we have an IMetaTagsNode use that, otherwise get the metadata from the definition
            processMetadata(getterTv, metaTags);

            if (bindableVarDef.isOverride())
                getterTv.visitAttribute(Trait.TRAIT_OVERRIDE, Boolean.TRUE);

        // We don't codegen classes in parallel right now,
        // so we know that we are on the main code generation thread
        // because bindable variables are always members of a class.
        // Since we know are on the main code generation thread we can immediately
View Full Code Here

Examples of org.apache.flex.abc.visitors.ITraitVisitor.visitAttribute()

        metaTags = MetaTag.addMetaTag(metaTags, gotoDefinitionMetaTag);
       
        processMetadata(setterTv, metaTags);
       
        if (bindableVarDef.isOverride())
            setterTv.visitAttribute(Trait.TRAIT_OVERRIDE, Boolean.TRUE);

        setterTv.visitEnd();
    }

    /**
 
View Full Code Here

Examples of org.apache.flex.abc.visitors.ITraitVisitor.visitAttribute()

            FunctionGeneratorHelper.generateFunction(classScope.getEmitter(), mi, insns);

            NamespaceDefinition nd = (NamespaceDefinition)classDefinition.getProtectedNamespaceReference();
            Name func_name = new Name(nd.getAETNamespace(), "skinParts");
            tv = classScope.traitsVisitor.visitMethodTrait(TRAIT_Getter, func_name, 0, mi);
            tv.visitAttribute(Trait.TRAIT_OVERRIDE, Boolean.TRUE);
            tv.visitEnd();

        }
       
        // the generation of instructions for variable initialization is delayed
View Full Code Here

Examples of org.apache.flex.abc.visitors.ITraitVisitor.visitAttribute()

                        this.iinfo.flags |= ABCConstants.CLASS_FLAG_protected;

                ls.processMetadata(tv, getAllMetaTags(funcDef));
               
                if ( func.hasModifier(ASModifier.FINAL))
                    tv.visitAttribute(Trait.TRAIT_FINAL, Boolean.TRUE);
                // don't set override if we've moved it to the bindable namespace
                if (!wasOverride && (func.hasModifier(ASModifier.OVERRIDE) || funcDef.isOverride()))
                    tv.visitAttribute(Trait.TRAIT_OVERRIDE, Boolean.TRUE);
                tv.visitEnd();
            }
View Full Code Here

Examples of org.apache.flex.abc.visitors.ITraitVisitor.visitAttribute()

               
                if ( func.hasModifier(ASModifier.FINAL))
                    tv.visitAttribute(Trait.TRAIT_FINAL, Boolean.TRUE);
                // don't set override if we've moved it to the bindable namespace
                if (!wasOverride && (func.hasModifier(ASModifier.OVERRIDE) || funcDef.isOverride()))
                    tv.visitAttribute(Trait.TRAIT_OVERRIDE, Boolean.TRUE);
                tv.visitEnd();
            }
        }
        if (isBindable)
        {
View Full Code Here

Examples of org.apache.flex.abc.visitors.ITraitVisitor.visitAttribute()

            // method, getter, setter has attributes in the high 4 bits of the kind byte
            // 0x01: (1=final,0=virtual), 0x02: (1=override,0=new)
            if (is_method_getter_setter)
            {
                trait_visitor.visitAttribute(Trait.TRAIT_FINAL, functionIsFinal(tag));
                trait_visitor.visitAttribute(Trait.TRAIT_OVERRIDE, functionIsOverride(tag));
            }

            if (traitHasMetadata(tag))
            {
View Full Code Here

Examples of org.apache.flex.abc.visitors.ITraitVisitor.visitAttribute()

            // method, getter, setter has attributes in the high 4 bits of the kind byte
            // 0x01: (1=final,0=virtual), 0x02: (1=override,0=new)
            if (is_method_getter_setter)
            {
                trait_visitor.visitAttribute(Trait.TRAIT_FINAL, functionIsFinal(tag));
                trait_visitor.visitAttribute(Trait.TRAIT_OVERRIDE, functionIsOverride(tag));
            }

            if (traitHasMetadata(tag))
            {
                final int n_entries = p.readU30();
View Full Code Here

Examples of org.apache.tapestry5.internal.plastic.asm.FieldVisitor.visitAttribute()

            an.accept(fv.visitTypeAnnotation(an.typeRef, an.typePath, an.desc,
                    false));
        }
        n = attrs == null ? 0 : attrs.size();
        for (i = 0; i < n; ++i) {
            fv.visitAttribute(attrs.get(i));
        }
        fv.visitEnd();
    }
}
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.