Copyright (c) 2012 Jesse Rosalia
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"),
to deal in the Sof...
If you think the Android project ormada listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
package org.ormada.reflect;
/*fromwww.java2s.com*/import java.lang.reflect.Method;
/**
* This interface defines an API for a reflector class. The reflector class
* is responsible for reflecting about the specified objects.
*
* This is defined as an interface, because it may be implemented differently
* on multiple platforms (e.g. Android is slow as balls).
*
* @author Jesse Rosalia
*
*/publicinterface Reflector {
public Class<?> getFieldType(Class<?> clazz, String field)
throws SecurityException, NoSuchMethodException;
public Method getGetter(Class<?> clazz, String field)
throws SecurityException, NoSuchMethodException;
public Method getAdder(Class<?> clazz, String field,
Class<?> fieldType) throws SecurityException, NoSuchMethodException;
public Method getSetter(Class<?> clazz, String field)
throws SecurityException, NoSuchMethodException;
}