Interface DeclarationHolder

    • Method Detail

      • addDeclaration

        void addDeclaration​(@NonNull Declaration declaration)
        Adds the specified declaration to this declaration holder. Ideally, the declaration holder should use the addIfNotContains(Collection, Declaration) method to consistently add declarations.
        Parameters:
        declaration - the declaration
      • addIfNotContains

        default <N extends Declaration> void addIfNotContains​(java.util.Collection<N> collection,
                                                              N declaration)
      • addIfNotContains

        default <T extends Node> void addIfNotContains​(java.util.Collection<PropertyEdge<T>> collection,
                                                       T declaration)
      • addIfNotContains

        default <T extends Node> void addIfNotContains​(java.util.Collection<PropertyEdge<T>> collection,
                                                       T declaration,
                                                       boolean outgoing)
        Adds a declaration to a collection of property edges, which contain the declarations
        Type Parameters:
        T - the type of the declaration
        Parameters:
        collection - the collection
        declaration - the declaration
        outgoing - whether the property is outgoing