Constructs one or more objects from Strings.
Constructs one or more objects from Strings. Supports building any unitType class that either:
the type that must be assignable to, from the return of this function (may be a collection or a single-valued type)
either the same as resultType or when resultType is a collection, the type of elements in the collection
one or more strings from which to construct objects. More than one string should only be given for collections.
an object constructed from the string.
Gets all the options for an enumeration.
Gets the annotation of type T
of the class clazz
Finds and hydrates a static scala classfile annotation on the provided symbol.
Finds and hydrates a static scala classfile annotation on the provided symbol. If the symbol isn't annotated with the specified annotation, None is returned. If it is annotated then the annotation value is reified and an instance returned.
Finds and instantiates a scala classfile annotation of type A, on a class of type C.
Finds and instantiates a scala classfile annotation of type A, on a class of type C. This method is preferred when, in code, the _type_ of class is known directly. Otherwise see the version which takes an annotated symbol instead of a type.
Returns true if the class of type C the symbol is annotated with a scala classfile annotation of type A, otherwise returns false.
Returns true if the symbol (class, field, arg) is annotated with a scala classfile annotation of the provided type, otherwise returns false.
Ensures that the wrapper class is used for primitive classes.
Returns true if the class is subclass of a collection class (Seq, Set or java.util.Collection)
True if the value is a collection class and is empty, false otherwise.
True if the value is a collection class and is empty, false otherwise. Throws a IllegalArgumentException if the value is not a supported collection class (Seq, Set or java.util.Collection).
Returns true if the class is a subclass of java.util.Collection
Returns true if the class is a subclass of Seq
Returns true if the class is a subclass of Set
Creates a new instance of various java collections.
Creates a new instance of various java collections. Will inspect the type given to see if there is a no-arg constructor and will use that if possible. If there is no constructor it will attempt to determine the appropriate concrete class to instantiate and return that.
Instantiates a new Scala collection of the desired type with the provided arguments.
Converts a type tag to a class
Takes a Type symbol that represents a concrete class and returns the Class object associated with it.
Provides generic utility methods related to Java and Scala reflection.