Hi Huang,
1 & 2) The ASM contains a subset of the information in the
AST. Whereas the AST needs to contain all of the information used for
generating bytecode, and as such it cannot be retained in memory, the ASM
contains the subset of that information that tools use to expose the static
structure of the program (e.g. the Outline and Cross References views in AJDT).
3) The mapping provides relationships between elements,
typically down to the member level of granularity (e.g. from advice to advised
join points). To gather additional information about the source you may
need to use the AST directly.
Mik
From:
aspectj-dev-bounces@xxxxxxxxxxx [mailto:aspectj-dev-bounces@xxxxxxxxxxx] On
Behalf Of William Huang
Sent: Monday, August 06, 2007 2:21 AM
To: aspectj-dev@xxxxxxxxxxx
Subject: [aspectj-dev] About ASM in AspectJ
Hi! Recently I'm interested in AspectJ and AJDT, now I
have two questions:
(1) Does ASM have equivalent info as AST? Is ASM
towards the source code or the bytecode?
(2) What is the main function of ASM? Can ASM reflect the
corresponding part of source code?
(3) How can I find the the relationship of the source code
through the map of relationship provided in ASM?
Would someone do me a favor to make some comments? Thanks a
lot!
Moody friends. Drama queens. Your life? Nope! - their life,
your story.
Play Sims
Stories at Yahoo! Games.