WAMLabel is a code label within a predicate.
| Responsibilities || Collaborations
| Represent a code label uniquely identifying it by its containing predicate name, arity, and id.
| Provide equality checking that considers labels with identical name, arity and id to be equal.
Holds the label identifier.
Creates a label within a parent predicate.
parent The name of the parent predicate.
id The unique label id.
if (arity != l3Label.arity)
if ((name != null) ? (!name.equals(l3Label.name)) : (l3Label.name != null))
result = (31 * result) + id;
result = (31 * result) + arity;
Pretty prints the label in a standard format.
- The label pretty printed in a standard format.
Outputs the label as a functor name and id, used mainly for debugging purposes.
return "WAMLabel: [ name = " + name + ", arity = " + arity + ", id = " + id + " ]";