Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #24393
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: How to scan Java source texts? |
| Date | 2013-06-12 15:38 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <kpaic7$1e0$1@dont-email.me> (permalink) |
| References | (5 earlier) <kp9ac5$46e$1@dont-email.me> <kpa6tn$rlv$1@dont-email.me> <Scanner-20130612184004@ram.dialup.fu-berlin.de> <kpaesh$c9s$1@dont-email.me> <Scanner-20130612204504@ram.dialup.fu-berlin.de> |
On 06/12/2013 02:45 PM, Stefan Ram wrote: > Jeff Higgins <jeff@invalid.invalid> writes: >> The only problem I see now is gaining access to the protected >> Scanner constructor outside of the com.sun.tools.javac.parser package. > > You need to use a factory method of a ScannerFactory, and to > get that, you need to use yet another factory-like method of > ScannerFactory, which needs a Context, but this time you can > use Context's default constructor. > ScannerFactory.instance(new Context()).newScanner(args[0], true); Wonderful! Thanks.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: How to scan Java source texts? Jeff Higgins <jeff@invalid.invalid> - 2013-06-11 16:40 -0400
Re: How to scan Java source texts? Jeff Higgins <jeff@invalid.invalid> - 2013-06-11 22:07 -0400
Re: How to scan Java source texts? Jeff Higgins <jeff@invalid.invalid> - 2013-06-12 04:04 -0400
Re: How to scan Java source texts? Jeff Higgins <jeff@invalid.invalid> - 2013-06-12 04:15 -0400
Re: How to scan Java source texts? Jeff Higgins <jeff@invalid.invalid> - 2013-06-12 12:22 -0400
Re: How to scan Java source texts? Jeff Higgins <jeff@invalid.invalid> - 2013-06-12 12:55 -0400
Re: How to scan Java source texts? Jeff Higgins <jeff@invalid.invalid> - 2013-06-12 14:38 -0400
Re: How to scan Java source texts? Jeff Higgins <jeff@invalid.invalid> - 2013-06-12 15:38 -0400
csiph-web