Package org.aspectj.lang
Class Aspects
- java.lang.Object
-
- org.aspectj.lang.Aspects
-
public class Aspects extends Object
-
-
Constructor Summary
Constructors Constructor Description Aspects()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> TaspectOf(Class<T> aspectClass)static <T> TaspectOf(Class<T> aspectClass, Class<?> perTypeWithin)static <T> TaspectOf(Class<T> aspectClass, Object perObject)static booleanhasAspect(Class<?> aspectClass)static booleanhasAspect(Class<?> aspectClass, Class<?> perTypeWithin)static booleanhasAspect(Class<?> aspectClass, Object perObject)
-
-
-
Method Detail
-
aspectOf
public static <T> T aspectOf(Class<T> aspectClass) throws NoAspectBoundException
- Throws:
NoAspectBoundException
-
aspectOf
public static <T> T aspectOf(Class<T> aspectClass, Object perObject) throws NoAspectBoundException
- Throws:
NoAspectBoundException
-
aspectOf
public static <T> T aspectOf(Class<T> aspectClass, Class<?> perTypeWithin) throws NoAspectBoundException
- Throws:
NoAspectBoundException
-
hasAspect
public static boolean hasAspect(Class<?> aspectClass) throws NoAspectBoundException
- Throws:
NoAspectBoundException
-
hasAspect
public static boolean hasAspect(Class<?> aspectClass, Object perObject) throws NoAspectBoundException
- Throws:
NoAspectBoundException
-
hasAspect
public static boolean hasAspect(Class<?> aspectClass, Class<?> perTypeWithin) throws NoAspectBoundException
- Throws:
NoAspectBoundException
-
-