{"size": 397, "ext": "js", "max_stars_repo_path": "interpreter/src/ticketstyle/TicketStyleFactory.js", "max_stars_repo_name": "telmanagababov/js-patterns-examples", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "interpreter/src/ticketstyle/TicketStyleFactory.js", "max_issues_repo_name": "telmanagababov/js-patterns-examples", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "interpreter/src/ticketstyle/TicketStyleFactory.js", "max_forks_repo_name": "telmanagababov/js-patterns-examples", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.0555555556, "max_line_length": 45, "alphanum_fraction": 0.725440806}
function TicketStyleFactory() {

	var expressions = [
		new BgImageExpression(),
		new BgOpacityExpression(),
		new BgShadeExpression(),
		new LblColorExpression(),
		new TicketSizeExpression()
	];

	this.parse = function (configuration) {
		var context = new Style(configuration);
		expressions.forEach(function (expression) {
			expression.interpret(context);
		});
		return context.output;
	}
}