Code example for Field

Methods: getGenericType

0
	 
	@Override 
	public Class<?> getType() { return this.field.getType(); }
	 
	@Override 
	public Type getGenericType() { return this.field.getGenericType(); }
	 
	@Override 
	public void set(Object pojo, Object value)
	{ 
		try { this.field.set(pojo, value); }
		catch (IllegalAccessException ex) { throw new RuntimeException(ex); }
	} 
	 
	@Override 
	public Object get(Object pojo)
	{ 
		try { return this.field.get(pojo); }
		catch (IllegalAccessException ex) { throw new RuntimeException(ex); }
	}