org.junit.runners.model
Class FrameworkField

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

public class FrameworkField
extends java.lang.Object

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


Method Summary
 java.lang.Object get(java.lang.Object target)
          Attempts to retrieve the value of this field on target
 java.lang.annotation.Annotation[] getAnnotations()
          Returns the annotations on this method
 java.lang.reflect.Field getField()
           
 java.lang.String getName()
           
 java.lang.Class<?> getType()
           
 boolean isPublic()
           
 boolean isShadowedBy(FrameworkField otherMember)
           
 boolean isStatic()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getName

public java.lang.String getName()

getAnnotations

public java.lang.annotation.Annotation[] getAnnotations()
Returns the annotations on this method


isPublic

public boolean isPublic()

isShadowedBy

public boolean isShadowedBy(FrameworkField otherMember)

isStatic

public boolean isStatic()

getField

public java.lang.reflect.Field getField()
Returns:
the underlying java Field

getType

public java.lang.Class<?> getType()
Returns:
the underlying Java Field type
See Also:
Field.getType()

get

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

Throws:
java.lang.IllegalArgumentException
java.lang.IllegalAccessException