Package ch.njol.skript.util.Container

Examples of ch.njol.skript.util.Container.ContainerType


 
  public <T> Loop(final Expression<?> expr, final SectionNode node) {
    assert expr != null;
    assert node != null;
    if (Container.class.isAssignableFrom(expr.getReturnType())) {
      final ContainerType type = expr.getReturnType().getAnnotation(ContainerType.class);
      if (type == null)
        throw new SkriptAPIException(expr.getReturnType().getName() + " implements Container but is missing the required @ContainerType annotation");
      this.expr = new ContainerExpression(expr, type.value());
    } else {
      this.expr = expr;
    }
    ScriptLoader.currentSections.add(this);
    ScriptLoader.currentLoops.add(this);
View Full Code Here

TOP

Related Classes of ch.njol.skript.util.Container.ContainerType

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.