@Test public void testToString() { MethodSymbol symbol = new MethodSymbol( "io.grpc.protobuf.ProtoUtils", "marshaller", "(Lcom/google/protobuf/Message;)Lio/grpc/MethodDescriptor$Marshaller;", false); assertEquals( "io.grpc.protobuf.ProtoUtils's method marshaller(com.google.protobuf.Message)", symbol.toString()); }
@Override public String toString() { String signatureWithArguments = Utility.methodSignatureToString(descriptor, name, "", true, emptyLocalVariableTable); String signature = signatureWithArguments.substring(signatureWithArguments.indexOf(' ') + 1); return (isInterfaceMethod ? "Interface " : "") + getClassBinaryName() + "'s method " + signature; }
MethodSymbol extends Symbol { @Override public String toString() { String signatureWithArguments = Utility.methodSignatureToString(descriptor, name, "", true, emptyLocalVariableTable); String signature = signatureWithArguments.substring(signatureWithArguments.indexOf(' ') + 1); return (isInterfaceMethod ? "Interface " : "") + getClassBinaryName() + "'s method " + signature; } }
MethodSymbol extends Symbol { @Override public String toString() { String signatureWithArguments = Utility.methodSignatureToString(descriptor, name, "", true, emptyLocalVariableTable); String signature = signatureWithArguments.substring(signatureWithArguments.indexOf(' ') + 1); return (isInterfaceMethod ? "Interface " : "") + getClassBinaryName() + "'s method " + signature; } MethodSymbol(String className, String name, String descriptor, boolean isInterfaceMethod); }
MethodSymbol extends Symbol { @Override public String toString() { String signatureWithArguments = Utility.methodSignatureToString(descriptor, name, "", true, emptyLocalVariableTable); String signature = signatureWithArguments.substring(signatureWithArguments.indexOf(' ') + 1); return (isInterfaceMethod ? "Interface " : "") + getClassBinaryName() + "'s method " + signature; } MethodSymbol(String className, String name, String descriptor, boolean isInterfaceMethod); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString(); }
MethodSymbol extends Symbol { @Override public String toString() { String signatureWithArguments = Utility.methodSignatureToString(descriptor, name, "", true, emptyLocalVariableTable); String signature = signatureWithArguments.substring(signatureWithArguments.indexOf(' ') + 1); return (isInterfaceMethod ? "Interface " : "") + getClassBinaryName() + "'s method " + signature; } MethodSymbol(String className, String name, String descriptor, boolean isInterfaceMethod); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }