blob: 4294f47c5df7356b51f8247d9e0e20a2c2f4e451 [file] [log] [blame]
/*******************************************************************************
* 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();
}
}