Examples of printLog()


Examples of ch.njol.skript.log.ParseLogHandler.printLog()

      }
      if (!hasValue) {
        log.printError("There's no " + Classes.getSuperClassInfo(c).getName() + " in " + Utils.a(ScriptLoader.getCurrentEventName()) + " event");
        return false;
      }
      log.printLog();
      return true;
    } finally {
      log.stop();
    }
  }
View Full Code Here

Examples of ch.njol.skript.log.ParseLogHandler.printLog()

  public static Statement parse(final String s, final String defaultError) {
    final ParseLogHandler log = SkriptLogger.startParseLogHandler();
    try {
      final EffFunctionCall f = EffFunctionCall.parse(s);
      if (f != null) {
        log.printLog();
        return f;
      } else if (log.hasError()) {
        log.printError();
        return null;
      } else {
View Full Code Here

Examples of ch.njol.skript.log.ParseLogHandler.printLog()

    }
    final ParseLogHandler log = SkriptLogger.startParseLogHandler();
    try {
      final T e = new SkriptParser(expr).parse(source);
      if (e != null) {
        log.printLog();
        return e;
      }
      log.printError(defaultError);
      return null;
    } finally {
View Full Code Here

Examples of ch.njol.skript.log.ParseLogHandler.printLog()

    final ParseLogHandler log = SkriptLogger.startParseLogHandler();
    final T e;
    try {
      e = new SkriptParser(expr, PARSE_LITERALS).parse(source);
      if (e != null) {
        log.printLog();
        return e;
      }
      log.printError(defaultError);
      return null;
    } finally {
View Full Code Here

Examples of ch.njol.skript.log.ParseLogHandler.printLog()

                }
                x = x2;
              }
              final T t = info.c.newInstance();
              if (t.init(res.exprs, i, ScriptLoader.hasDelayBefore, res)) {
                log.printLog();
                return t;
              }
            }
          } catch (final InstantiationException e) {
            assert false;
View Full Code Here

Examples of ch.njol.skript.log.ParseLogHandler.printLog()

          if ((flags & PARSE_EXPRESSIONS) == 0) {
            Skript.error("Variables cannot be used here.");
            log.printError();
            return null;
          }
          log.printLog();
          return var;
        } else if (log.hasError()) {
          log.printError();
          return null;
        }
View Full Code Here

Examples of ch.njol.skript.log.ParseLogHandler.printLog()

          log.printError();
          return null;
        }
        final FunctionReference<T> fr = parseFunction(types);
        if (fr != null) {
          log.printLog();
          return new ExprFunctionCall(fr);
        } else if (log.hasError()) {
          log.printError();
          return null;
        }
View Full Code Here

Examples of ch.njol.skript.log.ParseLogHandler.printLog()

          e = parse(expr, (Iterator) Skript.getExpressions(types), null);
        }
        if (e != null) {
          for (final Class<? extends T> t : types) {
            if (t.isAssignableFrom(e.getReturnType())) {
              log.printLog();
              return (Expression<? extends T>) e;
            }
          }
          for (final Class<? extends T> t : types) {
            final Expression<? extends T> r = e.getConvertedExpression(t);
View Full Code Here

Examples of ch.njol.skript.log.ParseLogHandler.printLog()

            }
          }
          for (final Class<? extends T> t : types) {
            final Expression<? extends T> r = e.getConvertedExpression(t);
            if (r != null) {
              log.printLog();
              return r;
            }
          }
          log.printError(e.toString(null, false) + " " + Language.get("is") + " " + notOfType(types), ErrorQuality.NOT_AN_EXPRESSION);
          return null;
View Full Code Here

Examples of ch.njol.skript.log.ParseLogHandler.printLog()

        if (!allowUnparsedLiteral) {
          log.printError();
          return null;
        }
        log.clear();
        log.printLog();
        final LogEntry e = log.getError();
        return (Literal<? extends T>) new UnparsedLiteral(expr, e != null && (error == null || e.quality > error.quality) ? e : error);
      }
      for (final Class<? extends T> c : types) {
        log.clear();
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.