ReflectionInfo info = context.getWithinReflectionInfo();
ClassInfo classInfo = info instanceof MemberInfo
? ((MemberInfo) info).getDeclaringType()
: (ClassInfo) info;
Node patternNode = node.jjtGetChild(node.jjtGetNumChildren() - 1);
boolean hasPatternNode = !(patternNode instanceof ASTAttribute);
MethodInfo[] methodInfos = classInfo.getMethods();
for (int i = 0; i < methodInfos.length; i++) {
if (hasPatternNode) {
if(Boolean.FALSE.equals(patternNode.jjtAccept(this, methodInfos[i]))) {
continue;
}
}
boolean matchAnnotations = visitAttributes(node, methodInfos[i]);
if (matchAnnotations) {
return Boolean.TRUE;
}
}
ConstructorInfo[] constructorInfos = classInfo.getConstructors();
for (int i = 0; i < constructorInfos.length; i++) {
if (hasPatternNode) {
if(Boolean.FALSE.equals(patternNode.jjtAccept(this, constructorInfos[i]))) {
continue;
}
}
boolean matchAnnotations = visitAttributes(node, constructorInfos[i]);