public class FieldAnnotationMatcher extends AbstractAnnotationMatcher
Constructor and Description |
---|
FieldAnnotationMatcher(String annotation) |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(javassist.CtBehavior ctBehavior)
Matches a method, a constructor, or a static constructor (class initializer)
|
boolean |
matches(javassist.CtClass ctClass)
Matches a class
|
boolean |
matches(javassist.CtField ctField)
Matches a field
|
public FieldAnnotationMatcher(String annotation)
public boolean matches(javassist.CtClass ctClass)
IMatcher
matches
in interface IMatcher
matches
in class AbstractAnnotationMatcher
ctClass
- classtrue
if it matches, false
otherwisepublic boolean matches(javassist.CtBehavior ctBehavior)
IMatcher
matches
in interface IMatcher
matches
in class AbstractAnnotationMatcher
ctBehavior
- a method, a constructor, or a static constructor (class initializer)true
if it matches, false
otherwisepublic boolean matches(javassist.CtField ctField)
IMatcher
matches
in interface IMatcher
matches
in class AbstractAnnotationMatcher
ctField
- a fieldtrue
if it matches, false
otherwiseCopyright © 2010–2019 GZoltar. All rights reserved.