Package flex2.compiler.util

Examples of flex2.compiler.util.QName


        {
            Iterator<QName> iterator = setters.iterator();

            while ( iterator.hasNext() )
            {
                QName qName = iterator.next();
                if ( setterName.equals( qName.getLocalPart() ) )
                {
                    result = true;
                }
            }
        }
View Full Code Here


                        if (getVisitedGetterSetterBindType(name) == BINDABLE_CODEGEN_CLASS)
                        {
                            //  if class is bindable, we may have previously registered the other member of the getter/setter
                            //  pair as requiring codegen. If so, unregister it. (Note OTOH that both may be specified at
                            //  the property level.)
                            QName qname = new QName(NodeMagic.getUserNamespace(node), name);
                            unregisterBindableAccessor(qname);
                        }

                        registerVisitedGetterSetter(name, BINDABLE_USER);
                    }
View Full Code Here

     * [Bindable]; b) not function locals; c) not overriden by explicit [Bindable(..)] metadata; d) ok according to
     * checkBindableVariable().
   */
  public Value evaluate(Context context, VariableDefinitionNode node)
  {
    QName qname = new QName(NodeMagic.getUserNamespace(node), NodeMagic.getVariableName(node));
    if (inBindableClass() &&
            !inFunction &&
            !isBindableAccessor(qname) &&
            checkBindableVariable(context, node, true, true))
    {
View Full Code Here

     */
    protected boolean hasAttributeInitializers(Node node)
    {
        for (Iterator iter = node.getAttributeNames(); iter.hasNext(); )
        {
            QName qname = (QName)iter.next();
            if (!isSpecialAttribute(qname.getNamespace(), qname.getLocalPart()))
            {
                return true;
            }
        }
        return false;
View Full Code Here

            {
                node.toStartElement((StringWriter) serializer);
            }
            else
            {
                QName qname = new QName(node.getNamespace(), node.getLocalPart(), node.getPrefix());
                ((XMLStringSerializer) serializer).startElement(qname, new AttributesHelper(node));
            }

            if (node.getChildCount() == 1 && node.getChildAt(0) instanceof CDATANode)
            {
View Full Code Here

    {
        QNameMap<BindingExpression> attributeBindings = null;

        for (Iterator<QName> i = node.getAttributeNames(); i != null && i.hasNext();)
        {
            QName qname = i.next();
            String value = (String) node.getAttributeValue(qname);

            BindingExpression be = textParser.parseBindingExpression(value, node.beginLine);

            if (be != null)
View Full Code Here

    protected boolean topLevel;
    Model rvalue;

    public void analyze(InlineComponentNode node)
    {
        QName classQName = node.getClassQName();

        rvalue = factoryFromClass(NameFormatter.toDot(classQName), node.beginLine);

        String id = (String)getLanguageAttributeValue(node, StandardDefs.PROP_ID);
        if (id != null || topLevel)
View Full Code Here

     */
    private static QName getQNameFromSource(Source source)
    {
        String className = source.getShortName();
        String packageName = source.getRelativePath().replace('/', '.');
        return new QName(packageName, className);
    }
View Full Code Here

            {
                // Parse FXG to a DOM
                FXGNode node = parser.parse(source.getInputStream(), source.getNameForReporting());
                context.setAttribute(FXG_DOM_ROOT, node);

                QName topLevelQName = getQNameFromSource(source);
                unit.topLevelDefinitions.add(topLevelQName);

                // We add the base class for our generated skeleton here so that
                // the type will be resolved after returning from parse1() and
                // before we get to analyze2().
View Full Code Here

        TranscodingResults result = null;

        if (generateSource)
        {
            String skinClassName = (String) args.get(Transcoder.SKINCLASS);
            Source skinSource = symbolTable.findSourceByQName(new QName(NameFormatter.toColon(skinClassName)));

            if (skinSource == null)
            {
                throw new SkinClassNotFound(skinClassName);
            }
View Full Code Here

TOP

Related Classes of flex2.compiler.util.QName

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.