Created
January 2, 2012 10:47
-
-
Save pulse00/1550258 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * statement to traverse: | |
| * foo.bar(baz) | |
| */ | |
| module.traverse(new ASTVisitor() | |
| { | |
| @Override | |
| public boolean endvisit(FieldAccess node) throws Exception | |
| { | |
| // dispatcher would be the IDENT 'foo' | |
| Expression dispatcher = node.getDispatcher(); | |
| // field would be the call 'bar(baz)' | |
| Expression field = node.getField(); | |
| return super.endvisit(node); | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment