|
Evaluating Software Design Patterns — the "Gang of Four" patterns implemented in Java 6 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<Caller.CallerType>
dk.rode.thesis.meta.reflect.Caller.CallerType
public static enum Caller.CallerType
A caller type identifies possible caller contexts
a given caller represents.
| Enum Constant Summary | |
|---|---|
CONSTRUCTION
The calling context represented by the caller is a constructor or an instance initialisation block. |
|
INITIALISATION
The calling context represented by the caller is a static initialisation block. |
|
INVOCATION
The calling context represented by the caller is a method, static or otherwise. |
|
| Method Summary | |
|---|---|
static Caller.CallerType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Caller.CallerType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Caller.CallerType CONSTRUCTION
public static final Caller.CallerType INITIALISATION
public static final Caller.CallerType INVOCATION
| Method Detail |
|---|
public static Caller.CallerType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic static Caller.CallerType[] values()
for (Caller.CallerType c : Caller.CallerType.values()) System.out.println(c);
|
Gunni Rode / rode.dk | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||