If name denotes an array class, the component type of Obtain any of the Class objects representing primitive Will be made to locate a user-defined class in the unnamed package whose If name denotes a primitive type or void, an attempt Initialize parameter is true and if it has Loader is null, the class is loaded through the bootstrapĬlass loader. Loader is used to load the class or interface. Given the fully qualified name for a class or interface (in the sameįormat returned by getName) this method attempts to Interface with the given string name, using the given class loader. Returns the Class object associated with the class or Information about modifiers and type parameters Since: 1.8 Returns: a string describing this Class, including Originating source code or illegal on the originating sourceĬode may be present. Of a type is being generated, modifiers not present on the Note that since information about the runtime representation characters, one set of brackets per dimension of Type's type parameters, if any, followed by a sequence of If there are no type parameters, theįor an array type, the string starts with the type name,įollowed by an angle-bracketed comma-separated list of the Separate any modifiers from the kind of type. Including informative bounds on the type parameters, if any.Ī space is used to separate modifiers from one another and to The string is formatted as a list of type modifiers, if any,įollowed by the kind of type (empty string for primitive typesĪnd class, enum, or record as appropriate), followedīy the type's name, followed by an angle-bracketedĬomma-separated list of the type's type parameters, if any, Information about modifiers and type parameters. Returns a string describing this Class, including See Java Language Specification: 15.8.2 Class Literals In all other respects, the fact thatĪ class or interface is hidden has no bearing on the characteristicsĮxposed by the methods of class Class. A hidden class or interface cannot be discovered by Class::forNameĪ hidden class or interface is never an array class, but may be.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |