| Constructor and description |
|---|
AssertionMap()Creates an empty assertion map. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
and(MethodNode methodNode, T assertion)Adds the given assertion to the method entry using logical conjunction. |
|
public boolean |
contains(MethodNode methodNode)Indicates whether an assertion has already been recorded for the given method. |
|
public T |
get(MethodNode methodNode)Returns the assertion associated with the supplied method. |
|
public Iterator<Map.Entry<MethodNode, T>> |
iterator()Returns an iterator over the stored method/assertion pairs. |
|
public void |
join(MethodNode methodNode, T assertion)Joins the assertion into the method entry using the default merge strategy. |
|
public void |
or(MethodNode methodNode, T assertion)Adds the given assertion to the method entry using logical disjunction. |
|
public int |
size()Returns the number of method entries currently stored. |
Adds the given assertion to the method entry using logical conjunction.
methodNode - the method whose assertion should be updatedassertion - the assertion to mergeIndicates whether an assertion has already been recorded for the given method.
methodNode - the method to look uptrue if an assertion is presentReturns the assertion associated with the supplied method.
methodNode - the method to look upnull if none has been storedReturns an iterator over the stored method/assertion pairs.
Joins the assertion into the method entry using the default merge strategy.
methodNode - the method whose assertion should be updatedassertion - the assertion to mergeAdds the given assertion to the method entry using logical disjunction.
methodNode - the method whose assertion should be updatedassertion - the assertion to mergeReturns the number of method entries currently stored.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.