Example usage for org.objectweb.asm.signature SignatureVisitor visitTypeArgument

List of usage examples for org.objectweb.asm.signature SignatureVisitor visitTypeArgument

Introduction

In this page you can find the example usage for org.objectweb.asm.signature SignatureVisitor visitTypeArgument.

Prototype

public void visitTypeArgument() 

Source Link

Document

Visits an unbounded type argument of the last visited class or inner class type.

Usage

From source file:com.pongasoft.kiwidoc.builder.serializer.type.TypeEncoder.java

License:Apache License

private void buildGenericType(SignatureVisitor sv, Type type) {
    if (type instanceof GenericUnboundedWildcardType) {
        sv.visitTypeArgument();
        return;//  www.  jav a 2s.c  om
    }

    if (type instanceof GenericBoundedWildcardType) {
        GenericBoundedWildcardType gbwt = (GenericBoundedWildcardType) type;
        sv = sv.visitTypeArgument(gbwt.isSuperKind() ? SignatureVisitor.SUPER : SignatureVisitor.EXTENDS);
        buildType(sv, gbwt.getBound());
        return;
    }

    buildType(sv.visitTypeArgument(SignatureVisitor.INSTANCEOF), type);
}