2 * Copyright (c) 2000-2007 JetBrains s.r.o. All Rights Reserved.
4 package com
.intellij
.patterns
;
6 import com
.intellij
.psi
.PsiField
;
7 import com
.intellij
.util
.ProcessingContext
;
8 import org
.jetbrains
.annotations
.Nullable
;
13 public class PsiFieldPattern
extends PsiMemberPattern
<PsiField
, PsiFieldPattern
>{
14 public PsiFieldPattern() {
15 super(new InitialPatternCondition
<PsiField
>(PsiField
.class) {
16 public boolean accepts(@Nullable final Object o
, final ProcessingContext context
) {
17 return o
instanceof PsiField
;