Java Code Examples for ch.njol.skript.registrations.Classes#getSuperClassInfo()
The following examples show how to use
ch.njol.skript.registrations.Classes#getSuperClassInfo() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SimpleExpressionFork.java From skript-yaml with MIT License | 5 votes |
@Override @Nullable public Class<?>[] acceptChange(final ChangeMode mode) { ClassInfo<?> rti = returnTypeInfo; if (rti == null) returnTypeInfo = rti = Classes.getSuperClassInfo(getReturnType()); final Changer<?> c = rti.getChanger(); if (c == null) return null; return c.acceptChange(mode); }
Example 2
Source File: SimpleExpression.java From Skript with GNU General Public License v3.0 | 5 votes |
@Override @Nullable public Class<?>[] acceptChange(final ChangeMode mode) { ClassInfo<?> rti = returnTypeInfo; if (rti == null) returnTypeInfo = rti = Classes.getSuperClassInfo(getReturnType()); final Changer<?> c = rti.getChanger(); if (c == null) return null; return c.acceptChange(mode); }
Example 3
Source File: ConvertedExpression.java From Skript with GNU General Public License v3.0 | 5 votes |
@Override @Nullable public Class<?>[] acceptChange(final ChangeMode mode) { final Class<?>[] r = source.acceptChange(mode); if (r == null) { ClassInfo<? super T> rti = returnTypeInfo; returnTypeInfo = rti = Classes.getSuperClassInfo(getReturnType()); final Changer<?> c = rti.getChanger(); return c == null ? null : c.acceptChange(mode); } return r; }
Example 4
Source File: SimpleLiteral.java From Skript with GNU General Public License v3.0 | 5 votes |
@Override @Nullable public Class<?>[] acceptChange(final ChangeMode mode) { ClassInfo<? super T> rti = returnTypeInfo; if (rti == null) returnTypeInfo = rti = Classes.getSuperClassInfo(getReturnType()); final Changer<? super T> c = rti.getChanger(); return c == null ? null : c.acceptChange(mode); }
Example 5
Source File: Variables.java From Skript with GNU General Public License v3.0 | 5 votes |
@SuppressWarnings({"unchecked"}) @Override @Nullable public String getID(final @NonNull Class<?> c) { if (ConfigurationSerializable.class.isAssignableFrom(c) && Classes.getSuperClassInfo(c) == Classes.getExactClassInfo(Object.class)) return configurationSerializablePrefix + ConfigurationSerialization.getAlias((Class<? extends ConfigurationSerializable>) c); return null; }