Package com.l2jfrozen.gameserver.script

Examples of com.l2jfrozen.gameserver.script.Parser


    }

    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 com.l2jfrozen.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.