Class ClassInfoReference

java.lang.Object
ch.njol.skript.util.ClassInfoReference

public final class ClassInfoReference extends Object
A ClassInfoReference represents a specific reference to a classinfo including any derivable context
  • Constructor Details

    • ClassInfoReference

      public ClassInfoReference(ClassInfo<?> classInfo)
    • ClassInfoReference

      public ClassInfoReference(ClassInfo<?> classInfo, Kleenean plural)
  • Method Details

    • wrap

      @NotNull public static @NotNull Expression<ClassInfoReference> wrap(@NotNull @NotNull Expression<ClassInfo<?>> classInfoExpression)
      Wraps a ClassInfo expression as a ClassInfoReference expression which will return ClassInfoReferences with as much derivable context as possible
      Parameters:
      classInfoExpression - the ClassInfo expression to wrap
      Returns:
      a wrapper ClassInfoReference expression
    • isPlural

      public Kleenean isPlural()
      Returns:
      A Kleenean representing whether this classinfo reference was plural. Kleeanan.UNKNOWN represents a reference which did not have appropriate context available.
    • setPlural

      public void setPlural(Kleenean plural)
    • getClassInfo

      public ClassInfo<?> getClassInfo()
    • setClassInfo

      public void setClassInfo(ClassInfo<?> classInfo)