| /******************************************************************************* |
| * Copyright (c) 2006 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ |
| |
| package org.eclipse.wtp.releng.tools.component.adopters; |
| |
| /** |
| * This class encapsulates information about a method reference. It is a sub type of NamedRef. |
| */ |
| public class MethodRef extends NamedRef { |
| |
| /** |
| * Overrides the toString method to return specifics for the method reference |
| */ |
| public String toString() { |
| StringBuffer sb = new StringBuffer(); |
| sb.append("<method name=\""); //$NON-NLS-1$ |
| sb.append(encode(getName())); |
| sb.append("\" desc=\""); //$NON-NLS-1$ |
| sb.append(getDescriptor()); |
| sb.append("\" ref=\""); //$NON-NLS-1$ |
| sb.append(getRefCount()); |
| sb.append("\"/>"); //$NON-NLS-1$ |
| return sb.toString(); |
| } |
| } |