Uses of Class
xyz.janboerman.scalaloader.configurationserializable.runtime.ParameterType
Packages that use ParameterType
Package
Description
This package contains a few adapter types that implement
ConfigurationSerializable
.-
Uses of ParameterType in xyz.janboerman.scalaloader.configurationserializable.runtime
Modifier and TypeClassDescriptionclass
Represents array types.class
Represents parameterized types.Methods in xyz.janboerman.scalaloader.configurationserializable.runtime that return ParameterTypeModifier and TypeMethodDescriptionstatic ParameterType
ParameterType.from
(AnnotatedType type) Construct a ParameterType from an AnnotatedTypestatic ParameterType
Construct a ParameterType from a Parameter.static ParameterType
Construct a ParameterType from aClass
.static ParameterType
ParameterType.from
(Set<? extends Annotation> annotations, Type type) Construct the ParameterType that includes annotation information.ArrayParameterType.getComponentType()
Get the component type of this array type.ParameterizedParameterType.getTypeParameter
(int index) Get the i'th type parameter.Methods in xyz.janboerman.scalaloader.configurationserializable.runtime that return types with arguments of type ParameterTypeModifier and TypeMethodDescriptionList
<? extends ParameterType> ParameterizedParameterType.getTypeParameters()
Get the type parameters of this parameterized type.Methods in xyz.janboerman.scalaloader.configurationserializable.runtime with parameters of type ParameterTypeModifier and TypeMethodDescriptionstatic <ScalaPluginClassLoader extends ClassLoader & IScalaPluginClassLoader>
ObjectRuntimeConversions.deserialize
(Object serialized, ParameterType type, ScalaPluginClassLoader pluginClassLoader) This method will be called by configuration serializable types for which ScalaLoader does not know how to handle them out of the box.static ArrayParameterType
ArrayParameterType.from
(Set<? extends Annotation> annotations, ParameterType componentType, boolean varArgs) The same asArrayParameterType.from(ParameterType, boolean)
, but includes annotation information.static ArrayParameterType
ArrayParameterType.from
(ParameterType componentType, boolean varArgs) Construct a new ArrayParameterTypestatic ParameterizedParameterType
ParameterizedParameterType.from
(Class<?> rawType, ParameterType... typeParameters) Construct a ParameterizedParameterType from a class and its type parameters.static ParameterizedParameterType
ParameterizedParameterType.from
(Set<? extends Annotation> annotations, Class<?> rawType, ParameterType... typeParameters) Same asParameterizedParameterType.from(Class, ParameterType...)
but with annotation information included.static boolean
RuntimeConversions.registerCodec
(IScalaPluginClassLoader pluginClassLoader, ParameterType type, Codec<?, ?> codec) Register a codec that will be used byRuntimeConversions.serialize(Object, ParameterType, ClassLoader)
andRuntimeConversions.deserialize(Object, ParameterType, ClassLoader)
.static <ScalaPluginClassLoader extends ClassLoader & IScalaPluginClassLoader>
ObjectRuntimeConversions.serialize
(Object live, ParameterType type, ScalaPluginClassLoader pluginClassLoader) This method will be called by configuration serializable types for which ScalaLoader does not know how to handle them out of the box.Method parameters in xyz.janboerman.scalaloader.configurationserializable.runtime with type arguments of type ParameterTypeModifier and TypeMethodDescriptionstatic boolean
RuntimeConversions.registerCodec
(IScalaPluginClassLoader pluginClassLoader, Predicate<? super ParameterType> whenToUse, Function<? super ParameterType, ? extends Codec<?, ?>> codecFactory) Register a codec that will be used byRuntimeConversions.serialize(Object, ParameterType, ClassLoader)
andRuntimeConversions.deserialize(Object, ParameterType, ClassLoader)
.static boolean
RuntimeConversions.registerCodec
(IScalaPluginClassLoader pluginClassLoader, Predicate<? super ParameterType> whenToUse, Function<? super ParameterType, ? extends Codec<?, ?>> codecFactory) Register a codec that will be used byRuntimeConversions.serialize(Object, ParameterType, ClassLoader)
andRuntimeConversions.deserialize(Object, ParameterType, ClassLoader)
. -
Uses of ParameterType in xyz.janboerman.scalaloader.configurationserializable.runtime.types
Methods in xyz.janboerman.scalaloader.configurationserializable.runtime.types with parameters of type ParameterTypeModifier and TypeMethodDescriptionstatic <SPCL extends ClassLoader & IScalaPluginClassLoader>
ObjectEither.deserialize
(Object serializedEither, ParameterType type, SPCL plugin) static <ScalaPluginClassLoader extends ClassLoader & IScalaPluginClassLoader>
ObjectOption.deserialize
(Object serializedOption, ParameterType type, ScalaPluginClassLoader plugin) static final boolean
JavaCollection.isRawtypeCollection
(Object live, ParameterType type) static boolean
JavaMap.isRawtypeMap
(Object o, ParameterType paramType) static <SPCL extends ClassLoader & IScalaPluginClassLoader>
ConfigurationSerializableEither.serialize
(Object scalaEither, ParameterType type, SPCL pluginClassLoader) static <T> JavaCollection
<T> JavaCollection.serialize
(Object live, ParameterType type, IScalaPluginClassLoader plugin) static <K,
V, ScalaPluginClassLoader extends ClassLoader & IScalaPluginClassLoader>
JavaMap<K, V> JavaMap.serialize
(Object live, ParameterType type, ScalaPluginClassLoader plugin) static <ScalaPluginClassLoader extends ClassLoader & IScalaPluginClassLoader>
ConfigurationSerializableOption.serialize
(Object scalaOption, ParameterType type, ScalaPluginClassLoader plugin) static ScalaCollection
ScalaCollection.serialize
(Object live, ParameterType type, ClassLoader plugin) static <ScalaPluginClassLoader extends ClassLoader & IScalaPluginClassLoader>
ScalaMapScalaMap.serialize
(Object live, ParameterType type, ScalaPluginClassLoader plugin) static <ScalaPluginClassLoader extends ClassLoader & IScalaPluginClassLoader>
ConfigurationSerializableTuple.serialize
(Object scalaTuple, ParameterType type, ScalaPluginClassLoader pluginClassLoader)