/** * Answer true if the method is a class initializer, false otherwise. * @return boolean */ public boolean isClinit() { char[] selector = getSelector(); return selector[0] == '<' && selector.length == 8; // Can only match <clinit> } /**
/** * Answer true if the method is a constructor, false otherwise. * @return boolean */ public boolean isConstructor() { char[] selector = getSelector(); return selector[0] == '<' && selector.length == 6; // Can only match <init> } /**
/** * Answer true if the method is a constructor, false otherwise. * @return boolean */ public boolean isConstructor() { char[] selector = getSelector(); return selector[0] == '<' && selector.length == 6; // Can only match <init> } /**
/** * Answer true if the method is a class initializer, false otherwise. * @return boolean */ public boolean isClinit() { char[] selector = getSelector(); return selector[0] == '<' && selector.length == 8; // Can only match <clinit> } /**
/** * Answer true if the method is a class initializer, false otherwise. * @return boolean */ public boolean isClinit() { char[] selector = getSelector(); return selector[0] == '<' && selector.length == 8; // Can only match <clinit> } /**
public int compareTo(Object o) { MethodInfo otherMethod = (MethodInfo) o; int result = new String(getSelector()).compareTo(new String(otherMethod.getSelector())); if (result != 0) return result; return new String(getMethodDescriptor()).compareTo(new String(otherMethod.getMethodDescriptor())); } public boolean equals(Object o) {
public int compareTo(Object o) { MethodInfo otherMethod = (MethodInfo) o; int result = new String(getSelector()).compareTo(new String(otherMethod.getSelector())); if (result != 0) return result; return new String(getMethodDescriptor()).compareTo(new String(otherMethod.getMethodDescriptor())); } public boolean equals(Object o) {
public int compareTo(Object o) { MethodInfo otherMethod = (MethodInfo) o; int result = new String(getSelector()).compareTo(new String(otherMethod.getSelector())); if (result != 0) return result; return new String(getMethodDescriptor()).compareTo(new String(otherMethod.getMethodDescriptor())); } public boolean equals(Object o) {
/** * Answer true if the method is a class initializer, false otherwise. * @return boolean */ @Override public boolean isClinit() { return org.eclipse.jdt.internal.compiler.classfmt.JavaBinaryNames.isClinit(getSelector()); } /**
public int compareTo(Object o) { MethodInfo otherMethod = (MethodInfo) o; int result = new String(getSelector()).compareTo(new String(otherMethod.getSelector())); if (result != 0) return result; return new String(getMethodDescriptor()).compareTo(new String(otherMethod.getMethodDescriptor())); } public boolean equals(Object o) {
public int compareTo(Object o) { MethodInfo otherMethod = (MethodInfo) o; int result = new String(getSelector()).compareTo(new String(otherMethod.getSelector())); if (result != 0) return result; return new String(getMethodDescriptor()).compareTo(new String(otherMethod.getMethodDescriptor())); } @Override
/** * Answer true if the method is a constructor, false otherwise. * @return boolean */ public boolean isConstructor() { return org.eclipse.jdt.internal.compiler.classfmt.JavaBinaryNames.isConstructor(getSelector()); } /**
@Override public int compareTo(Object o) { MethodInfo otherMethod = (MethodInfo) o; int result = new String(getSelector()).compareTo(new String(otherMethod.getSelector())); if (result != 0) return result; return new String(getMethodDescriptor()).compareTo(new String(otherMethod.getMethodDescriptor())); } @Override
/** * Answer true if the method is a constructor, false otherwise. * @return boolean */ @Override public boolean isConstructor() { return org.eclipse.jdt.internal.compiler.classfmt.JavaBinaryNames.isConstructor(getSelector()); } /**
@Override public boolean equals(Object o) { if (!(o instanceof MethodInfo)) { return false; } MethodInfo otherMethod = (MethodInfo) o; return CharOperation.equals(getSelector(), otherMethod.getSelector()) && CharOperation.equals(getMethodDescriptor(), otherMethod.getMethodDescriptor()); } @Override
public boolean equals(Object o) { if (!(o instanceof MethodInfo)) { return false; } MethodInfo otherMethod = (MethodInfo) o; return CharOperation.equals(getSelector(), otherMethod.getSelector()) && CharOperation.equals(getMethodDescriptor(), otherMethod.getMethodDescriptor()); } public int hashCode() {
public boolean equals(Object o) { if (!(o instanceof MethodInfo)) { return false; } MethodInfo otherMethod = (MethodInfo) o; return CharOperation.equals(getSelector(), otherMethod.getSelector()) && CharOperation.equals(getMethodDescriptor(), otherMethod.getMethodDescriptor()); } public int hashCode() {
@Override public boolean equals(Object o) { if (!(o instanceof MethodInfo)) { return false; } MethodInfo otherMethod = (MethodInfo) o; return CharOperation.equals(getSelector(), otherMethod.getSelector()) && CharOperation.equals(getMethodDescriptor(), otherMethod.getMethodDescriptor()); } @Override
@Override public int hashCode() { return CharOperation.hashCode(getSelector()) + CharOperation.hashCode(getMethodDescriptor()); } /**
public int hashCode() { return CharOperation.hashCode(getSelector()) + CharOperation.hashCode(getMethodDescriptor()); } /**