public class GenericUtilities
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
GenericUtilities.TypeCategory |
Constructor and Description |
---|
GenericUtilities() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getString(org.apache.bcel.generic.Type type)
Get String representation of a Type including Generic information
|
static org.apache.bcel.generic.Type |
getType(java.lang.String signature)
This method is analogous to
Type.getType(String) , except
that it also accepts signatures with generic information. |
static GenericObjectType |
getType(java.lang.String className,
java.util.List<? extends org.apache.bcel.generic.ReferenceType> parameters) |
static GenericUtilities.TypeCategory |
getTypeCategory(org.apache.bcel.generic.Type type)
Get the TypeCategory that represents this Object
|
static java.util.List<org.apache.bcel.generic.ReferenceType> |
getTypeParameters(java.lang.String signature)
Parse a bytecode signature that has 1 or more (possibly generic) types
and return a list of the Types.
|
static boolean |
isPlainObject(org.apache.bcel.generic.Type type) |
static int |
lastMatchedLeftAngleBracket(java.lang.String s) |
static org.apache.bcel.generic.ObjectType |
merge(GenericObjectType t1,
org.apache.bcel.generic.ObjectType t2) |
static org.apache.bcel.generic.Type |
merge(GenericObjectType t1,
org.apache.bcel.generic.Type t2) |
static org.apache.bcel.generic.ObjectType |
merge(org.apache.bcel.generic.Type t1,
org.apache.bcel.generic.ObjectType t2) |
static int |
nextUnmatchedRightAngleBracket(java.lang.String s,
int startingAt) |
static java.lang.String |
removeMatchedAngleBrackets(java.lang.String s) |
static java.util.List<java.lang.String> |
split(java.lang.String signature,
boolean skipInitialAngleBracket) |
public static final GenericUtilities.TypeCategory getTypeCategory(org.apache.bcel.generic.Type type)
GenericUtilities.TypeCategory
public static final boolean isPlainObject(org.apache.bcel.generic.Type type)
public static final java.lang.String getString(org.apache.bcel.generic.Type type)
public static GenericObjectType getType(java.lang.String className, java.util.List<? extends org.apache.bcel.generic.ReferenceType> parameters)
@CheckForNull public static org.apache.bcel.generic.Type getType(java.lang.String signature)
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
public static org.apache.bcel.generic.ObjectType merge(@CheckForNull org.apache.bcel.generic.Type t1, org.apache.bcel.generic.ObjectType t2)
public static org.apache.bcel.generic.Type merge(@CheckForNull GenericObjectType t1, org.apache.bcel.generic.Type t2)
public static org.apache.bcel.generic.ObjectType merge(@CheckForNull GenericObjectType t1, org.apache.bcel.generic.ObjectType t2)
public static java.lang.String removeMatchedAngleBrackets(java.lang.String s)
public static int nextUnmatchedRightAngleBracket(java.lang.String s, int startingAt)
public static int lastMatchedLeftAngleBracket(java.lang.String s)
@CheckForNull public static final java.util.List<org.apache.bcel.generic.ReferenceType> getTypeParameters(java.lang.String signature)
signature
- bytecode signature e.g. e.g.
Ljava/util/ArrayList<Ljava/lang/String;>;Ljava/util/ArrayList<TT;>;Ljava/util/ArrayList<*>;
public static final java.util.List<java.lang.String> split(java.lang.String signature, boolean skipInitialAngleBracket)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.