Add java5 generics syntax support

Example:
public interface TestGenerics<T>{
    public void appendTo(List<T> result,T sample);
}