CS 683 Emerging Technologies Spring Semester, 2003 Assignment 1 |
||
---|---|---|
© 2003, All Rights Reserved, SDSU & Roger Whitney San Diego State University -- This page last updated 21-Jan-03 |
public class Hello { public static void main(String[] args ) { System.out.println("Hello"); } }
public aspect HelloAspect { before() : call(static void main(String[]) ) { System.out.println( "Start"); } }
package example; public class Hello { public static void main(String[] args ) { System.out.println("Hello"); } }
public aspect HelloAspect { before() : call(static void main(String[]) ) { System.out.println( "Start"); } }
public class Hello { public static void main(String[] args ) { System.out.println("Hello"); } } public aspect HelloAspect { void around(String[] input) : args(input) && call(void main(String[]) ) { System.out.println( "Start"); if (input.length > 0) proceed(input); } }