public class Util extends Object
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static boolean |
has(Class<?> target,
ASTConstructor con,
Advisor advisor) |
static boolean |
has(Class<?> target,
ASTField field,
Advisor advisor) |
static boolean |
has(Class<?> target,
ASTField field,
Advisor advisor,
boolean checkSuper) |
static boolean |
has(Class<?> target,
ASTMethod method,
Advisor advisor) |
static boolean |
has(Class<?> target,
ASTMethod method,
Advisor advisor,
boolean checkSuper) |
static boolean |
has(javassist.CtClass target,
ASTConstructor con,
Advisor advisor) |
static boolean |
has(javassist.CtClass target,
ASTField field,
Advisor advisor) |
static boolean |
has(javassist.CtClass target,
ASTField field,
Advisor advisor,
boolean checkSuper) |
static boolean |
has(javassist.CtClass target,
ASTMethod method,
Advisor advisor) |
static boolean |
has(javassist.CtClass target,
ASTMethod method,
Advisor advisor,
boolean checkSuper) |
static boolean |
matchesClassExpr(ClassExpression classExpr,
Class<?> clazz) |
static boolean |
matchesClassExpr(ClassExpression classExpr,
Class<?> clazz,
Advisor advisor) |
static boolean |
matchesClassExpr(ClassExpression classExpr,
javassist.CtClass clazz,
Advisor advisor) |
static boolean |
matchesParameters(Advisor advisor,
ASTConstructor node,
Constructor<?> con) |
static boolean |
matchesParameters(Advisor advisor,
ASTConstructor node,
javassist.CtConstructor ctConstructor) |
static boolean |
matchesParameters(Advisor advisor,
ASTMethod node,
javassist.CtMethod ctMethod) |
static boolean |
matchesParameters(Advisor advisor,
ASTMethod node,
Method method) |
static boolean |
matchesTypedef(Class<?> clazz,
ClassExpression classExpr,
Advisor advisor) |
static boolean |
matchesTypedef(javassist.CtClass clazz,
ClassExpression classExpr,
Advisor advisor) |
static boolean |
matchExceptions(ArrayList<ASTException> nodeExceptions,
Class<?>[] foundExceptions) |
static boolean |
matchExceptions(ArrayList<ASTException> nodeExceptions,
javassist.CtClass[] foundExceptions) |
static boolean |
matchModifiers(ASTAttribute need,
int have) |
static boolean |
methodExistsInSuperClassOrInterface(javassist.CtMethod method,
ClassExpression target,
boolean exactSuper) |
static boolean |
methodExistsInSuperClassOrInterface(Method method,
ClassExpression target,
boolean exactSuper,
Advisor advisor) |
static boolean |
subtypeOf(Class<?> clazz,
ClassExpression instanceOf,
Advisor advisor) |
static boolean |
subtypeOf(javassist.CtClass clazz,
ClassExpression instanceOf,
Advisor advisor) |
public static boolean matchesClassExpr(ClassExpression classExpr, javassist.CtClass clazz, Advisor advisor)
public static boolean matchesClassExpr(ClassExpression classExpr, Class<?> clazz)
public static boolean matchesClassExpr(ClassExpression classExpr, Class<?> clazz, Advisor advisor)
public static boolean methodExistsInSuperClassOrInterface(Method method, ClassExpression target, boolean exactSuper, Advisor advisor) throws Exception
method
- Method we are looking fortarget
- ClassExpression with the class/interface we are looking for the method inException
public static boolean methodExistsInSuperClassOrInterface(javassist.CtMethod method, ClassExpression target, boolean exactSuper) throws Exception
method
- CtMethod we are looking fortarget
- ClassExpression with the class/interface we are looking for the method inException
public static boolean subtypeOf(javassist.CtClass clazz, ClassExpression instanceOf, Advisor advisor)
public static boolean subtypeOf(Class<?> clazz, ClassExpression instanceOf, Advisor advisor)
public static boolean has(javassist.CtClass target, ASTMethod method, Advisor advisor, boolean checkSuper)
public static boolean has(javassist.CtClass target, ASTField field, Advisor advisor, boolean checkSuper)
public static boolean has(javassist.CtClass target, ASTConstructor con, Advisor advisor)
public static boolean has(Class<?> target, ASTMethod method, Advisor advisor, boolean checkSuper)
public static boolean has(Class<?> target, ASTConstructor con, Advisor advisor)
public static boolean matchesTypedef(javassist.CtClass clazz, ClassExpression classExpr, Advisor advisor)
public static boolean matchesTypedef(Class<?> clazz, ClassExpression classExpr, Advisor advisor)
public static boolean matchModifiers(ASTAttribute need, int have)
public static boolean matchExceptions(ArrayList<ASTException> nodeExceptions, javassist.CtClass[] foundExceptions)
nodeExceptions
- ArrayList of ASTException entries for a given ASTMethod or ASTConstructorfoundExceptions
- Array of Exceptions found for a method/constructorpublic static boolean matchExceptions(ArrayList<ASTException> nodeExceptions, Class<?>[] foundExceptions)
nodeExceptions
- ArrayList of ASTException entries for a given ASTMethod or ASTConstructorfoundExceptions
- Array of Exceptions found for a method/constructorpublic static boolean matchesParameters(Advisor advisor, ASTMethod node, javassist.CtMethod ctMethod)
public static boolean matchesParameters(Advisor advisor, ASTConstructor node, javassist.CtConstructor ctConstructor)
public static boolean matchesParameters(Advisor advisor, ASTMethod node, Method method)
public static boolean matchesParameters(Advisor advisor, ASTConstructor node, Constructor<?> con)
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.