Example usage for javax.lang.model.util Types getWildcardType

List of usage examples for javax.lang.model.util Types getWildcardType

Introduction

In this page you can find the example usage for javax.lang.model.util Types getWildcardType.

Prototype

WildcardType getWildcardType(TypeMirror extendsBound, TypeMirror superBound);

Source Link

Document

Returns a new wildcard type argument.

Usage

From source file:com.vimeo.stag.processor.utils.TypeUtils.java

@NotNull
public static DeclaredType getDeclaredTypeForParameterizedClass(@NotNull String className) {
    Types types = getUtils();
    WildcardType wildcardType = types.getWildcardType(null, null);
    TypeMirror[] typex = { wildcardType };
    return types.getDeclaredType(ElementUtils.getTypeElementFromQualifiedName(className), typex);
}