Package org.apache.flex.compiler.tree.as

Examples of org.apache.flex.compiler.tree.as.IASNode


    @Override
    protected IABCBytesRequestResult handleABCBytesRequest() throws InterruptedException
    {
        ISyntaxTreeRequestResult syntaxTreeResult = getSyntaxTreeRequest().get();
        final IASNode rootNode = syntaxTreeResult.getAST();

        startProfile(Operation.GET_ABC_BYTES);
        try
        {
            final Collection<ICompilerProblem> problems = new LinkedList<ICompilerProblem>();
View Full Code Here


        //Create key value pair entries "key":"value"
        int entryCount = 0;
        for (int i = 0; i < fileNode.getChildCount(); i++)
        {
            IASNode node = fileNode.getChild(i);
            if (node instanceof ResourceBundleEntryNode)
            {
                entryCount++;
                ResourceBundleEntryNode entryNode = (ResourceBundleEntryNode)node;
View Full Code Here

    {
        StringBuilder builder = new StringBuilder();
        int length = getContentsNode().getChildCount();
        for (int i = 0; i < length; i++)
        {
            IASNode child = getContentsNode().getChild(i);
            if (child instanceof ILiteralNode)
            {
                builder.append(((ILiteralNode) child).getValue(rawValue));
            }
        }
View Full Code Here

        final ContainerNode contents = getContentsNode();
        final int size = contents.getChildCount();

        if (size > 0)
        {
            final IASNode lastLiteralNode = contents.getChild(size - 1);
            if (lastLiteralNode.getNodeID() == ASTNodeID.LiteralXMLID)
            {
                final LiteralNode appendTarget = (LiteralNode) lastLiteralNode;
                if (!appendTarget.value.equals("<>"))
                {
                    appendTarget.value = appendTarget.value.concat(token
View Full Code Here

        }
        else
        {

            ISyntaxTreeRequestResult syntaxTreeResult = getSyntaxTreeRequest().get();
            IASNode rootNode = syntaxTreeResult.getAST();
            if (rootNode == null)
            {
                return new ABCBytesRequestResult(syntaxTreeResult.getProblems());
            }
View Full Code Here

    @Override
    public VariableClassification getVariableClassification()
    {
        IScopedNode scopedNode = getScopeNode();
       
        IASNode node = scopedNode;
       
        if (node instanceof ICommonClassNode || node.getParent() instanceof ICommonClassNode)
            return VariableClassification.CLASS_MEMBER;
       
        if (node.getParent() instanceof IInterfaceNode)
            return VariableClassification.INTERFACE_MEMBER;
       
        if (node.getParent() instanceof PackageNode)
            return VariableClassification.PACKAGE_MEMBER;
       
        return VariableClassification.LOCAL;
    }
View Full Code Here

        {
            checker.checkClassField(var, is_static);
            //  Massive kludge -- grovel over chained variable decls and add them one by one
            for ( int i = 0; i < var.getChildCount(); i++ )
            {
                IASNode candidate = var.getChild(i);

                if ( candidate instanceof VariableNode )
                {
                    declareVariable((VariableNode)candidate);
                }
View Full Code Here

        int childCount = baseInterfacesNode.getChildCount();
        if (baseInterfacesNode != null && childCount > 0)
        {
            for (int i = 0; i < childCount; i++)
            {
                IASNode child = baseInterfacesNode.getChild(i);
                if (child instanceof IIdentifierNode)
                {
                    interfaceNodeList.add(((IIdentifierNode)child));
                }
            }
View Full Code Here

        int childCount = baseInterfacesNode.getChildCount();
        if (baseInterfacesNode != null && childCount > 0)
        {
            for (int i = 0; i < childCount; i++)
            {
                IASNode child = baseInterfacesNode.getChild(i);
                if (child instanceof IIdentifierNode)
                {
                    interfaceNodeList.add(((IIdentifierNode)child).getName());
                }
            }
View Full Code Here

        {
            int n = baseInterfacesNode.getChildCount();
            IReference[] baseInterfaces = new IReference[n];
            for (int i = 0; i < n; i++)
            {
                IASNode child = baseInterfacesNode.getChild(i);
                if (child instanceof ExpressionNodeBase)
                    baseInterfaces[i] = ((ExpressionNodeBase)child).computeTypeReference();
            }
            definition.setExtendedInterfaceReferences(baseInterfaces);
        }
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.tree.as.IASNode

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.