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

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

Introduction

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

Prototype

char SUPER

To view the source code for org.objectweb.asm.signature SignatureVisitor SUPER.

Click Source Link

Document

Wildcard for a "super" type argument.

Usage

From source file:com.masetta.spann.metadata.reader.asm3_2.AsmClassReaderAdapter.java

License:Apache License

/** {@inheritDoc} */
public GenericCapture resolveCapture(char wildcard) {
    switch (wildcard) {
    case SignatureVisitor.EXTENDS:
        return GenericCapture.EXTENDS;
    case SignatureVisitor.INSTANCEOF:
        return GenericCapture.IS;
    case SignatureVisitor.SUPER:
        return GenericCapture.SUPER_OF;
    }//ww  w .java 2 s . c o m
    throw new IllegalArgumentException("Unknwon wildcard: " + wildcard);
}

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();//from  w w w  .  j a v a  2 s  .c om
        return;
    }

    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);
}

From source file:org.eclipse.pde.api.tools.internal.comparator.SignatureDecoder.java

License:Open Source License

@Override
public SignatureVisitor visitTypeArgument(char wildcard) {
    switch (wildcard) {
    case SignatureVisitor.EXTENDS:
        this.mode = EXTENDS_TYPE_ARGUMENT;
        break;/*from   w  w w  . ja v  a2 s . c om*/
    case SignatureVisitor.SUPER:
        this.mode = SUPER_TYPE_ARGUMENT;
        break;
    case SignatureVisitor.INSTANCEOF:
        this.mode = NORMAL_TYPE_ARGUMENT;
        break;
    default:
        break;
    }
    return this;
}