All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nico.aoc.scan.entity.AspectDic Maven / Gradle / Ivy

There is a newer version: 1.1.3
Show newest version
package org.nico.aoc.scan.entity;


import java.lang.annotation.Annotation;

import org.nico.aoc.scan.annotations.aspect.After;
import org.nico.aoc.scan.annotations.aspect.Around;
import org.nico.aoc.scan.annotations.aspect.Before;
import org.nico.aoc.scan.annotations.aspect.Wrong;

public enum AspectDic {

	BEFORE(Before.class),
	
	AROUND(Around.class),
	
	AFTER(After.class),
	
	WRONG(Wrong.class),
	
	NULL(null),
	;
	
	private Class annotationClass;

	private AspectDic(Class annotationClass) {
		this.annotationClass = annotationClass;
	}
	
	public Class getAnnotationClass() {
		return annotationClass;
	}

	public boolean eq(Class clazz){
		if(clazz == null){
			return false;
		}
		return clazz.getName().equals(annotationClass.getName());
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy