Package net.sf.l2j.gameserver.script

Examples of net.sf.l2j.gameserver.script.Parser


        if (DEBUG) _log.fine("Parsing Script: " + script.getName());

        Node node = script.getDocument().getFirstChild();
        String parserClass = "faenor.Faenor" + node.getNodeName() + "Parser";

        Parser parser = null;
        try
        {
            parser = createParser(parserClass);
        }
        catch (ParserNotCreatedException e)
        {
            _log.warning("ERROR: No parser registered for Script: " + parserClass);
            e.printStackTrace();
        }

        if (parser == null)
        {
            _log.warning("Unknown Script Type: " + script.getName());
            return;
        }

        try
        {
            parser.parseScript(node, context);
            _log.fine(script.getName() + "Script Sucessfullty Parsed.");
        }
        catch (Exception e)
        {
            e.printStackTrace();
View Full Code Here

TOP

Related Classes of net.sf.l2j.gameserver.script.Parser

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.