1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the GNU General Public License v3+, or later.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
10 package cc
.squirreljme
.plugin
.swm
;
13 * This interface is used for anything which represents a dependency and as
14 * such can be used to check if a provided meets the conditions for a match.
18 public interface MarkedDependency
21 * Is this dependency optional?
23 * @return {@code true} if this dependency is optional.
29 * Checks if this dependency matches the specified provision in that the
30 * provided entry is acceptable to be used for this dependency.
32 * @param __mp The provided to check.
33 * @return {@code true} if the provided is valid for this dependency.
34 * @throws NullPointerException On null arguments.
37 boolean matchesProvided(MarkedProvided __mp
)
38 throws NullPointerException
;