[RFE] Access to Field, Method and Constructor without the use of Strings

L

Lee Fesperman

Carl said:
That's what your database engine does also:
It parses SQL and creates an object representation to be
processed by your query processor code.

Yes, that's what our parser does. However, we feel that the output of our parser is
unique and contributes greatly to the effectiveness of our complier and optimizer.
Naturally, it is oriented to a relational view of the world.
A standard for the first step would reduce the necessary
implementation work for database products that don't
support SQL yet.

I don't see that as a simple step. In fact, I believe that the parsers used by some of
the major SQL-DBMSs are suspect (read: weak).
 
P

psager

Field fooBarField = Foo.class.bar.field;
Method fooFlyMethod = Foo.class.fly.method(new Object[]{String.class});
Constructor fooConstructor = Foo.class.constructor(new Object[]{String.class});

+1

I fully agree with Carl.
We're already using the Foo.class syntax very heavily, to store all
class mappings in a hashtable.
A type-safe extension for fields and methods would be very welcome.

Regs
-- Pat
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,438
Messages
2,571,699
Members
48,796
Latest member
Greg L.
Top