Re: Clarifications About Project


Subject: Re: Clarifications About Project
From: John Sung (john_j_sung@yahoo.com)
Date: Tue Mar 05 2002 - 14:29:20 EST


Here's a more complete example. Forgot the return
statement.

 ObjectName {
 
 String processObject(int me)
   bypassing {badPlace} to goodPlace {
   {{ String returnVal = "Initialize Return val for
 the
 visitor here"; }}
 
    before things {{
         System.out.println(things);
         System.out.println(me);
    }}

    return String {{ returnVal}}
         
   }
 }
 
--- John Sung <john_j_sung@yahoo.com> wrote:
> There have been some frequently asked questions.
> Just
> to reiterate it so that everyone knows:
>
> o If you get an error about some JoinPoint then you
> need to add some paths for classpath for aspectj.
>
> Mainly you need to add this:
>
>
/proj/demsys/demjava/lib/aspectjtools.jar:/proj/demsys/demjava/lib/aspectjrt.jar
>
> o The command line arguments the args is an array of
> string and you can access the length, args.length to
> see how long the length is.
>
> o You need to differentiate between the traversals
> that you use and the traversals that are defined in
> the .trv file. The .trv file is parsed and you get a
> parse tree. Then you need to make traversals and
> visitors to traverse that parse tree to do your
> work.
> Your work just happens to be processing traversal
> specification to output an implementation of
> traversals.
>
> o Here's a quick example of how to use implicit
> visitor traversal methods.
>
> ObjectName {
>
> String processObject(int me)
> bypassing {badPlace} to goodPlace {
> {{ String returnVal = "Initialize Return val for
> the
> visitor here"; }}
>
> before things {{
> System.out.println(things);
> System.out.println(me);
> }}
>
> }
> }
>
> o For examples of this usage take a look at
> ~jser/demeter/edgelink. It implements a depth first
> search algorithm for linking edges within an image.
> You can also take a look at the source code for the
> lab guide to understand how to create visitors and
> traversal methods.
>
> You should also use the DemeterJ User Manual for
> reference.
>
http://www.ccs.neu.edu/research/demeter/DemeterJava/UserManual/
>
> John
>
>
> __________________________________________________
> Do You Yahoo!?
> Try FREE Yahoo! Mail - the world's greatest free
> email!
> http://mail.yahoo.com/

__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/



This archive was generated by hypermail 2b28 : Tue Mar 05 2002 - 14:29:21 EST