org.designwizard.design.relation
Enum Relation.TypesOfRelation

java.lang.Object
  extended by java.lang.Enum<Relation.TypesOfRelation>
      extended by org.designwizard.design.relation.Relation.TypesOfRelation
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Relation.TypesOfRelation>
Enclosing class:
Relation

public static enum Relation.TypesOfRelation
extends java.lang.Enum<Relation.TypesOfRelation>

Types of relations


Enum Constant Summary
CATCH
           
CONTAINS
           
EXTENDS
           
GETFIELD
           
GETSTATIC
           
IMPLEMENTS
           
INSTANCE
           
INVOKEINTERFACE
           
INVOKESPECIAL
           
INVOKESTATIC
           
INVOKEVIRTUAL
           
IS_ACCESSED_BY
           
IS_DECLARED_ON
           
IS_IMPLEMENTED_BY
           
IS_INVOKED_BY
           
IS_SUPERCLASS
           
LOAD
           
PUTFIELD
           
PUTSTATIC
           
THROWS
           
 
Method Summary
static Relation.TypesOfRelation extractElement(java.lang.String type)
          Translate an UPPERCASE String to a type.
 Relation.TypesOfRelation getReverseRelation()
          Returns the reverse relation of this relation.
 boolean isAccessRelation()
          Verifies if the relationType is equals to any kind of access relation (GETSTATIC,PUTSTATIC,GETFIELD or PUTFIELD).
 boolean isInvokeRelation()
          Verifies if the relationType is equals to any kind of invoke relation (INVOKEVIRTUAL,INVOKESPECIAL,INVOKESTATIC or INVOKEINTERFACE).
 java.lang.String toString()
           
static Relation.TypesOfRelation valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Relation.TypesOfRelation[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INSTANCE

public static final Relation.TypesOfRelation INSTANCE

CONTAINS

public static final Relation.TypesOfRelation CONTAINS

EXTENDS

public static final Relation.TypesOfRelation EXTENDS

IMPLEMENTS

public static final Relation.TypesOfRelation IMPLEMENTS

GETSTATIC

public static final Relation.TypesOfRelation GETSTATIC

PUTSTATIC

public static final Relation.TypesOfRelation PUTSTATIC

GETFIELD

public static final Relation.TypesOfRelation GETFIELD

PUTFIELD

public static final Relation.TypesOfRelation PUTFIELD

INVOKEVIRTUAL

public static final Relation.TypesOfRelation INVOKEVIRTUAL

INVOKESPECIAL

public static final Relation.TypesOfRelation INVOKESPECIAL

INVOKESTATIC

public static final Relation.TypesOfRelation INVOKESTATIC

INVOKEINTERFACE

public static final Relation.TypesOfRelation INVOKEINTERFACE

IS_INVOKED_BY

public static final Relation.TypesOfRelation IS_INVOKED_BY

IS_ACCESSED_BY

public static final Relation.TypesOfRelation IS_ACCESSED_BY

IS_SUPERCLASS

public static final Relation.TypesOfRelation IS_SUPERCLASS

CATCH

public static final Relation.TypesOfRelation CATCH

THROWS

public static final Relation.TypesOfRelation THROWS

IS_DECLARED_ON

public static final Relation.TypesOfRelation IS_DECLARED_ON

LOAD

public static final Relation.TypesOfRelation LOAD

IS_IMPLEMENTED_BY

public static final Relation.TypesOfRelation IS_IMPLEMENTED_BY
Method Detail

values

public static Relation.TypesOfRelation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Relation.TypesOfRelation c : Relation.TypesOfRelation.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Relation.TypesOfRelation valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

isInvokeRelation

public boolean isInvokeRelation()
Verifies if the relationType is equals to any kind of invoke relation (INVOKEVIRTUAL,INVOKESPECIAL,INVOKESTATIC or INVOKEINTERFACE).

Returns:

isAccessRelation

public boolean isAccessRelation()
Verifies if the relationType is equals to any kind of access relation (GETSTATIC,PUTSTATIC,GETFIELD or PUTFIELD).

Returns:

getReverseRelation

public Relation.TypesOfRelation getReverseRelation()
Returns the reverse relation of this relation.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<Relation.TypesOfRelation>

extractElement

public static Relation.TypesOfRelation extractElement(java.lang.String type)
                                               throws InexistentTypeOfRelationException
Translate an UPPERCASE String to a type.

Parameters:
type -
Returns:
Throws:
InexistentTypeOfRelationException