fit
Class TypeAdapter

java.lang.Object
  extended by fit.TypeAdapter

public class TypeAdapter
extends java.lang.Object


Field Summary
 java.lang.reflect.Field field
           
 Fixture fixture
           
 java.lang.reflect.Method method
           
 java.lang.Object target
           
 java.lang.Class type
           
 
Constructor Summary
TypeAdapter()
           
 
Method Summary
static TypeAdapter adapterFor(java.lang.Class type)
           
 boolean equals(java.lang.Object a, java.lang.Object b)
           
 java.lang.Object get()
           
protected  void init(Fixture fixture, java.lang.Class type)
           
 java.lang.Object invoke()
           
static TypeAdapter on(Fixture target, java.lang.Class type)
           
static TypeAdapter on(Fixture fixture, java.lang.reflect.Field field)
           
static TypeAdapter on(Fixture fixture, java.lang.reflect.Method method)
           
 java.lang.Object parse(java.lang.String s)
           
 void set(java.lang.Object value)
           
 java.lang.String toString(java.lang.Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

target

public java.lang.Object target

fixture

public Fixture fixture

field

public java.lang.reflect.Field field

method

public java.lang.reflect.Method method

type

public java.lang.Class type
Constructor Detail

TypeAdapter

public TypeAdapter()
Method Detail

on

public static TypeAdapter on(Fixture target,
                             java.lang.Class type)

on

public static TypeAdapter on(Fixture fixture,
                             java.lang.reflect.Field field)

on

public static TypeAdapter on(Fixture fixture,
                             java.lang.reflect.Method method)

adapterFor

public static TypeAdapter adapterFor(java.lang.Class type)
                              throws java.lang.UnsupportedOperationException
Throws:
java.lang.UnsupportedOperationException

init

protected void init(Fixture fixture,
                    java.lang.Class type)

get

public java.lang.Object get()
                     throws java.lang.IllegalAccessException,
                            java.lang.reflect.InvocationTargetException
Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException

set

public void set(java.lang.Object value)
         throws java.lang.IllegalAccessException
Throws:
java.lang.IllegalAccessException

invoke

public java.lang.Object invoke()
                        throws java.lang.IllegalAccessException,
                               java.lang.reflect.InvocationTargetException
Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException

parse

public java.lang.Object parse(java.lang.String s)
                       throws java.lang.Exception
Throws:
java.lang.Exception

equals

public boolean equals(java.lang.Object a,
                      java.lang.Object b)

toString

public java.lang.String toString(java.lang.Object o)


Copyright © 2009 SourceForge. All Rights Reserved.