net.sourceforge.pmd.util
public class TypeMap extends Object
Constructor Summary | |
---|---|
TypeMap(int initialSize)
Constructor for TypeMap. | |
TypeMap(Class... types)
Constructor for TypeMap that takes in an initial set of types.
|
Method Summary | |
---|---|
void | add(Class type)
Adds a type to the receiver and stores it keyed by both its full
and short names.
|
void | add(Class... types)
Adds an array of types to the receiver at once.
|
boolean | contains(Class type)
Returns whether the type is known to the receiver.
|
boolean | contains(String typeName)
Returns whether the typeName is known to the receiver.
|
Class | typeFor(String typeName)
Returns the type for the typeName specified.
|
Parameters: initialSize int
Parameters: types Class[]
Parameters: type Class
Parameters: types Class[]
Parameters: type Class
Returns: boolean
Parameters: typeName String
Returns: boolean
Parameters: typeName String
Returns: Class