|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.phoenix.dependency.RelationType
public final class RelationType
Enumeration that describes the kind of dependency that one type has with an other. Instances of this class are immutable. The following relation types are defined:
| Field Summary | |
|---|---|
static RelationType |
ARGUMENT
The other class is used as a argument in a method of this class. |
static RelationType |
DERIVED
This class is derived from the other class (value: Derived). |
static RelationType |
FIELD
The other class is used as field in a method of this class. |
static RelationType |
GENERIC_TYPE
This class uses the other as generic type. |
static RelationType |
IMPLEMENTS
This class implements from the other interface (value: Implements). |
static RelationType |
MEMBER
Instances of this class have a member of the other type. |
static RelationType |
OUTER_CLASS
Instances of this class have a outer class relation ship to the other type. |
static RelationType |
STATIC_ARGUMENT
The other class is used as a argument in a static method of this class. |
static RelationType |
STATIC_FIELD
The other class is used as field in a static method of this class. |
static RelationType |
STATIC_MEMBER
This class has a static member of the other type. |
static String |
TYPE_NAME
The name of this type. |
static RelationType |
UNUSED_IMPORT
The other class is used in a unused import in this class. |
static Map |
VALUE_MAP
Immutable map using the name string as key holding the RelationTypes as values. |
static List |
VALUES
Immutable list of the RelationTypes. |
| Method Summary | |
|---|---|
static RelationType |
fromInt(int i)
Creates a RelationType object from its int representation. |
static RelationType |
fromString(String str)
Creates a RelationType object from its String representation. |
int |
toInt()
Returns the int representation of this relation type. |
String |
toString()
Returns the String representation of this relation type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String TYPE_NAME
public static final RelationType DERIVED
public static final RelationType IMPLEMENTS
public static final RelationType GENERIC_TYPE
public static final RelationType STATIC_MEMBER
public static final RelationType OUTER_CLASS
public static final RelationType MEMBER
public static final RelationType STATIC_ARGUMENT
public static final RelationType ARGUMENT
public static final RelationType STATIC_FIELD
public static final RelationType FIELD
public static final RelationType UNUSED_IMPORT
public static final List VALUES
public static final Map VALUE_MAP
| Method Detail |
|---|
public static RelationType fromInt(int i)
throws ArgumentMalformedException
i - the integer representation of the relation type.
ArgumentMalformedException - If the assigned int value isn't
listed in the internal relation type table.
public static RelationType fromString(String str)
throws ArgumentMalformedException
str - the string representation of the
relation type.
ArgumentMalformedException - If the given str value isn't
listed in the internal relation type table.public int toInt()
toInt in interface EnumTypepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||