edu.umd.cs.findbugs.ba.generic
public class GenericUtilities extends Object
Nested Class Summary | |
---|---|
abstract static class | GenericUtilities.TypeCategory |
Method Summary | |
---|---|
static String | getString(Type type)
Get String representation of a Type including Generic information |
static Type | getType(String signature)
This method is analogous to Type.getType(String) ,
except that it also accepts signatures with generic information.
e.g. |
static GenericUtilities.TypeCategory | getTypeCategory(Type type)
Get the TypeCategory that represents this Object |
static List<ReferenceType> | getTypes(String signature)
Parse a bytecode signature that has 1 or more (possibly generic) types
and return a list of the Types. |
static boolean | isPlainObject(Type type) |
static int | lastMatchedLeftAngleBracket(String s) |
static ObjectType | merge(GenericObjectType t1, ObjectType t2) |
static int | nextUnmatchedRightAngleBracket(String s, int startingAt) |
static String | removeMatchedAngleBrackets(String s) |
Type.getType(String)
,
except that it also accepts signatures with generic information.
e.g. Ljava/util/ArrayList<TT;>;
The signature should only contain one type. Use GenericSignatureParser to break up a signature with many types or call createTypes(String) to return a list of types
See Also: TypeCategory
Parameters: signature bytecode signature e.g.
e.g. Ljava/util/ArrayList<Ljava/lang/String;>;Ljava/util/ArrayList<TT;>;Ljava/util/ArrayList<*>;