package application;

import java.util.ArrayList;

public aspect NewGenre {
	public static GenreType Genre.NEWGENRE = new GenreType(10, "new genre name");
	// new static member of Genre class

	pointcut getGenreTypePointcut():
		call(* Genre.getGenreTypes(..));

	private ArrayList retValue;

	ArrayList around() : getGenreTypePointcut() {
		retValue = proceed(); // execute original function
		processOutput();
		return retValue;      // return modified output 
	}

	private void processOutput() {
		retValue.add(Genre.NEWGENRE);
		// processing logic
	}
}
