Package abstrasy

Examples of abstrasy.Interface


            //
            Node inode = INTERFACE.get();
            if (inode == null)
                throw new InterpreterException(StdErrors.Abstract_misplaced);

            Interface ifaceTo = (Interface) inode.getExternal();
            Interface ifaceFrom= (Interface) arg0.getExternal();
            ifaceTo.imports(ifaceFrom);
            return null;
        }
        else {
            //
            // C'est un pcode...
            //

            //
            // récupération du type primaire...
            //
            int tn = arg0.getPCFx_Code();

            //
            // récupération du symbole...
            //
            ASymbol symbole = new ASymbol(PCoder.unselfing(startAt.getSubNode(arg_o++, Node.TYPE_QSYMBOL).getSymbol().getStr()));
            if (symbole.getIdsCnt()!=1)
                throw new InterpreterException(StdErrors.Local_symbol_required);

            //
            // vérification de la fin de l'expression
            //
            startAt.isGoodArgsCnt(arg_o);

            //
            // vérifier que nous somme à l'intérieur d'une section interface...
            //
            Node inode = INTERFACE.get();
            if (inode == null)
                throw new InterpreterException(StdErrors.Abstract_misplaced);

            Interface iface = (Interface) inode.getExternal();

            //
            // c'est parti...
            //

            if (tn == PCoder.PC_FUNCTION)
                iface.declare(symbole.getStr(), Node.TYPE_FUNCTION);

            else
                throw new InterpreterException(StdErrors.Syntax_error);

            return null;
View Full Code Here

TOP

Related Classes of abstrasy.Interface

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.