Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > why a object's method could demand a class but not a object?

Reply
Thread Tools

why a object's method could demand a class but not a object?

 
 
mike
Guest
Posts: n/a
 
      01-21-2005
regards:


why a object's method could demand a class but not a object?
...@@


Node [] images = parser.extractAllNodesThatAre(ImageTag.class);
^^^^^^^^^^^^^^^^^^

thank you
may god be with you
 
Reply With Quote
 
 
 
 
Tor Iver Wilhelmsen
Guest
Posts: n/a
 
      01-21-2005
(mike) writes:

> Node [] images = parser.extractAllNodesThatAre(ImageTag.class);
> ^^^^^^^^^^^^^^^^^^


That's not a class name, but a reference to the _object_ (an instance
of java.lang.Class) that represents (is "metaclass" of) the class
ImageTag.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why defining a constant in a method is not allowed but usingself.class.const_set is allowed? IƱaki Baz Castillo Ruby 13 05-01-2011 06:09 PM
why a class can't access protected method from another class in thesame package,the method is interited from the ohtner class from differntpackage? junzhang1983@gmail.com Java 3 01-28-2008 02:09 AM
Could C each other, but could not connect vijaiakumar@gmail.com Computer Support 3 06-25-2007 05:00 AM
findcontrol("PlaceHolderPrice") why why why why why why why why why why why Mr. SweatyFinger ASP .Net 2 12-02-2006 03:46 PM
can call a method, but not a method within a user-defined class aidy Ruby 5 06-04-2006 08:10 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57