public class KnownTypeSet
extends java.lang.Object
implements java.lang.Iterable
Class
objects which fully or partially qualified names can be used within document templates to invoke the corresponding types' static members, perform type casts, etc.Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.Class type)
Adds the specified
Class object to the set. |
void |
clear()
Removes all items from the set.
|
int |
getCount()
Gets the count of items in the set.
|
java.util.Iterator |
iterator()
Returns An
Iterator object to iterate over items of the set. |
void |
remove(java.lang.Class type)
Removes the specified
Class object from the set. |
public void add(java.lang.Class type)
Adds the specified Class
object to the set. Throws IllegalArgumentException
in the following cases:
- type
is null.
- type
represents a void type.
- type
represents an invisible type, i.e. a non-public type or a public nested type which has a non-public outer type.
- type
represents an array type.
- type
has been added to the set already.
type
- A Class
object to add.public void remove(java.lang.Class type)
Class
object from the set. Throws IllegalArgumentException
if type
is null.type
- A Class
object to remove.public void clear()
public java.util.Iterator iterator()
Iterator
object to iterate over items of the set.iterator
in interface java.lang.Iterable
Iterator
object to iterate over items of the set.public int getCount()