ParseTreeProperty<Integer> values = new ParseTreeProperty<Integer>(); values.put(tree, 36); int x = values.get(tree); values.removeFrom(tree);You would make one decl (values here) in the listener and use lots of times in your event methods.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public V | |
| public void | |
| public V |
| annotations | back to summary |
|---|---|
| protected Map<ParseTree, V> annotations | |
| ParseTreeProperty | back to summary |
|---|---|
| public ParseTreeProperty() | |
| get | back to summary |
|---|---|
| public V get(ParseTree node) | |
| put | back to summary |
|---|---|
| public void put(ParseTree node, V value) | |
| removeFrom | back to summary |
|---|---|
| public V removeFrom(ParseTree node) | |