Enum EdgeType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<EdgeType>

    public enum EdgeType
    extends java.lang.Enum<EdgeType>
    The enum Edge type.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ASSUME
      If a class inherits from any external class that cannot be resolved, ASSUME edges are created from the NEW-node to every none-private method.
      CHAIN
      If a call is a "chain" call to the super-constructor, a special CHAIN edge is created.
      CREATES
      For constuctor calls, an ordinary INVOKE edge is created to the specific *init* method.
      ENCLOSE
      ENCLOSE edge from each inner class to its enclosing class or method.
      ENTRYPOINT
      A single ENTRYPOINT node is created for the inOutPair that is currently processed
      EXTENDS
      EXTENDS edges from each class to its superclass, if the superclass is contained in the model.
      IMPLEMENTS
      IMPLEMENTS edges from each class to all of its interfaces, if the interface is contained in the model.
      INVOKEDYNAMIC
      A INVOKEDYNAMIC edge is created for `invokedynamic` instruction calls, referencing the class and method that implement the functionality if this is covered by the model.
      INVOKES
      INVOKE edges to all implementations of the target method in any sublcasses of the target class.
      MEMBER_OF
      MEMBER_OF edges from each method, field and from the special NEW-node to the class it belongs to.
      REFERENCES
      REFERENCES edge is created from the referencing method to the field in the class the declares the field.
      RESOLVE
      RESOLVE edges are created from each method to its return type, exception types and argument types.
      SUPER
      Otherwise a SUPER edge is created to the implementation of the target method in the first super class of the target class that implements the target method.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static EdgeType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static EdgeType[] 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

      • EXTENDS

        public static final EdgeType EXTENDS
        EXTENDS edges from each class to its superclass, if the superclass is contained in the model.
      • IMPLEMENTS

        public static final EdgeType IMPLEMENTS
        IMPLEMENTS edges from each class to all of its interfaces, if the interface is contained in the model.
      • INVOKES

        public static final EdgeType INVOKES
        INVOKE edges to all implementations of the target method in any sublcasses of the target class.
      • RESOLVE

        public static final EdgeType RESOLVE
        RESOLVE edges are created from each method to its return type, exception types and argument types.
      • REFERENCES

        public static final EdgeType REFERENCES
        REFERENCES edge is created from the referencing method to the field in the class the declares the field. If the field is not declared in the runtime class, the superclasses and interfaces of the runtime class are searched for the declaration. While searching for the declaration, RESOLVE edges are created to the visited concrete classes.
      • ENCLOSE

        public static final EdgeType ENCLOSE
        ENCLOSE edge from each inner class to its enclosing class or method.
      • MEMBER_OF

        public static final EdgeType MEMBER_OF
        MEMBER_OF edges from each method, field and from the special NEW-node to the class it belongs to.
      • ASSUME

        public static final EdgeType ASSUME
        If a class inherits from any external class that cannot be resolved, ASSUME edges are created from the NEW-node to every none-private method.
      • CREATES

        public static final EdgeType CREATES
        For constuctor calls, an ordinary INVOKE edge is created to the specific *init* method. Additionally, a special CREATES Edge is created to the special NEW node in [Method: com.yworks.yshrink.core.Analyzer.createTypeInstructionEdges()], indicating that the target class is instantiated.
      • CHAIN

        public static final EdgeType CHAIN
        If a call is a "chain" call to the super-constructor, a special CHAIN edge is created.
      • SUPER

        public static final EdgeType SUPER
        Otherwise a SUPER edge is created to the implementation of the target method in the first super class of the target class that implements the target method.
      • ENTRYPOINT

        public static final EdgeType ENTRYPOINT
        A single ENTRYPOINT node is created for the inOutPair that is currently processed
      • INVOKEDYNAMIC

        public static final EdgeType INVOKEDYNAMIC
        A INVOKEDYNAMIC edge is created for `invokedynamic` instruction calls, referencing the class and method that implement the functionality if this is covered by the model.
    • Method Detail

      • values

        public static EdgeType[] 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 (EdgeType c : EdgeType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static EdgeType 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