Example usage for com.google.gwt.core.ext.typeinfo JParameter getAnnotations

List of usage examples for com.google.gwt.core.ext.typeinfo JParameter getAnnotations

Introduction

In this page you can find the example usage for com.google.gwt.core.ext.typeinfo JParameter getAnnotations.

Prototype

Annotation[] getAnnotations();

Source Link

Document

Returns all the annotations present on this element.

Usage

From source file:org.fusesource.restygwt.rebind.DirectRestServiceInterfaceClassCreator.java

License:Apache License

private String getMethodParameters(JMethod method) {
    StringBuilder result = new StringBuilder("");

    for (JParameter parameter : method.getParameters()) {
        result.append(getAnnotationsAsString(parameter.getAnnotations())).append(" ")
                .append(parameter.getType().getParameterizedQualifiedSourceName()).append(" ")
                .append(parameter.getName()).append(", ");
    }/*w  w  w. j a va 2  s  .  c  o  m*/

    return result.toString();
}

From source file:org.jboss.errai.codegen.meta.impl.gwt.GWTParameter.java

License:Apache License

private GWTParameter(final TypeOracle oracle, final JParameter parameter, final MetaClassMember declaredBy) {
    this.parameter = parameter;
    this.annotations = AnnotationParser.parseAnnotations(parameter.getAnnotations());
    this.declaredBy = declaredBy;
    this.oracle = oracle;
}

From source file:org.lirazs.gbackbone.gen.AnnotationsHelper.java

License:Apache License

public static Annotation[] getAnnotations(JParameter type) {
    return type.getAnnotations();
}