Examples of printLog()


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

          if (log.hasError()) {
            log.printError();
            return false;
          }
          log.clear();
          log.printLog();
          final Class<?>[] r = new Class[rs.length];
          for (int i = 0; i < rs.length; i++)
            r[i] = rs[i].isArray() ? rs[i].getComponentType() : rs[i];
          if (rs.length == 1 && rs[0] == Object.class)
            Skript.error("Can't understand this expression: " + changer, ErrorQuality.NOT_AN_EXPRESSION);
View Full Code Here

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

            Skript.error(what + " can't be set to " + changer + " because the latter is " + SkriptParser.notOfType(r), ErrorQuality.SEMANTIC_ERROR);
          else
            Skript.error(changer + " can't be " + (mode == ChangeMode.ADD ? "added to" : "removed from") + " " + what + " because the former is " + SkriptParser.notOfType(r), ErrorQuality.SEMANTIC_ERROR);
          return false;
        }
        log.printLog();
      } finally {
        log.stop();
      }
     
      Class<?> x = Utils.getSuperType(rs2);
View Full Code Here

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

  public static Effect parse(final String s, final @Nullable 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()

              assert ls != null;
              if (!e.init(ls, i, res)) {
                log.printError();
                return null;
              }
              log.printLog();
              return new NonNullPair<SkriptEventInfo<?>, SkriptEvent>(info, e);
            }
          } catch (final InstantiationException e) {
            assert false;
          } catch (final IllegalAccessException e) {
View Full Code Here

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

        case '[': {
          final ParseLogHandler log = SkriptLogger.startParseLogHandler();
          try {
            res = parse_i(pattern, i, j + 1);
            if (res != null) {
              log.printLog();
              return res;
            }
            log.clear();
            j = nextBracket(pattern, ']', '[', j + 1, true) + 1;
            res = parse_i(pattern, i, j);
View Full Code Here

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

            j = nextBracket(pattern, ']', '[', j + 1, true) + 1;
            res = parse_i(pattern, i, j);
            if (res == null)
              log.printError();
            else
              log.printLog();
            return res;
          } finally {
            log.stop();
          }
        }
View Full Code Here

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

                    } catch (final NumberFormatException e) {}
                  }
                }
                res = parse_i(pattern, i, j + 1);
                if (res != null) {
                  log.printLog();
                  res.mark ^= mark; // doesn't do anything if no mark was set as x ^ 0 == x
                  return res;
                }
              } else if (pattern.charAt(j) == '(') {
                j = nextBracket(pattern, ')', '(', j + 1, true);
View Full Code Here

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

                        if (!e.setTime(vi.time)) {
                          Skript.error(e + " does not have a " + (vi.time == -1 ? "past" : "future") + " state", ErrorQuality.SEMANTIC_ERROR);
                          return null;
                        }
                      }
                      log2.printLog();
                      log.printLog();
                      res.exprs[countUnescaped(pattern, '%', 0, j) / 2] = e;
                      return res;
                    }
                  }
View Full Code Here

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

              m.region(i, i2);
              if (m.matches()) {
                res = parse_i(pattern, i2, end + 1);
                if (res != null) {
                  res.regexes.add(0, m.toMatchResult());
                  log.printLog();
                  return res;
                }
              }
            }
            log.printError(null);
View Full Code Here

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

    try {
      final T r = Classes.parse(v, type, ParseContext.CONFIG);
      if (r == null)
        log.printError("The entry for '" + key + "' in the database '" + databaseName + "' must be " + Classes.getSuperClassInfo(type).getName().withIndefiniteArticle());
      else
        log.printLog();
      return r;
    } finally {
      log.stop();
    }
  }
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.