class AllComposition<S : ContractState, C : CommandData, K : Any> : CompositeClause<S, C, K>Compose a number of clauses, such that all of the clauses must run for verification to pass.
| <init> |
AllComposition(firstClause: Clause<S, C, K>, vararg remainingClauses: Clause<S, C, K>)Compose a number of clauses, such that all of the clauses must run for verification to pass. |
| clauses |
val clauses: ArrayList<Clause<S, C, K>>List of clauses under this composite clause |
| requiredCommands |
open val requiredCommands: Set<Class<out CommandData>>Determine whether this clause runs or not |
| matchedClauses |
fun matchedClauses(commands: List<AuthenticatedObject<C>>): List<Clause<S, C, K>>Determine which clauses are matched by the supplied commands |
| toString |
fun toString(): String |
| verify |
fun verify(tx: TransactionForContract, inputs: List<S>, outputs: List<S>, commands: List<AuthenticatedObject<C>>, groupingKey: K?): Set<C>Verify the transaction matches the conditions from this clause. For example, a "no zero amount output" clause would check each of the output states that it applies to, looking for a zero amount, and throw IllegalStateException if any matched. |
| matches |
fun <C : CommandData> Clause<*, C, *>.matches(commands: List<AuthenticatedObject<C>>): BooleanDetermine if the given list of commands matches the required commands for a clause to trigger. |