This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 22169 - Remove of TokenIterator.get/setAttribute
Summary: Remove of TokenIterator.get/setAttribute
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Lexer (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-07 20:29 UTC by Jaroslav Tulach
Modified: 2002-07-19 15:22 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
Token.java and other modifications (8.66 KB, patch)
2002-04-07 20:30 UTC, Jaroslav Tulach
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2002-04-07 20:29:24 UTC
Here is a patch that removes the methods get/set
attribute from the TokenIterator and replaces it
with Token.setData & Token.getData. 

In order to make those methods unavailable to
outside world, I have changed the Token to be
abstract class. Which is fine except the
*.module.lexer.swing package.

Please evaluate the patch.
Comment 1 Jaroslav Tulach 2002-04-07 20:30:02 UTC
Created attachment 5318 [details]
Token.java and other modifications
Comment 2 Miloslav Metelka 2002-05-28 11:07:32 UTC
The TokenIterator was removed completely. Now the TokenUpdater is used
to update the token list. It has protected methods that are
responsible for getting/updating lookahead, lookback and state.