Example usage for org.eclipse.jdt.core ITypeParameter getSource

List of usage examples for org.eclipse.jdt.core ITypeParameter getSource

Introduction

In this page you can find the example usage for org.eclipse.jdt.core ITypeParameter getSource.

Prototype

String getSource() throws JavaModelException;

Source Link

Document

Returns the source code associated with this element.

Usage

From source file:org.eclipseguru.gwt.core.internal.codegen.AsyncServiceCodeGenerator.java

License:Open Source License

private void appendMethodTypeParameters(final IMethod method, final StringBuffer methodContent)
        throws JavaModelException {
    final ITypeParameter[] parameters = method.getTypeParameters();
    for (final ITypeParameter typeParameter : parameters) {
        final String source = typeParameter.getSource();
        final String elementName = typeParameter.getElementName();
        methodContent.append(source);//from  w  ww  .j  a v  a2s.c  o  m
        methodContent.append(elementName);
    }
}