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
ConstructorsConstructorDescriptionClassInfoReference
(ClassInfo<?> classInfo) ClassInfoReference
(ClassInfo<?> classInfo, Kleenean plural) -
Method Summary
Modifier and TypeMethodDescriptionClassInfo
<?> isPlural()
void
setClassInfo
(ClassInfo<?> classInfo) void
static @NonNull Expression
<ClassInfoReference> wrap
(@NonNull 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
public static @NonNull Expression<ClassInfoReference> wrap(@NonNull 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
-