Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Distinguish between interface and class references?
Distinguish between interface and class references? [message #112901] Mon, 03 November 2003 05:01 Go to next message
Eclipse UserFriend
Originally posted by: soren.gaardbo.dk

Hi all,

Given an "IField" from the list of field declarations from a class, how is
it possible to distinguish between interfaces and classes?

For example, given the class:

public class SomeClass {
private SomeInterface interfaceRef; // reference to an interface
private SomeOtherClass classRef; // reference to a class
...
}

I would like to be able to count the number of interface references and the
number of class references.

Regards,

Soren.
Re: Distinguish between interface and class references? [message #113116 is a reply to message #112901] Mon, 03 November 2003 08:33 Go to previous message
Eclipse UserFriend
Originally posted by: akiezun.cuthis.mit.edu.andthis

> I would like to be able to count the number of interface references and
the
> number of class references.

why not use ASTs then?
a.
Previous Topic:can jdt 3.0 support the java generic feature?
Next Topic:Applet
Goto Forum:
  


Current Time: Wed Jul 30 15:26:19 EDT 2025

Powered by FUDForum. Page generated in 0.03319 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top