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

Summary: Remove of TokenIterator.get/setAttribute
Product: editor Reporter: Jaroslav Tulach <jtulach>
Component: LexerAssignee: issues@editor <issues>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P2    
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: TASK Exception Reporter:
Attachments: Token.java and other modifications

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.