Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Reflectify -- plug-in for reflective API access
Reflectify -- plug-in for reflective API access [message #259329] Sat, 04 April 2009 14:12 Go to next message
Eclipse UserFriend
Originally posted by: jwloka.cs.rutgers.edu

Hi there,

using APIs via java.lang.relfect can be tedious and also quite painful.
Reflectify is a small plug-in that offers Quick Assists for
"reflectifying" class, instance, method and field accesses. The plug-in
provides the following transformations:


Reflectify Class Access, e.g.:
Foo.class --> Class.forName("p.Foo")

Reflectify Instance Access, e.g.:
new FooClass() --> Class.forName("p1.FooClass").newInstance()

Reflectify Method Access, e.g.:
v.getFoo() --> v.getClass().getMethod("getFoo").invoke(v)

Reflectify Field Access, e.g.:
v.bar --> v.getClass().getField("bar").get(v)

Reflectify Field Assignment, e.g.:
v.bar = new Object() --> v.getClass().getField("bar")
.set(v, new Object())

The plug-in is available at http://www.wlokas.de/jan/Reflectify.html

Give it a try,
Jan.
Re: Reflectify -- plug-in for reflective API access [message #259356 is a reply to message #259329] Mon, 06 April 2009 10:17 Go to previous message
Eclipse UserFriend
Jan Wloka wrote:
> Hi there,
>
> using APIs via java.lang.relfect can be tedious and also quite painful.
> Reflectify is a small plug-in that offers Quick Assists for
> "reflectifying" class, instance, method and field accesses. The plug-in
> provides the following transformations:

Cool.

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm
Previous Topic:Workspace search problem
Next Topic:Stdout and Stderr when debugging remotely?
Goto Forum:
  


Current Time: Sat Apr 26 21:27:18 EDT 2025

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

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

Back to the top