FileDocCategorySizeDatePackage
MethodRef.javaAPI DocGlassfish v2 API4248Fri May 04 22:33:24 BST 2007com.sun.enterprise.tools.verifier.apiscan.classfile

MethodRef

public class MethodRef extends Object
author
Sanjeeb.Sahoo@Sun.COM

Fields Summary
private String
owningClassNameInternal
private String
owningClassName
private String
name
private String
descriptor
public static final String
CLINIT_NAME
public static final String
CLINIT_DESC
Constructors Summary
public MethodRef(String owningClassNameInternal, String name, String descriptor)

 // NOI18N

           
        this.owningClassNameInternal = owningClassNameInternal;
        this.owningClassName = Util.convertToExternalClassName(owningClassNameInternal);
        this.name = name;
        this.descriptor = descriptor;
    
Methods Summary
public booleanequals(java.lang.Object o)

        if (this == o) return true;
        if (!(o instanceof MethodRef)) return false;
        final MethodRef methodRef = (MethodRef) o;
        if (descriptor != null ?
                !descriptor.equals(methodRef.descriptor) :
                methodRef.descriptor != null)
            return false;
        if (name != null ?
                !name.equals(methodRef.name) : methodRef.name != null)
            return false;
        if (owningClassNameInternal != null ?
                !owningClassNameInternal.equals(methodRef.owningClassNameInternal) :
                methodRef.owningClassNameInternal != null)
            return false;
        return true;
    
public java.lang.StringgetDescriptor()

        return descriptor;
    
public java.lang.StringgetName()

        return name;
    
public java.lang.StringgetOwningClassName()

        return owningClassName;
    
public java.lang.StringgetOwningClassNameInternal()

        return owningClassNameInternal;
    
public inthashCode()

        int result;
        result = (owningClassNameInternal != null ? owningClassNameInternal.hashCode() : 0);
        result = 29 * result + (name != null ? name.hashCode() : 0);
        result = 29 * result +
                (descriptor != null ? descriptor.hashCode() : 0);
        return result;
    
public java.lang.StringtoString()

        return owningClassNameInternal + "." + name + descriptor; // NOI18N