⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 keyextractor.java

📁 pojo的mvc框架
💻 JAVA
字号:
package xyz.frame.introspector;import xyz.frame.annotations.In;import xyz.frame.annotations.Out;import xyz.frame.annotations.Read;import xyz.frame.component.FieldAnnotation;/** * Responsible for extracting keys from field annotations *  * @author Guilherme Silveira */public class KeyExtractor {	/**	 * Retrieves the key value for an out annotation	 * 	 * @param info	 *            the annotation	 * @return the key value	 */	String extractOutKey(FieldAnnotation<Out> info) {		String key = info.getAnnotation().key();		if (key.equals("")) {			key = info.getField().getName();		}		return key;	}	/**	 * Retrieves the key value for an in annotation	 * 	 * @param info	 *            the annotation	 * @return the key value	 */	String extractInKey(FieldAnnotation<In> info) {		String key = info.getAnnotation().key();		if (key.equals("")) {			key = info.getField().getName();		}		return key;	}	/**	 * Retrieves the key value for an in annotation	 * 	 * @param info	 *            the annotation	 * @return the key value	 */	String extractReadKey(FieldAnnotation<Read> info) {		String key = info.getAnnotation().key();		if (key.equals("")) {			key = info.getField().getName();		}		return key;	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -