Package ch.njol.skript.util
Class ClassInfoReference
java.lang.Object
ch.njol.skript.util.ClassInfoReference
A ClassInfoReference represents a specific reference to a classinfo including any derivable context
-
Constructor Summary
ConstructorDescriptionClassInfoReference
(ClassInfo<?> classInfo) ClassInfoReference
(ClassInfo<?> classInfo, Kleenean plural) -
Method Summary
Modifier and TypeMethodDescriptionClassInfo
<?> isPlural()
void
setClassInfo
(ClassInfo<?> classInfo) void
static @NotNull Expression
<ClassInfoReference> wrap
(@NotNull Expression<ClassInfo<?>> classInfoExpression) Wraps a ClassInfo expression as a ClassInfoReference expression which will return ClassInfoReferences with as much derivable context as possible
-
Constructor Details
-
ClassInfoReference
-
ClassInfoReference
-
-
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
- Returns:
- A Kleenean representing whether this classinfo reference was plural. Kleeanan.UNKNOWN represents a reference which did not have appropriate context available.
-
setPlural
-
getClassInfo
-
setClassInfo
-