🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #8012

Re: Reflection

#8012
From: Joi Ellis [TeamB]
Date: Thu, 26 Apr 2001 03:37
41 lines
2100 bytes
Renato Fiche Junior <grade@nce.ufrj.br> wrote:
> Hi,

> No...i am not thinking of the wrapper class.
> I am sure that Java has a Class for primitive types (Class has a method
> called isPrimitive()), but i dont know how i can get a reference to it.

> Thanks

Right from the javadoc for Class:

public boolean isPrimitive()

          Determines if the specified Class object represents a primitive
          type.

          There are nine predefined Class objects to represent the eight
          primitive types and void. These are created by the Java Virtual
          Machine, and have the same names as the primitive types that
          they represent, namely boolean, byte, char, short, int, long,
          float, and double.

          These objects may only be accessed via the following public
          static final variables, and are the only Class objects for
          which this method returns true.

        Since: 
                JDK1.1

        See Also: 
                Boolean.TYPE, Character.TYPE, Byte.TYPE, Short.TYPE,
                Integer.TYPE, Long.TYPE, Float.TYPE, Double.TYPE,
                Void.TYPE



-- 
Joi Ellis (TeamB) 
No direct email, please.
For best results, post on news server newsgroups.borland.com!
Newsgroup Info: http://www.borland.com/newsgroups/guide.html
Technical Details
Message-ID: <3ae797e6_2@dnews>
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!212.74.64.35!colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews!not-for-mail
References: <3ae791bc_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,9781dfce69adbdb3
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-04-25 20:54:33 PST
Message-ID: <3ae797e6_2@dnews>
From: "Joi Ellis [TeamB]" <joi@aravox.com>
Subject: Re: Reflection
Newsgroups: borland.public.jbuilder.java.language
References: <3ae791bc_2@dnews>
User-Agent: tin/1.4.2-20000205 ("Possession") (UNIX) (Linux/2.2.16-3 (i686))
NNTP-Posting-Host: 209.46.41.66
Date: 25 Apr 2001 20:37:10 -0700
X-Trace: dnews 988256230 209.46.41.66 (25 Apr 2001 20:37:10 -0700)
Lines: 41
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!212.74.64.35!colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews!not-for-mail