Java 类com.intellij.psi.PsiAnnotationMethod 实例源码

项目:guards    文件:PsiGuardType.java   
public FluentIterable<PsiAnnotationMethod> getAttributeMethods() {
    return fluentIterable(element.getMethods())
            .transform(new Function<PsiMethod, PsiAnnotationMethod>() {
                @Override
                public PsiAnnotationMethod apply(@Nullable PsiMethod psiMethod) {
                    if ( psiMethod instanceof PsiAnnotationMethod ) {
                        return (PsiAnnotationMethod)psiMethod;
                    }
                    else {
                        return null;
                    }
                }
            })
            .filter(Predicates.notNull());
}
项目:Android_Lint_SRP_Practice_Example    文件:PsiClassStructureDetector.java   
@Override
public void visitAnnotationMethod(PsiAnnotationMethod method) {
    mVisitor.report("PsiAnnotationMethod", method.getText(), method);
    super.visitMethod(method);
}