|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.pmd.util.TypeMap
public class TypeMap
A specialized map that stores classes by both their full and short names.
Constructor Summary | |
---|---|
TypeMap(java.lang.Class... types)
Constructor for TypeMap that takes in an initial set of types. |
|
TypeMap(int initialSize)
Constructor for TypeMap. |
Method Summary | |
---|---|
void |
add(java.lang.Class... types)
Adds an array of types to the receiver at once. |
void |
add(java.lang.Class type)
Adds a type to the receiver and stores it keyed by both its full and short names. |
boolean |
contains(java.lang.Class type)
Returns whether the type is known to the receiver. |
boolean |
contains(java.lang.String typeName)
Returns whether the typeName is known to the receiver. |
java.lang.Class |
typeFor(java.lang.String typeName)
Returns the type for the typeName specified. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TypeMap(int initialSize)
initialSize
- intpublic TypeMap(java.lang.Class... types)
types
- Class[]Method Detail |
---|
public void add(java.lang.Class type)
type
- Classpublic boolean contains(java.lang.Class type)
type
- Class
public boolean contains(java.lang.String typeName)
typeName
- String
public java.lang.Class typeFor(java.lang.String typeName)
typeName
- String
public void add(java.lang.Class... types)
types
- Class[]
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |