Add java5 generics syntax support

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