javassist.bytecode

Class SignatureAttribute.TypeArgument

public static class SignatureAttribute.TypeArgument extends Object

Type argument.
Method Summary
chargetKind()
Returns the kind of this type argument.
SignatureAttribute.ObjectTypegetType()
Returns the type represented by this argument if the argument is not a wildcard type.
booleanisWildcard()
Returns true if this type argument is a wildcard type such as ?
StringtoString()
Returns the string representation.

Method Detail

getKind

public char getKind()
Returns the kind of this type argument.

Returns: ' ' (not-wildcard), '*' (wildcard), '+' (wildcard with upper bound), or '-' (wildcard with lower bound).

getType

public SignatureAttribute.ObjectType getType()
Returns the type represented by this argument if the argument is not a wildcard type. Otherwise, this method returns the upper bound (if the kind is '+'), the lower bound (if the kind is '-'), or null (if the upper or lower bound is not specified).

isWildcard

public boolean isWildcard()
Returns true if this type argument is a wildcard type such as ?, ? extends String, or ? super Integer.

toString

public String toString()
Returns the string representation.
Javassist, a Java-bytecode translator toolkit.
Copyright (C) 1999-2006 Shigeru Chiba. All Rights Reserved.