public class FrameworkField extends FrameworkMember<FrameworkField>
BlockJUnit4ClassRunner
, but custom runners can make other uses)Modifier and Type | Method and Description |
---|---|
Object |
get(Object target)
Attempts to retrieve the value of this field on
target |
<T extends Annotation> |
getAnnotation(Class<T> annotationType)
Returns the annotation on the model element of the given type, or @code{null}
|
Annotation[] |
getAnnotations()
Returns the model elements' annotations.
|
Class<?> |
getDeclaringClass() |
Field |
getField() |
protected int |
getModifiers() |
String |
getName() |
Class<?> |
getType() |
boolean |
isShadowedBy(FrameworkField otherMember) |
String |
toString() |
isPublic, isStatic
public String getName()
getName
in class FrameworkMember<FrameworkField>
public Annotation[] getAnnotations()
Annotatable
public <T extends Annotation> T getAnnotation(Class<T> annotationType)
Annotatable
public boolean isShadowedBy(FrameworkField otherMember)
protected int getModifiers()
getModifiers
in class FrameworkMember<FrameworkField>
public Field getField()
public Class<?> getType()
getType
in class FrameworkMember<FrameworkField>
Field.getType()
public Class<?> getDeclaringClass()
getDeclaringClass
in class FrameworkMember<FrameworkField>
public Object get(Object target) throws IllegalArgumentException, IllegalAccessException
target