Examples of IVariableDefinition


Examples of org.apache.flex.compiler.definitions.IVariableDefinition

        //  We make an XMLWatcher and a property watcher to watch the same thing, so two of them
        // are created in this one call
        if (def instanceof IVariableDefinition)
        {
            // Is the def for an XML type variable?
            IVariableDefinition var = (IVariableDefinition)def;
            ITypeDefinition varType = var.resolveType(project);
           
            // note that varType might be null if code is bad
            boolean isVarXML = (varType==null) ? false : varType.isInstanceOf("XML", project);

            if (isVarXML)
View Full Code Here

Examples of org.apache.flex.compiler.definitions.IVariableDefinition

                .getAllLocalDefinitions();
        for (IDefinition member : definitions)
        {
            if (!member.isImplicit() && member instanceof IVariableDefinition)
            {
                IVariableDefinition vnode = (IVariableDefinition) member;
                if (!member.isStatic()
                        && (member.isPublic() || member.isProtected()))
                    result.add(vnode);
                // TODO FIX the logic here, this won't add twice though
                if (!excludePrivate && member.isPrivate())
View Full Code Here

Examples of org.apache.flex.compiler.definitions.IVariableDefinition

        if (!(definition.getParent() instanceof IClassDefinition))
            return false;

        if (definition instanceof IVariableDefinition)
        {
            IVariableDefinition variable = (IVariableDefinition) definition;
            if (variable.isStatic())
                return false;
        }
        if (definition instanceof IFunctionDefinition)
        {
            IFunctionDefinition function = (IFunctionDefinition) definition;
View Full Code Here

Examples of org.apache.flex.compiler.definitions.IVariableDefinition

    @Override
    public void emitField(IVariableNode node)
    {
        emitFieldDocumentation(node);

        IVariableDefinition definition = (IVariableDefinition) node
                .getDefinition();

        if (!(node instanceof ChainedVariableNode))
        {
            emitNamespaceIdentifier(node);
View Full Code Here

Examples of org.apache.flex.compiler.definitions.IVariableDefinition

    //--------------------------------------------------------------------------

    @Override
    public void emitField(IVariableNode node)
    {
        IVariableDefinition definition = (IVariableDefinition) node
                .getDefinition();

        if (definition.isStatic())
        {
            IClassDefinition parent = (IClassDefinition) definition.getParent();
            write(parent.getBaseName());
            write(".");
            write(definition.getBaseName());
            write(" = ");
            emitFieldInitialValue(node);
            return;
        }
View Full Code Here

Examples of org.apache.flex.compiler.definitions.IVariableDefinition

    }

    private void emitFieldInitialValue(IVariableNode node)
    {
        ICompilerProject project = getWalker().getProject();
        IVariableDefinition definition = (IVariableDefinition) node
                .getDefinition();

        IExpressionNode valueNode = node.getAssignedValueNode();
        if (valueNode != null)
            getWalker().walk(valueNode);
View Full Code Here

Examples of org.apache.flex.compiler.definitions.IVariableDefinition

    @Override
    public void emitField(IVariableNode node)
    {
        emitFieldDocumentation(node);

        IVariableDefinition definition = (IVariableDefinition) node
                .getDefinition();

        if (!(node instanceof ChainedVariableNode))
        {
            emitNamespaceIdentifier(node);
View Full Code Here

Examples of org.apache.flex.compiler.definitions.IVariableDefinition

    //--------------------------------------------------------------------------

    @Override
    public void emitField(IVariableNode node)
    {
        IVariableDefinition definition = (IVariableDefinition) node
                .getDefinition();

        if (definition.isStatic())
        {
            IClassDefinition parent = (IClassDefinition) definition.getParent();
            write(parent.getBaseName());
            write(".");
            write(definition.getBaseName());
            write(" = ");
            emitFieldInitialValue(node);
            return;
        }
View Full Code Here

Examples of org.apache.flex.compiler.definitions.IVariableDefinition

    }

    private void emitFieldInitialValue(IVariableNode node)
    {
        ICompilerProject project = getWalker().getProject();
        IVariableDefinition definition = (IVariableDefinition) node
                .getDefinition();

        IExpressionNode valueNode = node.getAssignedValueNode();
        if (valueNode != null)
            getWalker().walk(valueNode);
View Full Code Here

Examples of org.apache.flex.compiler.definitions.IVariableDefinition

    @Override
    public void emitField(IVariableNode node)
    {
        emitFieldDocumentation(node);

        IVariableDefinition definition = (IVariableDefinition) node
                .getDefinition();

        if (!(node instanceof ChainedVariableNode))
        {
            emitNamespaceIdentifier(node);
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.