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, isStaticpublic String getName()
getName in class FrameworkMember<FrameworkField>public Annotation[] getAnnotations()
Annotatablepublic <T extends Annotation> T getAnnotation(Class<T> annotationType)
Annotatablepublic boolean isShadowedBy(FrameworkField otherMember)
protected int getModifiers()
getModifiers in class FrameworkMember<FrameworkField>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
targetCopyright © 2002–2017 JUnit. All rights reserved.