|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.junit.runners.model.FrameworkMember<FrameworkField> org.junit.runners.model.FrameworkField
public class FrameworkField
Represents a field on a test class (currently used only for Rules in
BlockJUnit4ClassRunner
, but custom runners can make other uses)
Constructor Summary | |
---|---|
FrameworkField(Field field)
Returns a new FrameworkField for field . |
Method Summary | ||
---|---|---|
Object |
get(Object target)
Attempts to retrieve the value of this field on target |
|
|
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()
|
Methods inherited from class org.junit.runners.model.FrameworkMember |
---|
isPublic, isStatic |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FrameworkField(Field field)
FrameworkField
for field
.
Access relaxed to public
since version 4.13.1.
Method Detail |
---|
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
IllegalArgumentException
IllegalAccessException
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |