javassist.bytecode
Class SignatureAttribute.TypeArgument

java.lang.Object
  extended by javassist.bytecode.SignatureAttribute.TypeArgument
Enclosing class:
SignatureAttribute

public static class SignatureAttribute.TypeArgument
extends java.lang.Object

Type argument.


Method Summary
 char getKind()
          Returns the kind of this type argument.
 SignatureAttribute.ObjectType getType()
          Returns the type represented by this argument if the argument is not a wildcard type.
 boolean isWildcard()
          Returns true if this type argument is a wildcard type such as ?, ? extends String, or ? super Integer.
 java.lang.String toString()
          Returns the string representation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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).

isWildcard

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


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).


toString

public java.lang.String toString()
Returns the string representation.

Overrides:
toString in class java.lang.Object


Javassist, a Java-bytecode translator toolkit.
Copyright (C) 1999-2010 Shigeru Chiba. All Rights Reserved.