org.junit.runners.model
Class FrameworkField

java.lang.Object
  extended by org.junit.runners.model.FrameworkField

public class FrameworkField
extends Object

Represents a field on a test class (currently used only for Rules in BlockJUnit4ClassRunner, but custom runners can make other uses)


Method Summary
 Object get(Object target)
          Attempts to retrieve the value of this field on target
 Annotation[] getAnnotations()
          Returns the annotations on this method
 Field getField()
           
 boolean isShadowedBy(FrameworkField otherMember)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAnnotations

public Annotation[] getAnnotations()
Returns the annotations on this method


isShadowedBy

public boolean isShadowedBy(FrameworkField otherMember)

getField

public Field getField()
Returns:
the underlying java Field

get

public Object get(Object target)
           throws IllegalArgumentException,
                  IllegalAccessException
Attempts to retrieve the value of this field on target

Throws:
IllegalArgumentException
IllegalAccessException