Esempio n. 1
0
 @Override
 public int hashCode() {
   int result = handler.hashCode();
   result = 31 * result + attributeAppender.hashCode();
   result = 31 * result + methodDescription.hashCode();
   result = 31 * result + bridgeTypes.hashCode();
   return result;
 }
Esempio n. 2
0
 /**
  * Transforms this entry into a method record.
  *
  * @param instrumentedType The instrumented type to bind.
  * @return A record representing this entry's properties.
  */
 protected Record bind(TypeDescription instrumentedType) {
   return TypeWriter.MethodPool.Record.AccessBridgeWrapper.of(
       handler.assemble(methodDescription, attributeAppender),
       instrumentedType,
       methodDescription,
       bridgeTypes,
       attributeAppender);
 }
Esempio n. 3
0
 @Override
 public boolean equals(Object other) {
   if (this == other) return true;
   if (other == null || getClass() != other.getClass()) return false;
   Entry entry = (Entry) other;
   return handler.equals(entry.handler)
       && attributeAppender.equals(entry.attributeAppender)
       && methodDescription.equals(entry.methodDescription)
       && bridgeTypes.equals(entry.bridgeTypes);
 }